Skip to content

功能概述

根据经纬度或code获取信息

接口访问

接口地址

region/info

请求方式 Method

GET

请求参数

属性类型长度必填默认值说明
areaCodestring11false区域编码
lonint11false经度
latint11false纬度

返回值

属性类型必填说明
idinttrue区域自增ID
areaCodestringtrue区域编码
areaNamestringtrue区域名称
parentCodestringtrue父级区域编码
codePathstringtrue完整路径编码
fullNamestringtrue完整名称
levelstringtrue层级(1-5)1: 省份2: 城市3: 区域(区/县)4: 乡镇(街道/镇)5: 村(居委会/村委会)

返回示例

{
    "response": {
        "id": 573,
        "areaCode": "460100",
        "areaName": "海口市",
        "parentCode": "460000",
        "codePath": "460000-460100",
        "fullName": "海南省-海口市",
        "level": 2
    },
    "requestId": "1053a52b-7a96-49e2-988a-81ef37ff44c0"
}