🎉 开放平台文档站换新颜。 欢迎填问卷给我们建议,意见,反馈,夸夸 →
Skip to Content

地理/逆地理编码

地理编码

  • 请求方法

Get

  • 请求地址

https://api.tongji.edu.cn/v1/tool/map/geocode/geo

  • 请求示例
curl --location 'https://api.tongji.edu.cn/v1/tool/map/geocode/geo?address=%E5%8C%97%E4%BA%AC%E5%B8%82%E6%9C%9D%E9%98%B3%E5%8C%BA%E9%98%9C%E9%80%9A%E4%B8%9C%E5%A4%A7%E8%A1%976%E5%8F%B7'\ --header 'Authorization: Bearer e447e4b4b8e23973b42c44b8d324242'
  • 输出示例
{ "status": "1", "info": "OK", "infocode": "10000", "count": "2", "geocodes": [ { "formatted_address": "北京市朝阳区阜通东大街6号", "country": "中国", "province": "北京市", "citycode": "010", "city": "北京市", "district": "朝阳区", "township": [], "neighborhood": { "name": [], "type": [] }, "building": { "name": [], "type": [] }, "adcode": "110105", "street": "阜通东大街", "number": "6号", "location": "116.482086,39.990496", "level": "门址" }, { "formatted_address": "北京市朝阳区阜通东大街6号院", "country": "中国", "province": "北京市", "citycode": "010", "city": "北京市", "district": "朝阳区", "township": [], "neighborhood": { "name": [], "type": [] }, "building": { "name": [], "type": [] }, "adcode": "110105", "street": "阜通东大街", "number": "6号院", "location": "116.482145,39.990039", "level": "门址" } ] }

地理逆编码

  • 请求方法

Get

  • 请求地址

https://api.tongji.edu.cn/v1/tool/map/geocode/regeo

  • 请求示例
curl --location 'https://api.tongji.edu.cn/v1/tool/map/geocode/geo?location=116.310003%2C39.991957&radius=1000'\ --header 'Authorization: Bearer e447e4b4b8e23973b42c44b8d324242'
  • 输出示例
{ "status": "1", "regeocode": { "addressComponent": { "city": [], "province": "北京市", "adcode": "110108", "district": "海淀区", "towncode": "110108015000", "streetNumber": { "number": "5号", "location": "116.310454,39.992734", "direction": "东北", "distance": "94.5489", "street": "颐和园路" }, "country": "中国", "township": "燕园街道", "businessAreas": [ { "location": "116.303364,39.976410", "name": "万泉河", "id": "110108" }, { "location": "116.314222,39.982490", "name": "中关村", "id": "110108" }, { "location": "116.294214,39.996850", "name": "西苑", "id": "110108" } ], "building": { "name": "北京大学", "type": "科教文化服务;学校;高等院校" }, "neighborhood": { "name": "北京大学", "type": "科教文化服务;学校;高等院校" }, "citycode": "010" }, "formatted_address": "北京市海淀区燕园街道北京大学" }, "info": "OK", "infocode": "10000" }

https://lbs.amap.com/api/webservice/guide/api/georegeo