0

我想显示从一个点到另一个点的高程图,所以我从坐标读取线程高程图

但是当我请求“calculateRoute”时,它不会直接执行点对点,而是使用街道。

我想要一个像这样的图表: map with route point-to-point

我该怎么做 ?在“routingParameters”中,我插入“fastest;pedestrian”,还有其他选择吗?

4

1 回答 1

-1

尝试将returnelevation参数指定为 true。你在计算自行车的路线吗?请分享您的卷曲或休息请求

https://route.ls.hereapi.com/routing/7.2/calculateroute.json
?apiKey={YOUR_API_KEY}
&waypoint0=geo!47.4242219248006,7.226144573449801
&waypoint1=geo!47.46701586747927,7.265097544012576
&mode=fastest;bicycle
&routeattributes=sh
&returnelevation=true
于 2020-04-07T05:42:35.240 回答