When requesting a multi-leg route via the HERE API (e.g. Point A to Point B via Point C), is it possible to prevent or restrict u-turns? I am trying to produce a map to be followed by a school bus, and u-turns are not allowed. However, I often find that the directions suggest to do a u-turn upon arrival at the intermediate points. I would like the bus to keep going straight after making its stop. Is this possible to do?

有帮助吗?

解决方案

I'm not aware of the possibility to restrict this type of maneuver. Nevertheless, you can use truck routing in Here Location Platform for Enterprise, see the documentation here:

https://developer.here.com/documentation/download/routing_lbsp/6.2.32.0/Routing%20API%20v6.2.32.0%20Developer%27s%20Guide.pdf

It should retrieve much more adapted route for your use case and it might avoid u-turn.

Also, one final simple solution is to calculate route with alternative set to 3 (or make multiple call with other optimizations) and iterates through the different result in order to exclude routes that would include maneuver with a type associated to a u-turn

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top