In order to differentiate the routes when requesting for alternatives, Routing API v7 provides labels. Enable the route attribute labels to obtain a response with a set of labels for the requested routes.
The following example shows a request with labels, where 2 alternatives are requested.
Note: This example uses a HERE API Key to authenticate your request. For information on other possible options, see Authentication Guide. For examples of how to use the other authentication options with the Routing API v7, see Authentication Examples.
The labels can be displayed in an Overview panel. An example of such panel is shown below.
In the JSON response, the label information is serialized for each route, as follows: