如何在指定半径的点附近获得所有附近的道路?

时间:2013-11-28 14:00:16

标签: google-maps

我有一些纬度,经度和半径(以米为单位),我需要获得该半径内的所有道路名称......我可以得到最近的道路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?在屏幕上显示的情况几乎和我的情况一样,但链接断了。

enter image description here

1 个答案:

答案 0 :(得分:0)

当道路与圆周相交时,您可以使用方向api。然后你可以 将圆圈细分为较小的窗口并将其馈送到方向api。以下是一个示例:How do I calculate a point on a circle’s circumference?