Routing API Developer's Guide

Constructing a Request

A request to the Routing API includes the basic elements shown in the following table and, in addition, it may contain resource-specific parameters.

Table 1. Basic request elements
Element Value/Example Description
Base URL
https://route.api.here.com
https://route.cit.api.here.com

Production environment

CIT environment: see HERE Server Environments

Path
 /routing/7.2/
 
Resource
calculateroute
getroute

All support GET. The calculateroute supports POST partially (only waypoints, avoidlinks and avoidareas in the same format as in the REST URL).

Specify request details via query parameters.

Format

Supported formats:

  • json
  • xml
 
Application Code
&app_code={YOUR_APP_CODE}
Substitute your own unique app_code
Application Id
&app_id={YOUR_APP_ID}
Substitute your own unique app_id

Table 2. Basic request elements for calculate isoline service
Element Value/Example Description
Base URL
https://isoline.route.api.here.com
https://isoline.route.cit.api.here.com

Production environment

CIT environment

Path
 /routing/7.2/
 
Resource
calculateisoline

Supports only GET, specify request details via query parameters

Format

Supported formats:

  • json
  • xml
 
Application Code
&app_code={YOUR_APP_CODE}
Substitute your own unique app_code
Application Id
&app_id={YOUR_APP_ID}
Substitute your own unique app_id
Table 3. Basic request elements for calculate matrix service
Element Value/Example Description
Base URL
https://matrix.route.api.here.com
https://matrix.route.cit.api.here.com

Production environment

CIT environment

Path
 /routing/7.2/
 
Resource
calculatematrix

Supports GET and partially POST (only start points and destinations in the same format as in the REST URL).

Specify request details via query parameters

Format

Supported formats:

  • json
  • xml
 
Application Code
&app_code={YOUR_APP_CODE}
Substitute your own unique app_code
Application Id
&app_id={YOUR_APP_ID}
Substitute your own unique app_id

GET request

Here is an example of a routing request, which uses the HTTP GET method:

https://route.cit.api.here.com/routing/7.2/calculateroute.json
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&waypoint0=geo!52.5,13.4
&waypoint1=geo!52.5,13.45
&mode=fastest;car;traffic:disabled

The following example shows how to retrieve the same search data in XML format:

https://route.cit.api.here.com/routing/7.2/calculateroute.xml
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&waypoint0=geo!52.5,13.4
&waypoint1=geo!52.5,13.45
&mode=fastest;car;traffic:disabled

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.