Routing API Developer's Guide

Specify the Maximum Number of Changes

To request a public transport route using the CalculateRouteRequest service, you must specify the start (waypoint0) and destination (waypoint1) waypoints and choose a public transport routing mode. Additionally, you must include your authentication credentials, app_id and app_code with each request to the Routing API.

This request queries a route using estimated public transport and specifies the maximum number of changes allowed in the route. For documentation on request parameters, see Calculate Route.

https://route.ls.hereapi.com/routing/7.2/calculateroute.json
?apikey={YOUR_APIKEY}
&waypoint0=geo!52.530,13.326
&waypoint1=geo!52.513,13.407
&departure=now
&mode=fastest;publicTransport
&combineChange=true
&alternatives=3
&maxnumberofchanges=1
Note: This example uses a HERE API Key to authenticate your request. For information on other possible options, see https://developer.here.com/documentation/authentication. For examples of how to use the other authentication options with the Routing API, see Authentication Examples.