【问题标题】:Android google maps directions api find if location is on the way or notAndroid google maps 路线 api 查找位置是否在途中
【发布时间】:2017-08-05 14:53:46
【问题描述】:

我有两个位置起点(A)和终点(B),我可以在地图上找到方向线。 现在我有一个位置 (C),有没有办法 (api) 来查找 (C) 是否位于从 A 到 B 的路上。

【问题讨论】:

  • 可能是this帮助!

标签: android google-maps google-maps-api-3 geolocation location


【解决方案1】:

由于您从谷歌的 DIRECTION API 获得所有方向,因此您也将获得每个转弯的坐标,只需检查您的位置 c 坐标是否位于 A 和 B 路径的方向之间,然后单击您得到了答案.

【讨论】:

    猜你喜欢
    • 2014-01-25
    • 1970-01-01
    • 1970-01-01
    • 2013-04-06
    • 1970-01-01
    • 2016-06-08
    • 1970-01-01
    • 2012-09-06
    • 1970-01-01
    相关资源
    最近更新 更多