-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stratification of transport mode enumerations #791
base: next
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,41 +112,13 @@ Rail transport, Roads and Road transport | |
<xsd:list itemType="AccessModeEnumeration"/> | ||
</xsd:simpleType> | ||
<!--======Vehicle===================================================================================--> | ||
<xsd:element name="VehicleMode" type="AllModesEnumeration"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks like having been the wrong before. |
||
<xsd:element name="VehicleMode" type="AllVehicleModesOfTransportEnumeration"> | ||
<xsd:annotation> | ||
<xsd:documentation>VEHICLE MODE: a characterisation of the operation according to the means of transport (bus, tram, metro, train, ferry, ship).</xsd:documentation> | ||
<xsd:documentation>VEHICLE TRANSPORT MODE: a characterisation of the operation according to the means of transport (bus, tram, metro, train, ferry, ship).</xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:element> | ||
<xsd:simpleType name="VehicleModeEnumeration"> | ||
<xsd:annotation> | ||
<xsd:documentation>Allowed values for MODES of Public Transport applicable to timetabled public transport.</xsd:documentation> | ||
</xsd:annotation> | ||
<xsd:restriction base="xsd:NMTOKEN"> | ||
<xsd:enumeration value="air"/> | ||
<xsd:enumeration value="bus"/> | ||
<xsd:enumeration value="coach"/> | ||
<xsd:enumeration value="ferry"/> | ||
<xsd:enumeration value="metro"/> | ||
<xsd:enumeration value="rail"/> | ||
<xsd:enumeration value="trolleyBus"/> | ||
<xsd:enumeration value="tram"/> | ||
<xsd:enumeration value="water"/> | ||
<xsd:enumeration value="cableway"/> | ||
<xsd:enumeration value="funicular"/> | ||
<xsd:enumeration value="lift"/> | ||
<xsd:enumeration value="snowAndIce"/> | ||
<xsd:enumeration value="other"/> | ||
</xsd:restriction> | ||
</xsd:simpleType> | ||
<xsd:simpleType name="VehicleModeListOfEnumerations"> | ||
<xsd:annotation> | ||
<xsd:documentation>Allowed values for List of PT MODES of transport applicable to timetabled public transport.</xsd:documentation> | ||
</xsd:annotation> | ||
<xsd:list itemType="VehicleModeEnumeration"/> | ||
</xsd:simpleType> | ||
<!--======Modes===================================================================================--> | ||
<!--======Modes===================================================================================--> | ||
<xsd:element name="RoadVehicleMode" type="AllModesEnumeration"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks like having been the wrong before. |
||
<xsd:element name="RoadVehicleMode" type="RoadVehicleModeEnumeration"> | ||
<xsd:annotation> | ||
<xsd:documentation>Road Vehicle MODE: a characterisation of the operation according to the means of transport (bus, tram, coach).</xsd:documentation> | ||
</xsd:annotation> | ||
|
@@ -174,9 +146,9 @@ Rail transport, Roads and Road transport | |
<xsd:documentation>All MODEs including vehicle transport and self drive.</xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:element> | ||
<xsd:simpleType name="AllModesEnumeration"> | ||
<xsd:simpleType name="AllModesOfTransportEnumeration"> | ||
<xsd:annotation> | ||
<xsd:documentation>Allowed values for r MODES: TPEG pti_table 01.</xsd:documentation> | ||
<xsd:documentation>Allowed values for MODES of TRANSPORT: TPEG pti_table 01.</xsd:documentation> | ||
</xsd:annotation> | ||
<xsd:restriction base="xsd:NMTOKEN"> | ||
<xsd:enumeration value="all"/> | ||
|
@@ -213,15 +185,15 @@ Rail transport, Roads and Road transport | |
<!-- NOT IN tpeg --> | ||
</xsd:restriction> | ||
</xsd:simpleType> | ||
<xsd:simpleType name="AllModesListOfEnumerations"> | ||
<xsd:simpleType name="AllModesOfTransportListOfEnumerations"> | ||
<xsd:annotation> | ||
<xsd:documentation>Allowed values for List of ALL MODES of transport.</xsd:documentation> | ||
<xsd:documentation>Allowed values for List of ALL MODES of TRANSPORT.</xsd:documentation> | ||
</xsd:annotation> | ||
<xsd:list itemType="AllModesEnumeration"/> | ||
<xsd:list itemType="AllModesOfTransportEnumeration"/> | ||
</xsd:simpleType> | ||
<xsd:simpleType name="AllVehicleModesListOfEnumerations"> | ||
<xsd:simpleType name="AllVehicleModesOfTransportListOfEnumerations"> | ||
<xsd:annotation> | ||
<xsd:documentation>Allowed values for List of PT MODES of transport applicable to timetabled public transport.</xsd:documentation> | ||
<xsd:documentation>Allowed values for List of PT MODES of TRANSPORT applicable to timetabled public transport.</xsd:documentation> | ||
</xsd:annotation> | ||
<xsd:list itemType="AllVehicleModesOfTransportEnumeration"/> | ||
</xsd:simpleType> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -276,9 +276,9 @@ Rail transport, Roads and Road transport | |
<xsd:documentation>MODE elements of an TRANSPORT ORGANISATION.</xsd:documentation> | ||
</xsd:annotation> | ||
<xsd:sequence> | ||
<xsd:element name="PrimaryMode" type="AllModesEnumeration" minOccurs="0"> | ||
<xsd:element name="PrimaryMode" type="AllModesOfTransportEnumeration" minOccurs="0"> | ||
<xsd:annotation> | ||
<xsd:documentation>Primary transport MODE of TRANSPORT ORGANISATION</xsd:documentation> | ||
<xsd:documentation>Primary TRANSPORT MODE of TRANSPORT ORGANISATION</xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:element> | ||
<xsd:group ref="AllSubmodeChoiceGroup" minOccurs="0"/> | ||
|
@@ -731,7 +731,7 @@ Rail transport, Roads and Road transport | |
<xsd:documentation>Elements for an TRANSPORT ADMINISTRATIVE ZONE.</xsd:documentation> | ||
</xsd:annotation> | ||
<xsd:sequence> | ||
<xsd:element name="VehicleModes" type="AllModesListOfEnumerations" default="all" minOccurs="0"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks like having been the wrong before. |
||
<xsd:element name="VehicleModes" type="AllVehicleModesOfTransportListOfEnumerations" default="all" minOccurs="0"> | ||
<xsd:annotation> | ||
<xsd:documentation>TRANSPORT MODEs for which this zone applies. Default is all.</xsd:documentation> | ||
</xsd:annotation> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,9 +114,9 @@ Rail transport, Roads and Road transport | |
<xsd:documentation>Elements for a TICKETING EQUIPMENT.</xsd:documentation> | ||
</xsd:annotation> | ||
<xsd:sequence> | ||
<xsd:element name="VehicleModes" type="AllModesListOfEnumerations" minOccurs="0"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks like having been the wrong before. |
||
<xsd:element name="VehicleModes" type="AllVehicleModesOfTransportListOfEnumerations" minOccurs="0"> | ||
<xsd:annotation> | ||
<xsd:documentation>Modes for which ticketing services apply.</xsd:documentation> | ||
<xsd:documentation>MODES of TRANSPORT for which ticketing services apply.</xsd:documentation> | ||
</xsd:annotation> | ||
</xsd:element> | ||
<xsd:group ref="TicketingEquipmentPropertiesGroup"/> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are to make any changes we should try to align the suggested type-names and annotation as far as possible with what Transmodel 6.2 states to not further add to the confusion. I am not sure that the suggested changes do align with Transmodel 6.2. We need to basically separate between the combination of conventional modes of operation with alternative modes of operation on one side i. e. "advertised transport" and personal modes of operation e.g. with your own bike or your own car (when you are not car-sharing) on the other side. This is represented in Transmodel as either PUBLIC TRANSPORT MODE or PERSONAL MODE.
If you wish to generalise PUBLIC TRANSPORT MODE and PERSONAL MODE you use the term MODE.
These three terms are defined in Transmodel as:
MODE :
A broad characterisation of the means of movement and / or operational aspect in consideration (e.g., by bus, by train, by metro, by ferry, by foot, by private car, etc.).
PUBLIC TRANSPORT MODE:
A MODE used for public transport services (e.g., by bus, by tram, by metro, by train, by ferry, by ship, by shared taxi car, by shared car) under either a CONVENTIONAL MODE OF OPERATION or an ALTERNATIVE MODE OF OPERATION (i.e., excluding a PERSONAL MODE OF OPERATION).
Note: Prior to TM 6.2 this was named VEHICLE MODE
PERSONAL MODE :
A MODE used outside of public transport services (e.g., by private car, by private cycle, by private scooter, by private boat) under a PERSONAL MODE OF OPERATION.
Thus, please change the terminology of type-names and annotation accordingly and use capital letters only in accordance with Transmodel.