首页 > 代码库 > 高德地图:地理/逆地理编码

高德地图:地理/逆地理编码

高德API:http://lbs.amap.com/api/webservice/guide/api/georegeo/

http://restapi.amap.com/v3/geocode/geo?key=7de8697669288fc848e12a08f58d995e&s=rsv3&city=杭州市&address=杭州市天成路87号现代大厦

技术分享

这里边的key是别人开放的key,用起来感觉还可以。基本上没有太大的限制,使用上边的接口获取经纬度是基本上100%成功,但是这个坐标系是GCJ02坐标。

按照上边的接口可以返回的结果信息为:

{"status":"1","info":"OK","infocode":"10000","count":"1","geocodes":[{"formatted_address":"浙江省杭州市江干区现代大厦","province":"浙江省","citycode":"0571","city":"杭州市","district":"江干区","township":[],"neighborhood":{"name":[],"type":[]},"building":{"name":[],"type":[]},"adcode":"330104","street":[],"number":[],"location":"120.204319,30.287145","level":"兴趣点"}]}

 

高德地图:地理/逆地理编码