搜索POI

class lbs.client.qq.api.Search(client=None)[源代码]

搜索

gen_nearby_boundary(location, radius, auto_extend=1)[源代码]

周边搜索

参数:
  • location – 中心坐标
  • radius – 半径/米
  • auto_extend – 当前范围无结果时,是否自动扩大范围
gen_rectangle_boundary(location_lb, location_rt)[源代码]

矩形搜索

参数:
  • location_lb – 左下/西南 坐标
  • location_rt – 右上/东北 坐标
gen_region_boundary(city_name, auto_extend=1, location=None)[源代码]

指定地区名称

参数:
  • city_name – 检索区域名称
  • auto_extend – 当前城市搜索无结果,是否自动扩大范围
  • location – 泛关键词搜索中心
search(keyword, boundary, _filter=None, orderby=None, page_size=20, page_index=1)[源代码]

地点搜索 https://lbs.qq.com/webservice_v1/guide-search.html

参数:
  • keyword – 关键字
  • boundary – 搜索地理范围(gen_xxx_boundary)
  • _filter – 筛选条件
  • orderby – 排序
  • page_size – 每页条目数
  • page_index – 页码
suggestion(keyword, region, region_fix=0, location=None, get_subpois=0, policy=0, _filter=None, address_format=None, page_index=1, page_size=20)[源代码]

关键词输入提示 https://lbs.qq.com/webservice_v1/guide-suggestion.html

参数:
  • keyword – 关键词
  • region – 限制城市范围
  • region_fix – 是否固定在当前城市
  • location – 定位坐标
  • get_subpois – 是否返回子地点
  • policy – 检索策略
  • _filter – 筛选条件
  • address_format – 返回地址格式
  • page_index – 页码
  • page_size – 每页条数