【发布时间】:2016-11-13 05:42:06
【问题描述】:
我用过locationA.distanceTo(locationB);
并且还复制粘贴了为 haversine 公式编写的方法。
两个地理点之间的实际距离是 25m,但我得到一个 使用上述方法得到 6894.52192658389 的结果。
关注了这个:Creating a method using Haversine Formula, Android V2 还有这个Find distance between two points on map using Google Map API V2
使用此免费工具检查距离http://www.onlineconversion.com/map_greatcircle_distance.htm
【问题讨论】:
标签: java android google-maps-android-api-2 haversine