Traffic API Developer's Guide

Traffic Flow Data in a Specified Area

The user wants to obtain traffic flow data for an area around Frankfurt am Main, Germany.

All requests for traffic flow data must address the flow resource and indicate the area for which to obtain data.

Request

A request matching the user story is formulated as follows:

https://traffic.cit.api.here.com/traffic/6.2/flow/xml/8/134/86
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}

To specify the tile for which to obtain traffic flow data, the request indicates the zoom level as 8, the tile column as 134, and row as 86.

Response

The response carries the following XML contents:

<?xml version="1.0" encoding="UTF-8"?>
<TRAFFICML_REALTIME CREATED_TIMESTAMP="2017-06-01T14:04:43Z" MAP_VERSION="" UNITS="metric" VERSION="3.2" xmlns="http://traffic.nokia.com/trafficml-flow-3.2">
  <RWS EBU_COUNTRY_CODE="D" EXTENDED_COUNTRY_CODE="E0" MAP_VERSION="201702" TABLE_ID="1" TY="TMC" UNITS="metric">
  <RW DE="L3133" LI="D01-06664" PBT="2017-06-01T14:04:33Z" mid="7f81e8c6-da47-46fc-83ae-a91f66ca2142|">
    <FIS>
    <FI>
      <TMC DE="Pohlheim-Dorf-Güll" LE="0.97071" PC="6671" QD="+"/>
      <CF CN="0.7" FF="35.0" JF="0.85714" SP="32.0" SU="32.0" TY="TR"/>
    </FI>
    <FI>
      <TMC DE="Pohlheim-Holzheim" LE="3.44059" PC="6670" QD="+"/>
      <CF CN="0.7" FF="56.0" JF="0.89285" SP="51.0" SU="51.0" TY="TR"/>
    </FI>
    <FI>
      <TMC DE="Langgöns" LE="4.87351" PC="6669" QD="+"/>
      <CF CN="0.7" FF="63.0" JF="1.42857" SP="54.0" SU="54.0" TY="TR"/>
    </FI>
    <!-- ... -->
    </FIS>
  </RW>
  </RWS>
</TRAFFICML_REALTIME>