Traffic Flow Data with Max Functional Class Filter
The user wants to obtain traffic flow data for an area around Frankfurt am Main, Germany. The area is identified using the [Z]/[X]/[Y] addressing scheme, with map zoom level 9. The response includes data in XML format, filtered to only include functional road class types no higher than 2.
Request
The [Z]/[X]/[Y] values are 9, 268, and 173 respectively. The maxfunctionalclass
parameter is 2.
https://traffic.ls.hereapi.com/traffic/6.2/flow/xml/9/268/173
?apiKey={YOUR_API_KEY}
&maxfunctionalclass=2
Response
The following code block shows the response the request for traffic flow data with a maximum functional class filter. Note that this response is abbreviated because of space limitations. In reality, the XML may contain a very large number of <RW>
elements.
<?xml version="1.0" encoding="UTF-8"?>
<TRAFFICML_REALTIME CREATED_TIMESTAMP="2017-06-02T17:55:33Z" 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="Frankfurter Straße" LI="D01-06899" PBT="2017-06-02T17:55:01Z" mid="8a7008fa-91c7-4e5d-ab82-9fbd9e346e7b|">
<FIS>
<FI>
<TMC DE="Groß-Gerau" LE="0.39216" PC="6901" QD="+"/>
<CF CN="0.76" FF="51.0" JF="0.92672" SP="43.27" SU="43.27" TY="TR"/>
</FI>
</FIS>
</RW>
<RW DE="Frankfurter Straße" LI="D01+06899" PBT="2017-06-02T17:55:14Z" mid="31d22403-1827-4f5e-aa95-ded5148e14d0|">
<FIS>
<FI>
<TMC DE="Groß-Gerau" LE="1.26399" PC="6901" QD="-"/>
<CF CN="0.73" FF="44.0" JF="0.87653" SP="40.14" SU="40.14" TY="TR"/>
</FI>
</FIS>
</RW>
</RWS>
</TRAFFICML_REALTIME>