DATEX II
DATEX II is the European standard for the exchange of traffic related data.
It is a unified XML-based format to allow data exchange between service providers, traffic control centers, and road operators. It covers traffic and travel information such as:
- traffic flow
- traffic measures
- roadworks
- accidents
- parking
Traffic Data Service supports the following message types in DATEX II v2.3:
- Part 3: Situation publication (traffic incident data)
- Part 5: Measured and Elaborated Data Publications (traffic flow data)
For more information on DATEX II see https://www.datex2.eu/.
The DATEX II data model allows for a number of extensions to meet specific, and unique requirements. In order for Traffic Data Service to better represent real time flow and incident data, HERE DATEX II Service has been extended to what is called a "Level B Extension". DATEX II Level B extensions are fully compatible with the default DATEX II Level A data model. For more information about Level B extensions, see the DATEX II Extension Guide.
DATEX II Flow feed has following Level B extensions
XML Extension Element | Description |
averageSpeed | Average speed on the location in km/h |
freeFlowSpeed | Free flow speed on the location in km/h |
trafficStatus | Current traffic quality on the location |
jamFactor | Expected quality of traffic. A number between 0.0 and 10.0. When there is a road closure, the jam factor is 10 |
travelTime | Travel time in seconds to travel through that location |
length | Length of the location |
laneInfo | Lane specific traffic flow information that includes laneNumber, jamFactor and laneType |
Following are examples for the Class B flow extension xml elements:
Average Speed:
<averageSpeed>
<speed>20</speed>
</averageSpeed>
Free Flow Speed:
<freeFlowSpeed>
<speed>50</speed>
</freeFlowSpeed>
Traffic Status:
<trafficStatus>
<trafficStatusValue>freeFlow</trafficStatusValue>
</trafficStatus>
Jam Factor:
<jamFactor>0.5</jamFactor>
Travel Time:
<travelTime>
<duration>180</duration>
</travelTime>
Length:
<length>
<integerMetreDistance>1000</integerMetreDistance>
</length>
LaneInfo:
<laneInfo>
<jamFactor>10.000000</jamFactor>
<laneType>carPoolLane</laneType>
<laneNumber>lane1</laneNumber>
</laneInfo>
DATEX II Incident Feed has following Class B extensions
XML Extension Element | Description |
averageSpeed | Average speed on the location in km/h |
Following is an example xml element for the Level B incident extension averageSpeed:
<situationRecordExtended>
<averageSpeed>
<speed>50</speed>
</averageSpeed>
</situationRecordExtended>