根据经纬度或城市id获取相关城市
基本信息
Path: /api/v1/city_relation_by_city
Method: GET
接口描述:
请求参数
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
lat | 否 | 4.474529 | 经度(城市id为0,以经纬度为主) |
lng | 否 | 118.603965 | 经度(城市id为0,以经纬度为主) |
city_id | 否 | 435 | 城市id(城市id不为0,以城市id为主) |
sign | 是 | ca13185a58164eb8a0cfeaba60122423 | 签名验证:md5(4k1youU38QiFXhTm${time}) |
time | 是 | 1604447395000 | 时间戳(毫秒) |
返回数据
{
"Code": 0,
"Desc": "成功",
"Message": {
"city_id": 204462,
"city_cn": "仙本那",
"city_en": "semporna",
"region_id": 10084,
"region_cn": "马来西亚",
"region_en": "Malaysia",
"state_en": "",
"state_cn": "",
"city_cf_list": [
{
"city_id": 2187,
"city_cn": "哥打京那巴鲁(沙巴)",
"city_en": "Kota Kinabalu",
"region_id": 10084,
"region_cn": "马来西亚",
"region_en": "Malaysia",
"state_en": "",
"state_cn": "",
"similarity": 0.384,
"distance": 327.23
},
{
"city_id": 107591,
"city_cn": "斗湖",
"city_en": "Tawau",
"region_id": 10084,
"region_cn": "马来西亚",
"region_en": "Malaysia",
"state_en": "",
"state_cn": "",
"similarity": 0.767,
"distance": 83.31
},
{
"city_id": 201695,
"city_cn": "马布岛",
"city_en": "Pulau Mabul",
"region_id": 10084,
"region_cn": "马来西亚",
"region_en": "Malaysia",
"state_en": "",
"state_cn": "",
"similarity": 0.545,
"distance": 26.11
},
{
"city_id": 200277,
"city_cn": "卡帕莱",
"city_en": "Kapalai",
"region_id": 10084,
"region_cn": "马来西亚",
"region_en": "Malaysia",
"state_en": "",
"state_cn": "",
"similarity": 0.545,
"distance": 29.28
},
{
"city_id": 2198,
"city_cn": "山打根",
"city_en": "Sandakan",
"region_id": 10084,
"region_cn": "马来西亚",
"region_en": "Malaysia",
"state_en": "",
"state_cn": "",
"similarity": 0.171,
"distance": 161.02
}
]
},
"extData": {}
}