工具¶
-
class
lbs.client.amap.api.
Tools
(client=None)[源代码]¶ 工具
-
convert
(locations, coordsys='autonavi')[源代码]¶ 坐标转换 https://lbs.amap.com/api/webservice/guide/api/convert
参数: - locations – 坐标点
- coordsys – 原坐标系
-
district
(keywords=None, subdistrict=1, page=1, offset=20, extensions='base', _filter=None)[源代码]¶ 行政区域查询 https://lbs.amap.com/api/webservice/guide/api/district
参数: - keywords – 查询关键字
- subdistrict – 子级行政区
- page – 需要第几页数据
- offset – 最外层返回数据个数
- extensions – 返回结果控制
- _filter – 根据区划过滤
-
grasproad
(data=())[源代码]¶ 轨迹纠偏 https://lbs.amap.com/api/webservice/guide/api/grasproad
参数: data – body数据
-
inputtips
(keywords, _type=None, location=None, city=None, citylimit=False, datatype='all')[源代码]¶ 输入提示 https://lbs.amap.com/api/webservice/guide/api/inputtips
参数: - keywords – 查询关键词
- _type – POI分类
- location – 坐标
- city – 搜索城市
- citylimit – 仅返回指定城市数据
- datatype – 返回的数据类型
-
ip
(ip, version='3')[源代码]¶ IP定位 https://lbs.amap.com/api/webservice/guide/api/ipconfig
参数: ip – ip地址
-
static_map
(zoom, location=None, size=(400, 400), scale=1, markers=None, labels=None, paths=None, traffic=0)[源代码]¶ 静态地图 https://lbs.amap.com/api/webservice/guide/api/staticmaps
参数: - zoom – 地图级别
- location – 地图中心点
- size – 地图大小
- scale – 普通/高清
- markers – 标注
- labels – 标签
- paths – 折线
- traffic – 交通路况标识
返回: 静态地图对应URl
-
weather
(city)[源代码]¶ 天气查询 https://lbs.amap.com/api/webservice/guide/api/weatherinfo
参数: city – 城市编码
-