如何在此处的起点和终点之间的地图api请求中添加中途停留站

问题描述 投票:0回答:1

我想在起点和终点之间包括中途停留,因此路线应像start-->waypoints-->destination

这是heremap的api请求:

https://router.hereapi.com/v8/routes?transportMode=car&origin=36.15033,-115.111499&destination=36.155825,-115.145881&via:36.171873,-115.146747&return=summary&apiKey=<apiKey>

但是路线仅在起点和终点之间进行计算,避免使用过孔坐标

api postman here-api
1个回答
0
投票

[请尝试将过孔点放在起点和终点之间,例如via point in between link

有关更多详细信息,请参见https://developer.here.com/documentation/routing-api/dev_guide/topics/use-cases/via.html。要绕开最佳路线,请在您的请求中指定via参数。通过接受坐标列表。最终的路线如下所示:从起点到第一个通路,通过请求顺序的任何后续坐标,直到目的地的最后一个通过坐标

如果需要更多帮助,请告知我们。

© www.soinside.com 2019 - 2024. All rights reserved.