根据经纬度或城市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": {}
}

© 2011-2020 zuzuche.com. All Rights Reserved.  广州力挚网络科技有限公司  版权所有  营业执照   粤ICP备11007328号   粤公网安备 44010602000444号