计算谷歌地图V3中两点之间的距离 [英] Calculate distance between two points in google maps V3

查看:153
本文介绍了计算谷歌地图V3中两点之间的距离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你如何计算Google maps V3中两个标记之间的距离? (类似于 distanceFrom 函数inV2。)

How do you calculate the distance between two markers in Google maps V3? (Similar to the distanceFrom function inV2.)

谢谢..

Thanks..



解决方案
If you want to calculate it yourself, then you can use the Haversine formula:

这篇关于计算谷歌地图V3中两点之间的距离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆