高德地图根据地址获取经纬度

var key = '363f73cc6d1cd03f815332fc5ed430e9'
      var address = '河南省商丘市'
      request.get(`http://restapi.amap.com/v3/geocode/geo?key=${key}&s=rsv3&city=35&address=${address}`).then(res => {
        console.log(res, '得到经纬度')
      })

 https://lbs.amap.com/api/webservice/guide/api/georegeo

posted @ 2020-04-14 23:07  顺·  阅读(6943)  评论(0编辑  收藏  举报