【问题标题】:How to get all nearby roads in points specified radius?如何获取指定半径点内的所有附近道路?
【发布时间】:2013-11-30 06:26:15
【问题描述】:

我有一些以米为单位的纬度、经度和半径,我需要获取该半径内的所有道路名称...最近的道路我可以像这样http://maps.googleapis.com/maps/api/directions/json?origin=55.685025%2c21.118995&destination=55.685025%2c21.118995&sensor=false&mode=driving。它将位于routes[0].legs[0].start_location。但是200米内能走完所有的路吗?

我还发现了这个Google Maps: Given a point, how to find all points at a given road distance?,其中屏幕上的显示情况与我的差不多,但链接已损坏。

【问题讨论】:

    标签: google-maps


    【解决方案1】:

    当道路与圆周相交时,您可以使用方向 api。那么你也能 将圆圈细分为更小的部分并将其提供给方向 api。下面是一个例子:How do I calculate a point on a circle’s circumference?

    【讨论】:

      猜你喜欢
      • 2013-01-08
      • 2014-11-26
      • 1970-01-01
      • 2016-12-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-28
      • 2015-08-23
      相关资源
      最近更新 更多