通过统计局地址实现 收货地址识别

收货地址识别 

1) 请求地址

https://www.591mf.top/home/getaddress?txt=重庆江北区复鱼嘴镇东风路146号

2) 调用方式:HTTP post

3) 接口描述:

  • 地址识别

4) 请求参数:

GET参数:
字段名称 字段说明 类型 必填 备注
txt string Y -

5) 请求返回结果:

{
    "code": 200,
    "a1": {
        "code": "500000000000",
        "name": "重庆市",
        "level": 1
    },
    "a2": {
        "code": "500100000000",
        "name": "市辖区",
        "level": 2
    },
    "a3": {
        "code": "500105000000",
        "name": "江北区",
        "level": 3
    },
    "a4": {
        "code": "500105100000",
        "name": "鱼嘴镇",
        "level": 4
    },
    "a5": {
        "code": null,
        "name": null,
        "level": 0
    },
    "info": "重庆复东风路146号",
    "msg": "识别成功"
}

6) 请求返回结果参数说明:

字段名称 字段说明 类型 必填 备注
code string Y -
a1 string Y -
name string Y -
level string Y -
a2 string Y -
a3 string Y -
a4 string Y -
a5 string Y -
info 详情 string Y -
msg 说明 string Y -

你可能感兴趣的:(api,地址识别)