【问题标题】:How to get string address by coordinates?如何通过坐标获取字符串地址?
【发布时间】:2013-07-23 08:10:01
【问题描述】:

如何通过坐标获取字符串地址?我正在使用 gmaps.js 3rd 方 API。有人如何使用它吗?我想获取字符串地址,并且我知道坐标。

UPD。实际上我知道谷歌地图标准教程,问题是如何使用 gmaps.js 获取数据。我确定可以获取这些数据。

【问题讨论】:

    标签: google-maps


    【解决方案1】:

    我认为您可以通过https://developers.google.com/maps/documentation/geocoding/https://developers.google.com/places/documentation/ 获得帮助 这些链接是谷歌地理编码 API 的谷歌教程。

    【讨论】:

      【解决方案2】:

      不知道gmaps.js是否支持,但基本上你在搜索"reverse geocoding"

      编辑: 不幸的是,gmaps.js 中没有对(反向)地理编码的“直接”支持,但您仍然可以在 gmap.js 中使用谷歌地理编码(以混合方式):

      var opt = { lat : 40.714224, lng : -73.961452, callback : function(results, status) { if (status == google.maps.GeocoderStatus.OK) { console.log(results[1].formatted_address); } } } GMaps.geocode(opt);

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2013-09-04
        • 1970-01-01
        • 2021-05-13
        • 2015-08-24
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-08-03
        相关资源
        最近更新 更多