Requesting a Route With Alternatives
You can request alternative routes to the one our router considers to be best. This is done by specifying the parameter alternatives
. Its default value is 0. The result will contain a maximum of this amount of alternatives. The router returns only alternatives which are reasonably fast and different from original. Because of that, it is not always possible to return the requested amount of alternatives, or it can even happen that none are returned.
https://route.api.here.com/routing/7.2/calculateroute.json
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&waypoint0=geo!52.526922,13.386224
&waypoint1=geo!52.523189,13.403243
&mode=fastest;car;traffic:disabled
&alternatives=5

Only 2 waypoints can be used when requesting alternatives. If more than 2 are sent an error is returned.