DATEX II demand events

The standard DATEX II manages demand events (for example, <situationRecord> node with type set to OptimaDemandEvent). .

Optima provides additional capabilities, added as DATEX II extensions:

Important:  Before creating or updating a demand event, you can read Optima demand events through the API → Getting all traffic events.

All demand events properties are under the main node <d2LogicalModel>/<payloadPublication>/<situation>/<situationRecord>.

In the table, the relevant properties for demand events, with additional properties provided by the extensions.

Property DATEX II Optima extensions Description
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<d2LogicalModel xmlns="...">
........
        <groupOfLocations xsi:type="ZoneLocationTDE">
........
</d2LogicalModel>

YES

Contains the zone associated to the event.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<d2LogicalModel xmlns="...">
........
        <groupOfLocations xsi:type="ZoneLocationTDE">
               <zoneID>-33</zoneID>
        </groupOfLocations>
........
</d2LogicalModel>

YES

zoneID is the identifier of the referenced zone, present in the model.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<d2LogicalModel xmlns="...">
........
        <numberOfVehicle>1000</numberOfVehicle>
........
</d2LogicalModel>

YES

Contains the number of vehicles associated to the specified zone (entering or exiting).

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<d2LogicalModel xmlns="...">
........
          <zoneIsAttracting>true</zoneIsAttracting>              
........
</d2LogicalModel>

YES

Admitted values:

  • true: The vehicles are entering in the zone.
  • false: The vehicles are exiting in the zone.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<d2LogicalModel xmlns="...">
........
          <optimaDemandEventType>rugbyMatch</optimaDemandEventType>              
........
</d2LogicalModel>

YES

Admitted values:

for the new field optimaDemandEventType

you can specify all the values associated to the standard DATEX II element:

<xs:simpleType name="PublicEventTypeEnum">

Example: rugbyMatch

See DATEXIISchema_2_2_3.xsd.