HERE Traffic TPEG API
Traffic TPEG API Developer's Guide

Send a getmessages request

All getmessages request parameters are passed in the POST request XML body, which must conform to the getmessages request XSD.
Note: All getmessages requests are encrypted and decrypted as described in Get started.

Common request parameters are listed in the following table:

Table 1. Request parameters
Parameter Description
locations Occurs once as a child of get-messages.
loc Occurs at least once.
  • @lat: Latitude as five digit precision floating point.
  • @lon: Longitude as five digit precision floating point.
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 https://developer.here.com/documentation/authentication/dev_guide/topics/token.html.
Note: The base URL for token authorization is https://tpeg.traffic.ls.hereapi.com

Example request body

All getmessages requests must be preceded by an initsession request and must be encrypted as described in Get started.


<?xml version="1.0" encoding="UTF-8" ?>
<get-messages>
  <locations>
    <loc lat="52.55121" lon="13.16565"/>    
  </locations>
</get-messages>

getmessages response

All getmessages responses are in the binary format. For more information, see the TPEG specification.