状态码 | 错误描述 |
---|---|
0 | 正常 |
101 | Missing field : body (size should > 0 && < 3) |
102 | Request is empty |
103 | 参数错误,错误详情请见“msg”字段 |
104 | Unexpected err, please contact with us |
601 | Failed to authenticate for lack of AK |
700 | Failed to authenticate for invaid AK : ${key}(key校验失败) |
710 | Failed to authenticate for invaid IP : ${ip} (服务端IP校验失败) |
711 | APP SN校验失败。当用户请求的SN和服务端计算出来的SN不相等的时候提示SN校验失败。可考虑在控制台-我的应用中将AK的请求校验方式改为IP白名单 |
740 | Failed to authenticate for api loc is forbidden.(服务被禁用,一般不会出现) |
752 | Failed to authenticate for bad user.(非法用户) |
760 | Failed to authenticate for servive is not exist(服务不存在,一般不会出现) |
761 | Failed to authenticate for servive is off the assembly line(服务已下线,一般不会出现) |
801 | Failed to authenticate for exceeding total quota(总用量超限,一般不会出现) |
802 | Failed to authenticate for exceeding daily quota(${quota_num}) (日用量超限) |
901 | Failed to authenticate for exceeding concurrency(${min_quota}) (分钟并发超限) |
902 | Failed to authenticate for exceeding concurrency(${min_quota}) (日用量与分钟并发均超限) |
其他500+错误 | Failed to authenticate for unexpected error, please contact with us |
750 | Failed to authenticate for user is not exist |
751 | Failed to authenticate for user is deleted by yourself |
curl --location -g --request POST 'https://api.map.baidu.com/locapi/v2?ak=&sn=' \
--header 'key;' \
--header 'src;' \
--header 'prod;' \
--header 'ver;' \
--header 'trace;' \
--data-urlencode 'accesstype=' \
--data-urlencode 'ctime='
{
"errcode": 0,
"msg": "Query success.",
"body": [
{
"type": 2,
"location": "116.298457,39.848625",
"radius": 41,
"country": "中国",
"province": "北京市",
"city": "北京市",
"citycode": "131",
"district": "丰台区",
"road": "丰台南路44号",
"ctime": "1551178833",
"indoor": "1",
"error": 0
},
{
"type": 4,
"location": "107.614218,-6.941022",
"radius": 111,
"country": "Indonesia",
"province": "Jawa Barat",
"city": "Bandung City",
"citycode": "34544",
"district": "",
"road": "Jalan Sriwijaya",
"ctime": "1551178833",
"indoor": "0",
"error": 0
},
{
"type": 2,
"location": "116.352743,39.941695",
"radius": 15,
"country": "中国",
"province": "北京市",
"city": "北京市",
"citycode": "131",
"district": "西城区",
"road": "西直门外大街1号院-3号",
"ctime": "1551178833",
"bldg": "bjxcqkdmall",
"bldgid": "1266783613064577023",
"bldgname": "凯德MALL(西直门嘉茂店)",
"floor": "f4",
"indoor": "1",
"error": 0
}
]
}