这里的地图路由API V8-多个航路点

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

我对Here Maps Routing API v8非常陌生。

我已经尝试过此处提供的示例:https://developer.here.com/documentation/maps/3.1.15.1/dev_guide/topics/routing.html

我使用了如下所示的routingParameters:

var routingParameters = {
  'routingMode': 'fast',
  'transportMode': 'car',
  'origin': '50.1120,8.6834',
  'destination': '52.5309,13.3846',
  'return': 'polyline'
};

现在,我想在routingParameters中添加多个航路点,并且我尝试了以下格式:

'via' : ['50.1234,8.7654', '51.2234,9.1123']

但是当我在routingParameters中使用以上代码时,请求失败。

您能否建议带有多个路标的请求的正确格式?

我对Here Maps Routing API v8非常陌生。我尝试了此处提供的示例:https://developer.here.com/documentation/maps/3.1.15.1/dev_guide/topics/routing.html我使用了...

here-api here-maps-rest
1个回答
0
投票

您尝试通过将数组传递给via参数的方法,应该是传递多个航路点的正确方法,但是似乎尚不支持。路由v8是最新的API,我遇到了同样的问题。

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