Get started
- Last UpdatedJan 21, 2025
- 3 minute read
This section outlines how to quickly get started using the HERE Routing API on the HERE platform.
Note
This section provides information on the minimum setup required to quickly begin using the HERE Routing API. For more detailed information on HERE account setup, app registration, and authentication, see the Identity & Access Management Developer Guide.
Get a HERE Account
You can get started with a free HERE platform account from the flexible HERE Base Plan. For more information, see the HERE Base Plan Pricing. Alternatively, if your company has already established a HERE platform organization, contact your organization admin who can invite you to join your company's organization.
Get an API key
To get an API key, follow these steps:
- Sign in to the HERE platform using your HERE account.
- Select the Access Manager from the launcher.
- Select the Apps tab and click Register new app.
- Enter a name for the app.
- Optional: Enter a description for the app.
- Click Register. The HERE platform creates a new app with a unique app ID.
- On the Credentials tab, select API Keys and then click Create API key to generate a maximum of two API Keys for your application authentication credentials. The API key is created and displayed.
Send a request
A route calculation consists of a single GET request. The only required parameters are an origin and a destination, given by two pairs of WGS84 coordinates in the form <latitude>,<longitude>
; and a transportation mode, which can be bicycle
, bus
, car
,pedestrian
,scooter
, taxi
, or truck
.
The following request will calculate a car route with default options:
Note
This example uses an API key to authenticate your request. For the available authentication options, see the Identity & Access Management Guide.
Note
Postman users can import these examples: Import > Paste Raw Text
If the route calculation was successful, the response contains the calculated route with departure and arrival times in one or more sections. Additional summary information, such as the length and duration are also provided.
No routes possible
Some requests will not result in any routes for a number of reasons. This example requests a route from the HERE Berlin office to the HERE Chicago office:
The Atlantic Ocean is between these two offices. This causes the route calculation to fail with the following response:
Encoding your request
Some parameter values, especially waypoint
specifications, use a structured string in their values. Content characters may then clash with control characters in your request. Consider for example a request such as the following:
Such a request is ambiguous due to the use of control characters (&
, !
) in the value of nameHint
. Such characters need to be appropriately percent-encoded for disambiguation. The following guidelines apply for percent-encoding your requests:
- Never percent encode
&
or=
when they are used as control characters. - If your request does not use control characters as content (i.e., they are only used for their intended control meaning), you don't need to encode anything.
- If your request does use control characters for content, percent-encode them, but leave the controlling characters unencoded. Do not double-encode. In such mixed requests, all naked control characters will be interpreted as control, and all encoded ones as content.
Therefore, the above request should be encoded as:
Next steps
- For a full list of available examples, see the tutorials in the table of contents of this guide.
- For the terms and conditions covering this documentation, see the HERE Documentation License.