使用谷歌地图api计算两点之间的距离? [英] working out distances between two points using google maps api?
本文介绍了使用谷歌地图api计算两点之间的距离?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以将两个经纬度点发送到谷歌来计算两者之间的距离?
Is it possible to send two lat long points to google to calculate the distance between the two?
推荐答案
有个方便的功能
http://code.google.com/apis/maps/documentation/reference.html#GLatLng.distanceFrom
基本上创建2个GlatLng对象然后使用上面的方法
basically create 2 GlatLng objects then use the above method
这篇关于使用谷歌地图api计算两点之间的距离?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文