【发布时间】:2014-03-30 23:31:53
【问题描述】:
我正在尝试通过将移动时点之间的距离相加来计算折线的长度。
我想用这个方法:
distanceBetween (double startLatitude, double startLongitude, double endLatitude, double endLongitude, float[] results)
我可以将 location.getLatitude() 和 location.getLongitude() 放在 endLat 和 endLong 中。
我将所有这些都放在 onLocationChanged(Location location) { }
如何保存上次调用 onLocationChanged(Location location) 的位置并将其用作起始纬度/经度。
【问题讨论】:
标签: android google-maps location google-maps-android-api-2