城乡类别判别
GET
/api_recog_address/v1/recog
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.map.baidu.com/api_recog_address/v1/recog?address=北京市海淀区信息路甲九号&ak='
响应示例响应示例
{
"status": 0,
"admin_info": {
"province": "string",
"city": "string",
"county": "string",
"town": "string"
},
"admin_type": {
"county_type": "string",
"town_type": "string",
"town_urban_rural": "string",
"confidence": 0
},
"stats_type": {
"urban": 0,
"urban_list": 0,
"township": 0,
"township_list": 0,
"rural": 0,
"rural_list": 0
},
"airport_or_develop": "string"
}
请求参数
Query 参数
address
string
需要解析的地址
示例值:
北京市海淀区信息路甲九号
is_encry_address
integer
可选
is_airport_or_develop
number
可选
ak
string
必需
默认值:
{{ak}}
返回响应
修改于 2022-08-22 02:39:53