路由服务 v8 API 问题 - 多单 waypoint/via?

Routing Service v8 API question - more than a single waypoint/via?

我对 Here Maps Routing API v8.

有疑问

尽管 documentation 指出: but a request may specify many more intermediate waypoints with via as well. See Route Via Intermediate Waypoint for examples.

...我不知道如何用一个 origin/destination 和两个或更多 waypoints 创建请求。在 v7 中,我们有一个 waypoints 参数,它允许无限 waypoints.

在 v8 中,我尝试了类似:&via=52,13;51,14&.. 来发送两个 via 点,但这不起作用。

v8 文档(感觉 rushed/unfinished)没有帮助,their only example 也没有帮助,它只说明了单个 via 航路点的使用。

求助!!! .

您需要添加多少次 via={lat},{lng} 就多少次 waypoints:

# 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}