Apply a Level-Of-Service Filter for Traffic Flow

A Level-of-Service value indicates the current traffic quality. The Level-Of-Sevice value is dependent on the road category. For example, an average speed of 40km/h may be 'Free Traffic' on a city road and may be 'Queuing Traffic' on a highway.

The table below lists the available Level-of-Service values.

Value Meaning
0 unknown
1 free traffic
2 heavy traffic
3 slow traffic
4 queuing traffic
5 stationary traffic
6 no traffic flow

To request data for a specific Level-of-Service, use a JSON query with the desired level-of-service for which you want to request data.

{"los": <value>}

You may also provide a comma separated list of Level-of-Service values.

{"los": [<value1>, <value2>,...]}

When requesting incidents, make sure to include the "incident" element in your JSON query:

{
  { "incident": {"los": [<value1>, <value2>, ...]}}
}

When requesting flow data, make sure to include the "flow" element in your JSON query:

{
  { "flow": {"los": [<value1>, <value2>, ...]}}
}

Send an HTTP POST request to either the DATEX II incident or the DATEX II flow endpoint with your JSON data in the POST body:

http://data.traffic.api.here.com/datex/2.3/incident/content.xml

For an example of how to send a request for a specific Level-of-Service value to the Traffic Data Service, see Traffic Flow On Roads With Free Traffic In DATEX II.

results matching ""

    No results matching ""