谷歌地图距离计算
有谁知道谷歌地图是否考虑海拔和地球上的实际路径来计算两点之间的距离,还是只考虑地理位置来测量距离?
Does anyone know if Google Maps consider elevations and the actual path on earth to calculate distance between two points or it only considers geographical locations for distance measurement?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您指的是使用
google.maps.DistanceMatrixRequest
,那么是的,它会根据travelMode
中提供的选项,在计算距离时考虑实际路线code.google.com 参考
当没有既定路线(至少谷歌知道)时,我确信(根据经验)响应是两个纬度/经度位置之间“直线飞行”的距离。 [基于请求一条平分大湖的路径的经验]
If you are referring to using
google.maps.DistanceMatrixRequest
then yes, it considers the actual route when calculating distance, based on the option provided intravelMode
code.google.com reference
When there is no established route (at least known to google) i'm sure (from experience) the response is the distance 'as the crow flies' between 2 lat/long locations. [experience based off making the request for a path that bisected a large lake]