Routing API Developer's Guide

Requesting Multiple Routes With Labels

In order to be able to differentiate the routes when requesting for alternatives, the labelling option was introduced. By switching on the route attribute labels a set of labels for the requested routes are returned.

The following example shows a request with labels, where 2 alternatives are requested.
https://route.cit.api.here.com/routing/7.2/calculateroute.json
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&waypoint0=geo!52.513343,13.356054
&waypoint1=geo!50.088478,14.432714
&mode=fastest;car;traffic:disabled
&alternatives=2
&routeattributes=labels
Figure 1. The route response for the request with labels in the example above.
The labels can be displayed in an Overview panel. An example of such panel is shown below.
Figure 2. Example of response with alternatives, where label information is shown in the Overview panel.
In the JSON response, the label information is serialized for each route, as follows:
route:[
  {
    waypoint: [...],
    mode: {...},
    shape: [...],
    leg: [...],
    summary: {...},
    maneuverGroup: [...],
    label: [
      "A2",
      "A1"
    ]
  }
]
    

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.