Skip to content

ValidityCondition

The ValidityCondition is used to define the conditions that determine when a rule or restriction in a controlled zone applies.

The goal of a ValidityCondition is to specify the time-related and contextual aspects of a rule. It indicates under which circumstances or during which periods a rule is active.

Applications include:

  • Time-specific rules: For example, restrictions that only apply on weekdays, weekends, during rush hours, or within specific dates or times.
  • Seasonal rules: For example, restrictions that only apply in winter (e.g., mandatory winter tires).
  • Event-related rules: For example, rules that apply during an event or temporary roadworks.
  • Dynamic validity: Rules dependent on external conditions, such as weather or traffic conditions.

The ValidityCondition allows rules to be defined flexibly and accurately, ensuring they are only active in relevant situations. This helps with efficient enforcement and communication of rules to road users and systems, while avoiding unnecessary restrictions.

The structure is as follows:

image

Elements

The ValidityCondition type is derived from Condition and introduces the new mandatory element validityByOrder.

Element Type Required Domain Description
validityByOrder Validity Yes N/A The ordered (scheduled) validity as defined in the original traffic regulation order, if available
XML Example
<d2:payload xmlns:tro="http://datex2.eu/schema/3/trafficRegulation" xmlns:loc="http://datex2.eu/schema/3/locationReferencing" xmlns:cz="http://datex2.eu/schema/3/controlledZone" xmlns:comx="http://datex2.eu/schema/3/commonExtension" xmlns:com="http://datex2.eu/schema/3/common" xmlns:d2="http://datex2.eu/schema/3/d2Payload" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cz:ControlledZoneTablePublication" lang="nl" modelBaseVersion="3" xsi:schemaLocation="http://datex2.eu/schema/3/d2Payload LevelC_3_D2Payload.xsd">
  <com:publicationTime>2024-11-13T09:00:50.000356907Z</com:publicationTime>
  <com:publicationCreator>
    <com:country>nl</com:country>
    <com:nationalIdentifier>NDWNL</com:nationalIdentifier>
  </com:publicationCreator>
  <cz:headerInformation>
    <com:informationStatus>real</com:informationStatus>
  </cz:headerInformation>
  <cz:controlledZoneTable>
      ...
      <cz:trafficRegulationOrder id="NDW11_989846cf-0343-4abc-b169-1a2ddaf497d9_TRO" version="1">
        ...
        <tro:trafficRegulation id="NDW11_989846cf-0343-4abc-b169-1a2ddaf497d9_TR" version="1">
            <tro:typeOfRegulation xsi:type="tro:AccessRestriction">
                <tro:accessRestrictionType>noEntry</tro:accessRestrictionType>
            </tro:typeOfRegulation>
            <tro:condition xsi:type="tro:ConditionSet" id="NDW11_989846cf-0343-4abc-b169-1a2ddaf497d9_CS" version="1">
            <tro:operator>and</tro:operator>
            <tro:conditions xsi:type="tro:ValidityCondition" id="NDW11_989846cf-0343-4abc-b169-1a2ddaf497d9_VC" version="1">
              <tro:validityByOrder>
                <com:validityStatus>definedByValidityTimeSpec</com:validityStatus>
                <com:validityTimeSpecification>
                  <com:overallStartTime>2020-10-31T23:00:00Z</com:overallStartTime>
                </com:validityTimeSpecification>
              </tro:validityByOrder>
            </tro:conditions>
            <tro:conditions xsi:type="tro:LocationCondition" id="NDW11_989846cf-0343-4abc-b169-1a2ddaf497d9_area" version="1">
              <tro:locationByOrder xsi:type="loc:AreaLocation">
                ...    
              </tro:locationByOrder>
            </tro:conditions>            
           </tro:conditions>
        </tro:trafficRegulation>
      </cz:trafficRegulationOrder>
    </cz:urbanVehicleAccessRegulation>
    <cz:urbanVehicleAccessRegulation id="NDW11_500de66b-b51e-465f-8309-6d5eda0de5a1" version="1">
        ..
    </cz:urbanVehicleAccessRegulation>    
  </cz:controlledZoneTable>
</d2:payload>
Go back to the previous page