全国地区信息查询
根据地区关键词给出所有相关地区数据,level为地区行政等级,可根据level控制返回数据精度,可选值:province/city/distrct/street请求方式:GET返回类型:JSON正常返回示例{"code":200,"msg":"success","data":[{"province":"河南省"
- 最新数据
- 实时更新
- 毫秒响应
请求方式:GET
返回类型:JSON
正常返回示例
{
"code": 200,
"msg": "success",
"data": [
{
"province": "河南省",
"city": "新乡市",
"district": "/",
"street": "/",
"center": "113.92679,35.303589",
"postcode": 410700,
"areacode": 373,
"level": "city"
},
{
"province": "江西省",
"city": "新余市",
"district": "/",
"street": "/",
"center": "114.916665,27.818553",
"postcode": 360500,
"areacode": 790,
"level": "city"
}
]
}
失败返回示例
{
"code": 422,
"msg": "ensure this value has at least 1 characters",
"detail": [
{
"loc": [
"query",
"keyword"
],
"msg": "ensure this value has at least 1 characters",
"type": "value_error.any_str.min_length",
"ctx": {
"limit_value": 1
}
}
]
}
全部用户