HERE Traffic TPEG API
Traffic TPEG API Developer's Guide

Construct a request

A request to the Traffic TPEG API includes the basic elements shown in the following tables and, in addition, it may contain resource-specific parameters in the request body.

Table 1. initsession request elements
Element Value/Example Description
Base URL
https://tpeg.cit.cc.api.here.com
Customer Integration environment1
Path
 /tpeg/1.0/
 
Resource
initsession

POST only, request parameters in the body.

Profile
profile={PROFILE}
Optional parameter. Substitute your own unique profile.
Authorization
Using app_id and app_code:
app_id={YOUR_APP_ID}&app_code={YOUR_APP_CODE}
Using apiKey:
apiKey={apiKey}
For instructions on how to use token authorization, see the Identity & Access Management Developer Guide.
Note: The base URL for token authorization is https://tpeg.traffic.ls.hereapi.com.
Authorization is required. Substitute your own unique app_id, app_code, apiKey or token values. For more information on available authentication options, see the Identity & Access Management Developer Guide.

Based on the data received in the initsession response, your application should build a GetMessages request. For more information, see Send a getmessages request.

1

The Customer Integration environment (CIT) allows you to test your software against a special dedicated endpoint. Note that application id and application code for CIT environment are different from the ones used in Production environment. In case of questions, please contact your HERE support representative.

The Customer Integration environment is not intended for production use and HERE SLAs do not apply for this environment!