【问题标题】:How to get the points( Latitude and Longitude) between 2 points from google map in android?如何从android中的谷歌地图获取2点之间的点(纬度和经度)?
【发布时间】:2015-05-15 14:19:13
【问题描述】:

我在 android studio 工作,用户会在地图上选择 2 个端点,我怎样才能得到这 2 个端点之间的点?所以我可以将我的一些观点与这些观点进行比较??

还有一个问题:我会保存用户的位置,如果我有积分如何知道离用户最近的点?

谢谢。

【问题讨论】:

    标签: java android google-maps android-studio google-api


    【解决方案1】:

    这是您问题的完整答案。Google 提供了一个 Directions api,用于查找两个地理位置之间的路径点,请参阅 here

    通过this 链接。它有完整的源代码示例。

    希望你的问题能得到解决。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多