公共API


根据城市id获取区域列表

简要描述:

  • 根据城市id获取区域列表

请求URL:

  • /usersystem/enum/getareaenum/{id}

请求方式:

  • GET

参数:

参数名 必选 类型 说明
id long 城市id

返回示例

  {
    "code": "200",
    "success": true,
    "msg": "success",
    "data": [
        {
            "id": 1,
            "cityId": "368",
            "name": "上城区",
            "longitude": "120.184349",
            "latitude": "30.25446",
            "updateTime": "2018-06-06 16:25:17",
            "createTime": "2019-06-06 16:25:12",
            "remark": "杭州市上城区"
        },
        {
            "id": 2,
            "cityId": "368",
            "name": "下城区",
            "longitude": "120.180895",
            "latitude": "30.281714",
            "updateTime": "2018-06-06 16:25:17",
            "createTime": "2019-06-06 16:25:12",
            "remark": "杭州市下城区"
        },
        {
            "id": 3,
            "cityId": "368",
            "name": "江干区",
            "longitude": "120.213843",
            "latitude": "30.262661",
            "updateTime": "2018-06-06 16:25:17",
            "createTime": "2019-06-06 16:25:12",
            "remark": "杭州市江干区"
        },
        {
            "id": 4,
            "cityId": "368",
            "name": "拱墅区",
            "longitude": "120.141406",
            "latitude": "30.319037",
            "updateTime": "2018-06-06 16:25:17",
            "createTime": "2019-06-06 16:25:12",
            "remark": "杭州市拱墅区"
        },
        {
            "id": 5,
            "cityId": "368",
            "name": "西湖区",
            "longitude": "120.130203",
            "latitude": "30.259324",
            "updateTime": "2018-06-06 16:25:17",
            "createTime": "2019-06-06 16:25:12",
            "remark": "杭州市西湖区"
        },
        {
            "id": 6,
            "cityId": "368",
            "name": "滨江区",
            "longitude": "120.146505",
            "latitude": "30.16245",
            "updateTime": "2018-06-06 16:25:17",
            "createTime": "2019-06-06 16:25:12",
            "remark": "杭州市滨江区"
        },
        {
            "id": 7,
            "cityId": "368",
            "name": "萧山区",
            "longitude": "120.493286",
            "latitude": "30.28333",
            "updateTime": "2018-06-06 16:25:17",
            "createTime": "2019-06-06 16:25:12",
            "remark": "杭州市萧山区"
        },
        {
            "id": 8,
            "cityId": "368",
            "name": "余杭区",
            "longitude": "120.245433",
            "latitude": "30.409974",
            "updateTime": "2018-06-06 16:25:17",
            "createTime": "2019-06-06 16:25:12",
            "remark": "杭州市余杭区"
        },
        {
            "id": 9,
            "cityId": "368",
            "name": "临安区",
            "longitude": "119.718891",
            "latitude": "30.237881",
            "updateTime": "2018-06-06 16:25:17",
            "createTime": "2019-06-06 16:25:12",
            "remark": "杭州市临安区"
        },
        {
            "id": 10,
            "cityId": "368",
            "name": "桐庐县",
            "longitude": "119.689262",
            "latitude": "29.798308",
            "updateTime": "2018-06-06 16:25:17",
            "createTime": "2019-06-06 16:25:12",
            "remark": "杭州市桐庐县"
        },
        {
            "id": 11,
            "cityId": "368",
            "name": "淳安县",
            "longitude": "119.041864",
            "latitude": "29.608772",
            "updateTime": "2018-06-06 16:25:17",
            "createTime": "2019-06-06 16:25:12",
            "remark": "杭州市淳安县"
        },
        {
            "id": 12,
            "cityId": "368",
            "name": "建德市",
            "longitude": "119.23174",
            "latitude": "29.361498",
            "updateTime": "2018-06-06 16:25:17",
            "createTime": "2019-06-06 16:25:12",
            "remark": "杭州市建德市"
        },
        {
            "id": 13,
            "cityId": "368",
            "name": "富阳区",
            "longitude": "119.960076",
            "latitude": "30.048692",
            "updateTime": "2018-06-06 16:25:17",
            "createTime": "2019-06-06 16:25:12",
            "remark": "杭州市富阳区"
        },
        {
            "id": 16,
            "cityId": "368",
            "name": "钱塘新区",
            "longitude": "120.385756",
            "latitude": "30.311574",
            "updateTime": "2020-01-10 14:32:38",
            "createTime": "2020-01-10 13:38:57",
            "remark": "杭州市钱塘新区"
        }
    ]
}

返回参数说明

参数名 类型 说明
id int 区域id
name String 区域名称
longitude String 经度
latitude String 纬度

备注

  • 更多返回错误代码请看首页的错误代码描述

欢迎使用ShowDoc!

页面列表

ITEM_HTML