Traffic API Developer's Guide

Requesting Traffic Flow Data with DLR

Example

Example request returning only information:

https://traffic.cit.api.here.com/traffic/6.2/flow.xml
?app_id={YOUR_APP_ID}
&app_code={YOUR_APP_CODE}
&bbox=52.5358,13.2954;52.4613,13.5022
&locationreferences=shp

NOTE: DLRs are appearing in arbitrary places only according to traffic conditions. It could happen so, that request will not return any DLRs!

Shown below is an example response in XML format. Note the <SHP> elements carrying shapes for the roadways corresponding to the given flow items.

<?xml version="1.0" encoding="UTF-8"?>
<TRAFFICML_REALTIME xmlns="http://traffic.nokia.com/trafficml-flow-3.1" MAP_VERSION="" CREATED_TIMESTAMP="2014-10-07T15:17:20Z" VERSION="3.1" UNITS="metric">
  <RWS TY="SHP" MAP_VERSION="201402" EBU_COUNTRY_CODE="D" EXTENDED_COUNTRY_CODE="E0" TABLE_ID="1" UNITS="metric">
    <RW PBT="2014-10-07T15:15:51Z" mid="58153dd3-3897-4dce-a1b0-4fc0c1426b5e~764250197P">
      <FIS>
        <FI>
          <SHP FC="4">52.52341,13.41802 52.52366,13.41832 52.52384,13.41858 52.52398,13.4188</SHP>
          <CF CN="0.88" FF="50.05" JF="8.53689" SP="8.8" SU="8.8" TY="TR"/>
        </FI>
      </FIS>
    </RW>
    <RW PBT="2014-10-07T15:15:56Z" mid="7a8ee19a-d30a-4d40-b03e-7cdfd6032fb8~722914107P">
      <FIS>
        <FI>
          <SHP FC="3">52.46187,13.43308 52.46191,13.43361 52.46201,13.43465</SHP>
          <CF CN="0.79" FF="28.97" JF="5.7204" SP="17.24" SU="17.24" TY="TR"/>
        </FI>
      </FIS>
    </RW>
    <RW PBT="2014-10-07T15:11:12Z" mid="fd184969-ddad-42fb-b550-edac75305c10~833274214P">
      <FIS>
        <FI>
          <SHP FC="3">52.53458,13.29472 52.53472,13.29504 52.53479,13.29531 52.53484,13.29561</SHP>
          <CF CN="0.85" FF="48.92" JF="5.90376" SP="28.35" SU="28.35" TY="TR"/>
        </FI>
      </FIS>
    </RW>    
  </RWS>
</TRAFFICML_REALTIME>

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.