Constructing a Request
A typical request to the Traffic API includes the basic elements shown in the following table and may contain resource-specific parameters or data
Element | Value/Example | Purpose | Description/comments |
---|---|---|---|
Base URL | | Tiles Incidents, Flow, or Flow Availability | Production environment when you use an API Key or an authentication token. For the available authentication options, see the Identity & Access Management Developer Guide. |
Legacy Base URL | https://tiles.traffic.api.here.com | Tiles Incidents, Flow, or Flow Availability | Production environment when you use an app_id/app_code pair. For the available authentication options, see the Identity & Access Management Developer Guide. |
Path | | For | |
| For | ||
| For | ||
Resource | | To obtain traffic map tiles | Name of a resource. Only the GET method is supported. Parameters specify request details. See also Examples. |
| To obtain traffic incident data | ||
| To obtain traffic flow data | ||
| To obtain information on traffic flow availability | ||
Addressing Scheme | Quadkey, [Z]/[X]/[Y], Bounding Box, Corridor or Proximity | Traffic Flow Data | Geographic area for which to retrieve data; options depend on resource/function. |
Quadkey, [Z]/[X]/[Y] | Traffic Tiles | ||
Quadkey, [Z]/[X]/[Y], Bounding Box, Corridor or Proximity | Traffic Incidents | ||
Customer Profile or Mapview | Traffic Flow Availability | ||
API Key | ?apiKey={YOUR_API_KEY} | All requests | Substitute your own unique apiKey . For more information on authentication, see the Identity & Access Management Developer Guide. |
Application Code - Legacy | &app_code={YOUR_APP_CODE} | All requests | Substitute your own unique app_code . For more information on authentication, see the Identity & Access Management Developer Guide. |
Application Id - Legacy | &app_id={YOUR_APP_ID} | All requests | Substitute your own unique app_id . For more information on authentication, see the Identity & Access Management Developer Guide. |
For further information, see Examples.