接口描述:
根据经纬度坐标解析成详细地址详情,如:省份、城市、区域等信息。
请求URL:
https://api.jiadeapi.com/geocoding/query
请求方式:
http get/post
请求Header:
|
名称 |
值 |
|
Content-Type |
application/x-www-form-urlencoded |
请求参数:
|
名称 |
必填 |
类型 |
说明 |
|
key |
是 |
String |
接口请求key |
|
lat |
是 |
String |
纬度坐标,如:27.327578 |
|
lon |
是 |
String |
经度坐标,如:119.9772857 |
|
type |
N |
String |
传递的坐标类型,1:GPS 2:百度地图坐标 3:高德地图坐标,默认:1 |
返回参数:
|
名称 |
类型 |
说明 |
|
error_code |
Int |
返回码,0表示成功 |
|
reason |
String |
描述 |
|
result |
Object |
返回结果 |
|
adcode |
String |
行政区划代码 |
|
province |
String |
省份 |
|
city |
String |
城市 |
|
district |
String |
区县名 |
|
town |
String |
乡镇名/街道社区 |
|
street |
String |
街道名 |
|
address |
String |
完整地址信息 |
返回示例参考:
{
"error_code": 0,
"reason": "success",
"result": {
"adcode": "320571",
"province": "江苏省",
"city": "苏州市",
"district": "苏州工业园区",
"town": "",
"street": "现代大道",
"street_number": "",
"address": "江苏省苏州市苏州工业园区现代大道"
}
}
状态码参考(error_code):
|
状态码 |
说明 |
|
0 |
请求成功 |
|
201501 |
经纬度坐标格式不正确 |
|
201502 |
查询失败,具体参考reason |
|
— |
— |
|
10001 |
接口请求Key校验不通过 |
|
10008 |
请求的IP不在白名单 |
|
10009 |
接口请求Key状态异常 |
|
10012 |
请求超过次数限制 |
|
10014 |
系统内部异常 |
|
10020 |
接口维护 |
|
10021 |
接口停用 |
|
10023 |
请求频次过快,请稍后再试 |