【问题标题】:How to measure the shortest distance between two geological points?如何测量两个地质点之间的最短距离?
【发布时间】:2015-05-29 18:46:54
【问题描述】:

如何测量两个地质点之间的最短距离? 我得到的所有(Location.toDistance() , 手动方程) 给出了最长的距离。 假设我想得到从达卡到新德里的距离,因为地球是圆的,可能有两个距离——一个来自一侧,另一个来自另一侧。 我只得到最大的一个。我怎样才能得到最短的?

【问题讨论】:

    标签: android google-maps geolocation


    【解决方案1】:

    This 应该帮忙。 Android 中的 Location 类也有一个distanceBetween 和 distanceTo 方法。

    【讨论】:

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