Example Traffic Incidents DATEX II Response
This response contains the following high level elements
- a timestamp of the obtained traffic data
- an array of
<situation>
elements that contain the incident location, time, duration, severity, description, and other details
Example XML Response
<?xml version="1.0" encoding="UTF-8"?>
<d2LogicalModel xmlns="http://datex2.eu/schema/2/2_0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" modelBaseVersion="2" xsi:schemaLocation="http://datex2.eu/schema/2/2_3/DATEXIISchema_2_2_3.xsd">
<exchange>
<supplierIdentification>
<country>other</country>
<nationalIdentifier />
</supplierIdentification>
</exchange>
<payloadPublication lang="en" xsi:type="SituationPublication">
<publicationTime>1970-01-01T00:00:00Z</publicationTime>
<publicationCreator>
<country>other</country>
<nationalIdentifier />
</publicationCreator>
<situation id="1-337-0" version="1530275143">
<overallSeverity>medium</overallSeverity>
<headerInformation>
<confidentiality>noRestriction</confidentiality>
<informationStatus>real</informationStatus>
</headerInformation>
<situationRecord xsi:type="AbnormalTraffic" id="1-337-1" version="1530275143">
<situationRecordCreationTime>2018-06-29T12:25:43Z</situationRecordCreationTime>
<situationRecordVersionTime>2018-06-29T12:25:43Z</situationRecordVersionTime>
<probabilityOfOccurrence>certain</probabilityOfOccurrence>
<severity>medium</severity>
<validity>
<validityStatus>definedByValidityTimeSpec</validityStatus>
<validityTimeSpecification>
<overallStartTime>2017-05-09T09:00:00Z</overallStartTime>
<overallEndTime>2017-05-09T21:00:00Z</overallEndTime>
</validityTimeSpecification>
</validity>
<groupOfLocations xsi:type="Linear">
<linearExtension>
<openlrExtendedLinear>
<firstDirection>
<openlrLocationReferencePoint>
<openlrCoordinate>
<latitude>52.474598</latitude>
<longitude>4.654298</longitude>
</openlrCoordinate>
<openlrLineAttributes>
<openlrFunctionalRoadClass>FRC1</openlrFunctionalRoadClass>
<openlrFormOfWay>motorway</openlrFormOfWay>
<openlrBearing>281</openlrBearing>
</openlrLineAttributes>
<openlrPathAttributes>
<openlrLowestFRCToNextLRPoint>FRC1</openlrLowestFRCToNextLRPoint>
<openlrDistanceToNextLRPoint>500</openlrDistanceToNextLRPoint>
</openlrPathAttributes>
</openlrLocationReferencePoint>
<openlrLocationReferencePoint>
<openlrCoordinate>
<latitude>52.472345</latitude>
<longitude>4.652345</longitude>
</openlrCoordinate>
<openlrLineAttributes>
<openlrFunctionalRoadClass>FRC1</openlrFunctionalRoadClass>
<openlrFormOfWay>motorway</openlrFormOfWay>
<openlrBearing>267</openlrBearing>
</openlrLineAttributes>
<openlrPathAttributes>
<openlrLowestFRCToNextLRPoint>FRC1</openlrLowestFRCToNextLRPoint>
<openlrDistanceToNextLRPoint>500</openlrDistanceToNextLRPoint>
</openlrPathAttributes>
</openlrLocationReferencePoint>
<openlrLastLocationReferencePoint>
<openlrCoordinate>
<latitude>52.471325</latitude>
<longitude>4.651895</longitude>
</openlrCoordinate>
<openlrLineAttributes>
<openlrFunctionalRoadClass>FRC1</openlrFunctionalRoadClass>
<openlrFormOfWay>motorway</openlrFormOfWay>
<openlrBearing>260</openlrBearing>
</openlrLineAttributes>
</openlrLastLocationReferencePoint>
<openlrOffsets>
<openlrPositiveOffset>0</openlrPositiveOffset>
<openlrNegativeOffset>0</openlrNegativeOffset>
</openlrOffsets>
</firstDirection>
</openlrExtendedLinear>
</linearExtension>
</groupOfLocations>
<abnormalTrafficType>stationaryTraffic</abnormalTrafficType>
<situationRecordExtension>
<situationRecordExtended>
<averageSpeed>
<speed>50</speed>
</averageSpeed>
<freeFlowSpeed>
<speed>60</speed>
</freeFlowSpeed>
</situationRecordExtended>
</situationRecordExtension>
<queueLength>120</queueLength>
</situationRecord>
</situation>
</payloadPublication>
</d2LogicalModel>