Google Maps API 3 - JavaScript:骑行 - 如何在路线上查找高程? [英] Google Maps API 3 - JavaScript: Cycling-How to find elevation along the route?

查看:140
本文介绍了Google Maps API 3 - JavaScript:骑行 - 如何在路线上查找高程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何课程可以按照谷歌地图的方式在自行车路线上找到高程?正如您在下面的链接中所看到的,当您将鼠标悬停在高程上时,它还会在地图上显示该路线的点。

Is there any class for finding the elevation along a Cycling route the way google maps does it? As you can see in the link below, when you hover your mouse over the elevation, it also shows that point of the route on the map.

https://www.google.ie/maps/dir/Galway/Dublin/@53.0456335,- 7.8289246,9z /数据= 4m14 4m13 1M5 1M1 1s0x485b93955a2d5bff:!!!!!0x32b1b440a4952812平方米1D-9.0567905 2d53.270668 1M5 1M1 1s0x48670e80ea27ac2f:!!!!0xa00c7a9973171a02平方米1D-6.2603097 2d53.3498053 3E1

我可以在谷歌找到的唯一一个类是沿路径提升,这不是非常有用!

The only class i can find in google is elevation along a path, which isnt very useful!

查找路径的lat-lng坐标,然后使用高程API查找这些点的高程并不能可靠地工作。这是因为高程API提供的高程不会考虑桥梁和立交桥。

Finding the lat-lng coordinates of the route and then using the elevation API to find the elevation at those points does not reliably work. This is because the elevation provided by the elevation API does not factor in bridges and overpasses.

在Google地图中搜索路线时,海拔剖面以某种方式知道沿路线的实际道路高程,因此它非常准确地代表了陡峭悬崖上的桥梁(而不是显示陡峭的下降)。在下面连接的桥梁上行进将导致高程API急剧下降,因为它知道地理上存在悬崖,并且不知道所提供的lat-lng在该位置具有桥。

When searching the a route in Google maps, the elevation profile somehow knows the actual road elevation along the route, and hence it represents a bridge over a steep cliff quite accurately (rather than showing the steep drop). Travelling over a bridge such as the one linked below will yield a sharp dropoff by the elevation API since it knows that geographically there is a cliff, and it is unaware that the lat-lng provided has a bridge in that location.

Google地图内置高程资料显示无悬崖:
https://www.google.ca/maps/dir/49.3040568, -123.1452437 / 49.3229241,-123.1317054 / @ 49.3169602,-123.145165,14.75z / data =!4m2!4m1!3e1
相同路线的高程API剖面图将显示悬崖。

Google Maps built-in elevation profile shows no cliff: https://www.google.ca/maps/dir/49.3040568,-123.1452437/49.3229241,-123.1317054/@49.3169602,-123.145165,14.75z/data=!4m2!4m1!3e1 Elevation API profile for the same route will show the cliff.

有没有办法获得准确的路线高程数据?不仅仅是在特定的lat-lng坐标处提升原始地理特征?

Is there a way to get accurate route elevation data? Not just the elevation of raw geographical features at particular lat-lng coordinates?

推荐答案

据我所知,谷歌尚未提供他们的高程数据(显示在骑行和步行的高程档案中)他们的API。他们只允许通过提升API 访问自然景观高程数据。

To my knowledge, Google has not made their elevation data (displayed in the elevation profile for cycling and walking) available via any of their APIs. They only allow access to the "natural landscape" elevation data through the elevation API.

这篇关于Google Maps API 3 - JavaScript:骑行 - 如何在路线上查找高程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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