【问题标题】:Using Google Maps APIs (or any other map services) how can I point the addresses on map that are near to particular address?使用 Google Maps API(或任何其他地图服务)如何将地图上的地址指向特定地址附近的地址?
【发布时间】:2013-10-19 10:35:38
【问题描述】:

我有一个数据库,其中包含供应商地址,包括地理编码和一个带有地理编码的特定地址“A”。我想在网络浏览器的地图上显示附近的所有供应商地址(在 x 半径内)以地址“A”。

有哪些不同的选项,如 google maps api 或任何其他可用的服务可以帮助我实现这一目标?

谢谢, 吉格尼什

【问题讨论】:

    标签: google-maps google-maps-api-3 map bing-maps


    【解决方案1】:

    您可以使用google.maps.geometry.spherical.computeDistanceBetween 计算到每个供应商的距离,并在距离为 时创建标记

    更快的方法是使用 FusionTable 来存储数据。您可以使用 FusionTableLayer 来绘制标记,只需一个简单的WHERE-clause:

    ST_INTERSECTS(columnWithVendorLatLng,
                  CIRCLE(LATLNG(addressLatitude, addressLongitude),desiredRadius))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-29
      • 2022-01-09
      • 1970-01-01
      • 1970-01-01
      • 2012-12-23
      • 1970-01-01
      • 2016-10-27
      相关资源
      最近更新 更多