(directionsRequest, function(directionsResult, directionsStatus) {
var directionsRenderer = new google.maps.DirectionsRenderer看起来trips已经不在那里了,而routes只给了你一堆腿...我真的需要遍历所有的腿并计算出现在的距离吗?
我不想使用Google direction API服务。想要确切的位置,通过电话旅行。现在我正在使用gps,比如: locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,0,0,this);
这给了我距离但是,如果我停留在一个地方不跑步,驾驶距离也计算在总距离,最终得到错误的距离。有没有更好的办法来计算点之间的正确距离?