高德地图¶
-
class
lbs.client.amap.
AmapClient
(key, sig_key=None, timeout=None)[源代码]¶ -
get
(uri, params=None, **kwargs)¶ get 接口请求
参数: - uri – 请求url
- params – get 参数(dict 格式)
-
post
(uri, data=None, params=None, **kwargs)¶ post 接口请求
参数: - uri – 请求url
- data – post 数据(dict 格式会自动转换为json)
- params – post接口中url问号后参数(dict 格式)
-
AmapClient 基本使用方法:
from lbs import AmapClient
client = AmapClient('key')
client.geocode.geo("北京")