在两个地图点或经纬度长的android距离经纬度、距离、两个、地图

2023-09-06 22:21:45 作者:怨风离愁人

我想计算的Andr​​oid使用谷歌地图之间的两个地图点的距离。我用了两个纬度长期价值,把两个脚的地图,也能够得出两点间的路径。 现在,如何计算距离的路,我已经得出? 请任何机构的帮助!

I am trying to calculate the distance between two map point using Google Map in android. I have used two lat long value to put two map pin and also able to draw a route between two points. Now how to calculate distance of the path that i have drawn? Please any body help!

感谢和放大器;商祺!

推荐答案

您可能需要使用的谷歌路线API 已知两个GPS位置之间的实际距离。如果你想在鸦飞的距离,谢赫的答案是完美的。

You probably want to use the Google Directions API to known the real distances between two GPS locations. If you want the "crow-fly" distance, Sheikh's answer is perfect.

 
精彩推荐
图片推荐