路由服务v8 API问题--不止一个航点维亚?

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

我有一个问题与Here Maps Routing API v8。

虽然 文件 指出:but a request may specify many more intermediate waypoints with via as well. See Route Via Intermediate Waypoint for examples.

... 我不知道如何创建一个有一个起始点和两个或多个航点的请求。在v7中,我们有一个单一的 航点 参数,允许无限的航点。

在v8中,我尝试了像:&via=52,13;51,14&...这样发送两个航点,但是没有用。

v8的文档(感觉很匆忙,没有完成)没有帮助,而且也没有帮助。其唯一的例子,它只说明了单一的通过航点的使用。

请帮助!!!。

here-api
1个回答
0
投票

你需要添加尽可能多的次数 via={lat},{lng} 因为你有航点。

# Note: line breaks and spaces are for readability only (they need to be removed)

https://router.hereapi.com/v8/routes?
  origin=52.550464,13.384223
  &transportMode=car
  &destination=52.477545,13.447395
  &via=52.529791,13.401389
  &via=52.513079,13.424392
  &via=52.487581,13.425079
  &apikey={YOUR_API_KEY}
© www.soinside.com 2019 - 2024. All rights reserved.