Service Frame
In this chapter:
- ServiceFrame
- Line
- GroupOfLines
- DestinationDisplay
- ScheduledStopPoint
- PassengerStopAssignment
- DefaultConnection
- SiteConnection
- TimingLink
- ServiceJourneyPattern
- TimeDemandType
- Notice
- NoticeAssignment
ServiceFrame
Purpose
Contains the network and line definitions - Lines, ScheduledStopPoints, DestinationDisplays, and PassengerStopAssignments.
See the following class diagram for the most important objects of the ServiceFrame and their relationships to the other frames.
classDiagram
%% Styles
classDef frame fill:#FFF8E1,stroke:#FFB300;
classDef contained fill:#E8F4FF,stroke:#1E90FF;
classDef external fill:#F6F6F6,stroke:#AAAAAA;
%% Frame
class ServiceFrame {
}
%% Contained elements
class Line {
}
class DestinationDisplay {
}
class ScheduledStopPoint {
}
class PassengerStopAssignment {
}
class PassengerBoardingPositionAssignment {
}
class DefaultConnection {
}
class SiteConnection {
}
class Notice {
}
class ServiceJourney {
}
class NoticeAssignment {
}
%% Containment relations (only contained elements)
ServiceFrame "1" o-- "0..*" Line : contains
ServiceFrame "1" o-- "0..*" DestinationDisplay : contains
ServiceFrame "1" o-- "0..*" ScheduledStopPoint : contains
ServiceFrame "1" o-- "0..*" PassengerStopAssignment : contains
ServiceFrame "1" o-- "0..*" PassengerBoardingPositionAssignment : contains
ServiceFrame "1" o-- "0..*" DefaultConnection : contains
ServiceFrame "1" o-- "0..*" SiteConnection : contains
ServiceFrame "1" o-- "0..*" Notice : contains
ServiceFrame "1" o-- "0..*" NoticeAssignment : contains
%% external references
ServiceJourney "1" -- "1" Line : references
ServiceJourney "1" -- "0..1" DestinationDisplay : references
ServiceJourney "1" -- "0..*" NoticeAssignment : contains
PassengerStopAssignment "1" -- "1" StopPlace : references
PassengerStopAssignment "1" -- "0..1" Quay : references
PassengerStopAssignment "1" -- "1" ScheduledStopPoint : references
Figure: Elements in ServiceFrame
Contained Elements
The ServiceFrame model comprises among others:
- Line network model: overall topology of the
Lineand line sections that make up a transport network. - Service pattern model:
ScheduledStopPoints,ServiceLink, i.e., points and links referenced by schedules.
Other important classes of the ServiceFrame include:
PassengerStopAssignments andPassengerBoardingPositionAssignmentwhich model the relationship between stops in the timetable and the physical platforms of an actual station or other stop.- Connections (
DefaultConnection,SiteConnection,TimingLink) as the topological model of interchanges. They model the possibility of a transfer between twoScheduledStopPoints. Notices which are then assigned toServiceJourney(in theTimetableFrame) andStopPointInJourneyPattern(in theServiceFrame) throughNoticeAssignments. They model the association of footnotes and passenger information content such as stop announcements and the network.
Table
A minimal ServiceFrame must be present in all timetable files.
Table: ServiceFrame
| Sub | Element | Usage | Card | Type | Description | Note |
|---|---|---|---|---|---|---|
| @id | mandatory | 1..1 | xsd:string | Attribute id | ||
| @version | mandatory | 1..1 | xsd:string | Attribute version | ||
| lines | mandatory | 0..1 | linesInFrame_RelStructure | LINEs in frame. | Only Line is used and not FlexibleLine | |
| + | Line | mandatory | 0..* | Line_VersionStructure | A group of ROUTEs which is generally known to the public by a similar name or number. | |
| groupsOfLines | expected | 0..1 | groupsOfLinesInFrame_RelStructure | GROUPs of LINEs in frame. | ||
| + | GroupOfLines | expected | 1..* | GroupOfLines_VersionStructure | A grouping of LINEs which will be commonly referenced for a specific purpose. | We use GroupOfLine for the modeling of mixed lines |
| destinationDisplays | expected | 0..1 | destinationDisplaysInFrame_RelStructure | DESTINATION DISPLAYs in frame. | ||
| + | DestinationDisplay | expected | 1..* | DestinationDisplay_VersionStructure | An advertised destination of a specific JOURNEY PATTERN, usually displayed on a head sign or at other on-board locations. | We only allow DestinationDisplay based on Name and not on reference to a ScheduledStopPoint |
| scheduledStopPoints | expected | 0..1 | scheduledStopPointsInFrame_RelStructure | SCHEDULED STOP POINTs in frame. | Swiss ScheduledStopPoint are using the SLOID in the id, when possible. | |
| + | ScheduledStopPoint | mandatory | 1..* | ScheduledStopPoint_VersionStructure | A POINT where passengers can board or alight from vehicles. It is open, which hierarchical level such a point has. It can represent a single door (BoardingPosition) or a whole ZONE. The association to the physical model is done with STOP ASSIGNMENTs. | The id of the ScheduledStopPoint is a SLOID if one exists. Otherwisse it contains a gen part. |
| connections | expected | 0..1 | transfersInFrame_RelStructure | CONNECTIONs in frame. | connections is used in SITE_OFFER, but not in NETWORK_OFER | |
| + | SiteConnection | expected | 0..* | SiteConnection_VersionStructure | The physical (spatial) possibility to connect from one point to another in a SITE. | SiteConnection are used only in the SITE_OFFER file and not in NETWORK_OFFER files. |
| + | DefaultConnection | expected | 0..* | DefaultConnection_VersionStructure | Specifies the default transfer times to transfer between MODEs and / or OPERATORs within a region. | DefaultConnection is only used in the SITE_OFFER file |
| stopAssignments | expected | 0..1 | stopAssignmentsInFrame_RelStructure | STOP ASSIGNMENTs in frame. | ||
| + | PassengerStopAssignment | expected | 0..* | unknown | Make the link between timetables and site model. | |
| + | FlexibleStopAssignment | optional | 0..* | FlexibleStopAssignment_VersionStructure | Assignment of a SCHEDULED STOP POINT to a FLEXIBLE STOP PLACE and quay. etc. | For service areas (Bediengebiete) of demand responsive services. |
| timingLinks | expected | 0..1 | timingLinksInFrame_RelStructure | TIMING LINKs in frame. | We use TimingLink as the time behaviour between two ScheduledStopPoints | |
| + | TimingLink | expected | 1..* | TimingLink_VersionStructure | An ordered pair of TIMING POINTs for which run times may be recorded. Timing links are directional - there will be separate links for each direction of a route. | every different handling of the link needs a different timing link e.g. bus vs tram |
| journeyPatterns | mandatory | 0..1 | journeyPatternsInFrame_RelStructure | JOURNEY PATTERNs in frame. | ||
| + | ServiceJourneyPattern | mandatory | 0..* | ServiceJourneyPattern_VersionStructure | The JOURNEY PATTERN for a (passenger carrying) SERVICE JOURNEY. | |
| timeDemandTypes | expected | 0..1 | timeDemandTypesInFrame_RelStructure | TIME DEMAND TYPEs in frame. | ||
| + | TimeDemandType | expected | 1..* | TimeDemandType_VersionStructure | An indicator of traffic conditions or other factors which may affect vehicle run or wait times. It may be entered directly by the scheduler or defined by the use of TIME BANDs. | TimeDemandType is now the core concept to use for the timing behaviour of ServiceJourney. |
| notices | expected | 0..1 | noticesInFrame_RelStructure | NOTICEs in frame. | notices may be present or not | |
| + | Notice | expected | 1..* | Notice_VersionStructure | A note or footnote about any aspect of a service, e.g. an announcement, notice, etc. May have different DELIVERY VARIANTs for different media. | if notices are present, one Notice must be. |
Example
<?xml version="1.0" encoding="UTF-8"?>
<ServiceFrame id="ch:1:ServiceFrame" version="1">
<!-- A minimal ServiceFrame must be present in all timetable files. -->
<directions>
<!-- We don't use directions, but only direction type -->
</directions>
<lines>
<!-- Only Line is used and not FlexibleLine -->
<Line id="use swiss line id where possible" version="1" responsibilitySetRef="dsa">
<Name>Name is needed</Name>
</Line>
<FlexibleLine id="notUsed" version="none">
<!-- We work with Line only. -->
</FlexibleLine>
</lines>
<groupsOfLines>
<GroupOfLines id="generated" version="1">
<!-- We use GroupOfLine for the modeling of mixed lines -->
<Name>Group_name</Name>
</GroupOfLines>
</groupsOfLines>
<destinationDisplays>
<DestinationDisplay id="generated-id" version="1">
<!-- We only allow DestinationDisplay based on Name and not on reference to a ScheduledStopPoint -->
</DestinationDisplay>
</destinationDisplays>
<scheduledStopPoints>
<!-- Swiss ScheduledStopPoint are using the SLOID in the id, when possible. -->
<ScheduledStopPoint id="sloid_where_possible" version="1">
<!-- The id of the ScheduledStopPoint is a SLOID if one exists. Otherwisse it contains a gen part. -->
</ScheduledStopPoint>
</scheduledStopPoints>
<connections>
<!-- connections is used in SITE_OFFER, but not in NETWORK_OFER -->
<SiteConnection id="generated" version="1">
<!-- SiteConnection are used only in the SITE_OFFER file and not in NETWORK_OFFER files. -->
</SiteConnection>
<DefaultConnection id="generated" version="1">
<!-- DefaultConnection is only used in the SITE_OFFER file -->
</DefaultConnection>
</connections>
<stopAssignments>
<PassengerStopAssignment id="generated" version="1">
<!-- Make the link between timetables and site model. -->
</PassengerStopAssignment>
<FlexibleStopAssignment id="generated" version="1">
<!-- For service areas (Bediengebiete) of demand responsive services. -->
<ScheduledStopPointRef ref="generated" version="1"/>
<FlexibleStopPlaceRef ref="generated" version="1"/>
</FlexibleStopAssignment>
</stopAssignments>
<timingLinks>
<!-- We use TimingLink as the time behaviour between two ScheduledStopPoints -->
<TimingLink id="generated" version="1">
<!-- every different handling of the link needs a different timing link e.g. bus vs tram -->
<FromPointRef ref="sloid1" version="1"/>
<ToPointRef ref="sloid 2" version="1"/>
</TimingLink>
</timingLinks>
<journeyPatterns>
<ServiceJourneyPattern id="generated" version="1"/>
</journeyPatterns>
<timeDemandTypes>
<TimeDemandType id="generated" version="1">
<!-- TimeDemandType is now the core concept to use for the timing behaviour of ServiceJourney. -->
</TimeDemandType>
</timeDemandTypes>
<timeDemandTypeAssignments>
<TimeDemandTypeAssignment id="generated" version="1"/>
</timeDemandTypeAssignments>
<notices>
<!-- notices may be present or not -->
<Notice id="generated" version="1">
<!-- if notices are present, one Notice must be. -->
</Notice>
</notices>
</ServiceFrame>
→ Template
Frame Relationships
ServiceFrame depends on ResourceFrame for Operator definitions. PassengerStopAssignments build the connection between ScheduledStopPoints and the physical model in SiteFrame. ServiceFrame is typically wrapped in a CompositeFrame within a PublicationDelivery.
Direction
We don’t use Direction but only DirectionType. For this we need NeTEx 2.1.
This means that the old two defined dirctions ch:1:Direction:H and ch:1:Direction:R will no longer be supported.
Line
Purpose
A public transport service line with a Name, TransportMode, and Operator. Be aware that the handling of legal owner (“Konzessionär”) and operator (“Betreiber”) is a bit complex and is discussed here and here.
Table
For referencing the Operators we redundantly use ResponsibilitySet and OperatorRef. This is to maintain compatibility with different data consumers. See chapter on ResourceFrame and Use Case 17.
Table: Line
| Sub | Element | Usage | Card | Type | Description | Note |
|---|---|---|---|---|---|---|
| @id | mandatory | 1..1 | xsd:string | Attribute id | ||
| @version | mandatory | 1..1 | xsd:string | Attribute version | ||
| @responsibilitySetRef | mandatory | 1..1 | xsd:string | Attribute responsibilitySetRef | ||
| ValidBetween | expected | 1..1 | unknown | Usually set to the whole timetable year | ||
| + | FromDate | expected | 0..1 | dateTime | Start date of AVAILABILITY CONDITION. | |
| + | ToDate | expected | 0..1 | dateTime | End of AVAILABILITY CONDITION. Date is INCLUSIVE. | |
| keyList | optional | 1..1 | KeyListStructure | |||
| + | KeyValue | optional | 1..* | KeyValueStructure | Key value pair for Entity. | We might use KeyValue for some additional information |
| ++ | Key | optional | 1..1 | normalizedString | Identifier of value e.g. System. | |
| ++ | Value | optional | 0..1 | normalizedString | Value for alternative key. | |
| privateCodes | mandatory | 1..1 | PrivateCodesStructure | The SLNID is mandatory if it exists | ||
| + | PrivateCode | expected | 0..* | PrivateCodeStructure | The SLNID is mandatory if it exists | |
| ++ | @type | mandatory | 1..1 | xsd:string | Attribute type | |
| Name | mandatory | 0..1 | MultilingualString | Name of LINE SHAPE. | contains attribute D T from HRDF. Is not translated on purpose. | |
| ShortName | expected | 0..1 | MultilingualString | Short name of LINE. | contains the LinieKurzName (attribut N T in HRDF) | |
| TransportMode | mandatory | 0..1 | AllPublicTransportModesEnumeration | Primary PUBLIC TRANSPORT MODE of NETWORK. | ||
| TransportSubmode | optional | 0..1 | TransportSubmodeStructure | the mapping excel describe how to use the TransportSubmode | ||
| + | RailSubmode | optional | 1..1 | RailSubmodeEnumeration | TPEG pti02 Rail submodes loc13. See also See ERA B.4.7009 - Name: Item description code. | Here an example for rail. Be aware that other XXXSubmode are used for other mode. |
| PublicCode | mandatory | 0..1 | PublicCodeStructure | Public identifier of a LINe. | Contains LinieLangName (attribute LT from HRDF) | |
| OperatorRef | expected | 0..1 | OperatorRefStructure | An OPERATOR should be set, even when the same as the AUTHORITY. In some cases OPERATOR or AUTHORITY are managed through a ResponsibilitySet. However, for compatibility OperatorRef and AuthorityRef still should be filled in. +v2.0 | The operator is the transport organisation that really “owns” the line. Additional operators can be added in additionalOperators. The actual operating organisation can be set in the ServiceJourney. Is redundant to the responsibilitySetRef on purpose. | |
| additionalOperators | optional | 0..1 | transportOrganisationRefs_RelStructure | Additional OPERATORs for LINE. | Used for other operating companies. Is redundant to the responsibilitySetRef on purpose. this is especially important, when a co-ownership of the Line was defined. | |
| + | OperatorRef | optional | 0..* | OperatorRefStructure | ||
| LineType | expected | 0..1 | LineTypeEnumeration | Classification of LINE, including flexible options. +v2.0. | Will be used especially, when not “fixed”. Details in mapping excel. | |
| TypeOfProductCategoryRef | mandatory | 0..1 | TypeOfProductCategoryRefStructure | Always aligned with BS KI oev-info.ch | ||
| bookingArrangements | optional | 0..1 | bookingArrangements_RelStructure | Set of possible Booking Arrangements for this LINE. +v2.0 | Booking conditions of a demand responsive (DRT) line. Valid for the whole Line; a lower level (FlexibleServiceProperties, StopPointInJourneyPattern) supersedes it. See uc16_drt. | |
| + | BookingArrangement | optional | 0..* | BookingArrangement_VersionStructure | Details of the booking arrangements for a given LINE, STOP, SERVICE etc. | Referenced from ServiceJourney/FlexibleServiceProperties and StopPointInJourneyPattern with BookingArrangementRef. |
| ++ | @id | mandatory | 1..1 | xsd:string | Attribute id | |
| ++ | @version | mandatory | 1..1 | xsd:string | Attribute version | |
| ++ | BookingMethods | optional | 0..1 | BookingMethodListOfEnumerations | Allowed Ways of Making a BOOKING. | |
| ++ | BookWhen | optional | 0..1 | PurchaseWhenEnumeration | When Booking can be made. +V1.1 | |
| ++ | BookingNote | optional | 0..1 | MultilingualString | Note about booking the FLEXIBLE LINE. |
Example
<?xml version="1.0" encoding="UTF-8"?>
<Line id="use swiss line id where possible" version="1" responsibilitySetRef="dsa">
<!-- For referencing the `Operator`s we redundantly use `ResponsibilitySet` and `OperatorRef`. This is to maintain compatibility with different data consumers. See chapter on ResourceFrame and Use Case 17. -->
<ValidBetween>
<!-- Usually set to the whole timetable year -->
<FromDate>2022-12-11T00:00:00</FromDate>
<ToDate>2023-12-09T23:59:59</ToDate>
</ValidBetween>
<keyList>
<KeyValue>
<!-- We might use KeyValue for some additional information -->
<Key>OurKey</Key>
<Value>123123</Value>
</KeyValue>
</keyList>
<privateCodes>
<!-- The SLNID is mandatory if it exists -->
<PrivateCode type="slnid">ch:1:slnid:102846
<!-- The SLNID is mandatory if it exists -->
</PrivateCode>
</privateCodes>
<Name>3
<!-- contains attribute D T from HRDF. Is not translated on purpose. -->
</Name>
<ShortName>3
<!-- contains the LinieKurzName (attribut N T in HRDF) -->
</ShortName>
<TransportMode>rail</TransportMode>
<TransportSubmode>
<!-- the mapping excel describe how to use the TransportSubmode -->
<RailSubmode>suburbanRailway
<!-- Here an example for rail. Be aware that other XXXSubmode are used for other mode. -->
</RailSubmode>
</TransportSubmode>
<PublicCode>3
<!-- Contains LinieLangName (attribute LT from HRDF) -->
</PublicCode>
<OperatorRef ref="ch:1:sboid:100011" version="1">
<!-- The operator is the transport organisation that really "owns" the line. Additional operators can be added in additionalOperators. The actual operating organisation can be set in the ServiceJourney. Is redundant to the responsibilitySetRef on purpose. -->
</OperatorRef>
<additionalOperators>
<!-- Used for other operating companies. Is redundant to the responsibilitySetRef on purpose. this is especially important, when a co-ownership of the Line was defined. -->
<OperatorRef ref="ch:1:sboid:100033" version="1"/>
</additionalOperators>
<LineType>fixed
<!-- Will be used especially, when not "fixed". Details in mapping excel. -->
</LineType>
<TypeOfProductCategoryRef ref="ch:1:TypeOfProductCategory:TER" version="1">
<!-- Always aligned with BS KI oev-info.ch -->
</TypeOfProductCategoryRef>
<bookingArrangements>
<!-- Booking conditions of a demand responsive (DRT) line. Valid for the whole Line; a lower level (FlexibleServiceProperties, StopPointInJourneyPattern) supersedes it. See uc16_drt. -->
<BookingArrangement id="generated" version="1">
<!-- Referenced from ServiceJourney/FlexibleServiceProperties and StopPointInJourneyPattern with BookingArrangementRef. -->
<BookingMethods>mobileApp</BookingMethods>
<BookWhen>advanceOnly</BookWhen>
<BookingNote>Einstieg nur auf Voranmeldung mind. 30 Min. vor der Fahrt.</BookingNote>
</BookingArrangement>
</bookingArrangements>
</Line>
→ Template
Usage Notes
- slnid will be integrated wherever possible. We currently think that - where it exists - it has the necessary properties to be used in the
@idof the element. - For foreign lines an
@dmight need to be generated. - We store the slnid whenever possible in
@id,privateCodes/PrivateCodeandKeyList. - Information about the Swiss line id (slnid) can be found here.
- Handling of mixed lines is defined in its own use case (uc017). The relevant factors are described in the Line element as well. We have a full example on it. - Be aware that for mixed lines there might be multiple
Lines in NeTEx. Otherwise, the relevantOperatormust be set on theServiceJourney. - Note that there exist journeys in Switzerland and neighboring countries that may not be officially associated with a published
Line. In NeTEx, however, theServiceJourneys corresponding to such journeys must still reference something inLineRef. - For more information about SwissLineID: see here.
- We have in the slnid concept also “Dispositionslinie” and “Temporäre Linie”. Those are modeled as regular
Line. “Betriebliche Linie” is not used and modeled in NeTEx. If at some point we need to know this type. We will model it as a Key/Value pair. - If there are partial lines, there is also a main line. The patterns and journeys are always attached to the partial lines.
@idneeds to be kept stable between exports. Forslnidthis is a given. For international ones artifical id might occur. Keeping them stable allows a referencing and partial update by the data consumers. This is important if the data consumer mixes the NeTEx import with other sources.
GroupOfLines
Purpose
A GroupOfLines is used to model mixed lines. For details see uc17.
Table
We use GroupOfLine for the modeling of mixed lines. Only mixed lines have a GroupOfLines.
Table: GroupOfLines
| Sub | Element | Usage | Card | Type | Description | Note |
|---|---|---|---|---|---|---|
| members | mandatory | 0..1 | lineRefs_RelStructure | LINEs in GROUP OF LINEs. | ||
| + | LineRef | mandatory | 1..* | LineRefStructure | Reference to a LINE. | one must be the main line. If a Line is not defined in the file, then it will have versionRef instead of version. |
| MainLineRef | mandatory | 0..1 | LineRefStructure | Primary LINE in GROUP OF LINEs, if relevant. | The main line must exist. It hasn’t any ServiceJourneyPattern or ServiceJourneys. Those are all on the partial lines. | |
| GroupOfLinesType | mandatory | 0..1 | GroupOfLinesTypeEnumeration | Classification of GROUP OF LINES. +v1.1 |
Example
<?xml version="1.0" encoding="UTF-8"?>
<GroupOfLines id="ch:1:GroupOfLines:1027553" version="1">
<!-- We use GroupOfLine for the modeling of mixed lines. Only mixed lines have a GroupOfLines. -->
<members>
<LineRef ref="ch:1:slnid:1027553" version="1">
<!-- one must be the main line. If a Line is not defined in the file, then it will have versionRef instead of version. -->
</LineRef>
<LineRef ref="ch:1:slnid:1027553:3" version="1"/>
<LineRef ref="ch:1:slnid:1027553:4" version="1"/>
</members>
<MainLineRef ref="ch:1:slnid:1027553" version="1">
<!-- The main line must exist. It hasn't any ServiceJourneyPattern or ServiceJourneys. Those are all on the partial lines. -->
</MainLineRef>
<GroupOfLinesType>administrative</GroupOfLinesType>
</GroupOfLines>
→ Template
Usage Notes
- Only mixed lines have a
GroupOfLines. - All
ServiceJourneyPatternandServiceJourneyare assigned to the partial lines. - In very rare cases the main line has two legal owners. We discuss the modeling in uc17.
GroupOfLinesTypeis restricted in the usage we have. We currently allow onlyadministrative. Meaning that all intgration is always along the hierarchy between owners and operators.- The
@idshould be the number of the main line.
DestinationDisplay
Purpose
Showing the destination of a ServiceJourney. The text shown on the front or side of a public transport vehicle to indicate its destination, including via-points and variant labels.
DestinationDisplay is a standalone, reusable object — defined once in the ServiceFrame and referenced from wherever the destination text is needed. This is preferred over an inline Destination/Name on ServiceJourney, for several reasons:
- An inline
NameonDestinationduplicates the display text (once inName, once in the referencedDestinationDisplay) and can become inconsistent between the two. DestinationDisplayis reusable across arbitrarily many journeys, instead of repeating the text per journey.- Only
DestinationDisplayoffers the complete set of display attributes:FrontText,SideText,ShortName,vias, and language variants —Destinationonly knows a singleName. DestinationDisplaycan additionally be set directly onStopPointInJourneyPattern, allowing the displayed destination to change at individual stops (e.g. for through-services / Durchbindung). This is not possible withDestinationat the journey level.
Table
We only allow fully formed content of destinationDisplays
Table: DestinationDisplay
| Sub | Element | Usage | Card | Type | Description | Note |
|---|---|---|---|---|---|---|
| @id | mandatory | 1..1 | xsd:string | Attribute id | ||
| @version | mandatory | 1..1 | xsd:string | Attribute version | ||
| Name | mandatory | 0..1 | MultilingualString | Name of destination on DESTINATION DISPLAY. | Is always language neutral. The data is taken from the Destination or from the reference in *R (HRDF). If DURCHBI is used then the destination display shows the final destination. | |
| + | @lang | mandatory | 1..1 | xsd:string | Attribute lang | |
| DriverDisplayText | optional | 0..1 | MultilingualString | Text to show to Driver or Staff for the DESTINATION DISPLAY. | Text to display to DRIVER. |
Example
<?xml version="1.0" encoding="UTF-8"?>
<DestinationDisplay id="generated-id" version="1">
<!-- We only allow fully formed content of destinationDisplays -->
<Name lang="de">Porrentruy
<!-- Is always language neutral. The data is taken from the Destination or from the reference in *R (HRDF). If DURCHBI is used then the destination display shows the final destination. -->
</Name>
<DriverDisplayText>Porrentruy
<!-- Text to display to DRIVER. -->
</DriverDisplayText>
<Presentation/>
</DestinationDisplay>
→ Template
Usage Notes
- In HRDF sometimes the destination is not set (
*R). This results in NeTEX in a calculated destination definition. - The
DestinationDisplayis set on theServiceJourneyviaDestination/DestinationDisplayRef. If it changes during the run, it needs to be changed on the relevantStopPointInJourneyPatternviaDestinationDisplayRef. If it changes there, the new destination applies from that point onward — in our output, we fill all remainingPointsInJourneyPatternwith the relevant change. Destinationmust not carry a redundant inlineNamealongsideDestinationDisplayRef— the display text lives exclusively in the referencedDestinationDisplayobject, to avoid inconsistency between the two sources. OnlyScheduledStopPointRefandDestinationDisplayRefshould be set onDestination.- See also the use case on changes in destination
@idneeds to be kept stable between exports.
ScheduledStopPoint
Purpose
A logical point used in the timetable to indicate a stop of a service where passengers can board or alight. A ScheduledStopPoint is linked to a physical Quay or StopPlace via a PassengerStopAssignment.
A ScheduledStopPoint can represent two types of stop points:
- In most cases, the
ScheduledStopPointis the station named in the timetable, especially as some organisations don’t have a full physical model of their StopPlaces. - In some cases, the
ScheduledStopPointmay be mapped to theQuay. The more detailed mapping is also done with thePassengerStopAssignment.
Table
Swiss ScheduledStopPoint are using the sloid in the id if possible. We keep the ScheduledStopPoint very minimalistic. The information is stored in the SiteFrame.
Table: ScheduledStopPoint
| Sub | Element | Usage | Card | Type | Description | Note |
|---|---|---|---|---|---|---|
| @id | mandatory | 1..1 | xsd:string | Attribute id | ||
| @version | mandatory | 1..1 | xsd:string | Attribute version | ||
| privateCodes | expected | 1..1 | PrivateCodesStructure | |||
| + | PrivateCode | expected | 0..* | PrivateCodeStructure | SLOID mandatory if it exists. | |
| Name | optional | 0..1 | MultilingualString | Name of POINT. | The names are the same in all languages. Can be omitted as this is taken from the StopPlace/Quay. | |
| + | @lang | mandatory | 1..1 | xsd:string | Attribute lang | |
| PublicCode | optional | 0..1 | PublicCodeStructure | A PUBLIC code that uniquely identifies the STOP POINT. | For Quay contains the plattform number/letter. |
Example
<?xml version="1.0" encoding="UTF-8"?>
<ScheduledStopPoint id="ch:1:sloid:4128:1:1" version="1">
<!-- Swiss ScheduledStopPoint are using the sloid in the id if possible. We keep the ScheduledStopPoint very minimalistic. The information is stored in the SiteFrame. -->
<privateCodes>
<PrivateCode type="sloid">ch:1:sloid:4128:1:1
<!-- SLOID mandatory if it exists. -->
</PrivateCode>
</privateCodes>
<Name lang="de">Murten/Morat
<!-- The names are the same in all languages. Can be omitted as this is taken from the StopPlace/Quay. -->
</Name>
<PublicCode>1
<!-- For Quay contains the plattform number/letter. -->
</PublicCode>
</ScheduledStopPoint>
→ Template
Usage Notes
- We don’t keep much information in
ScheduledStopPoints. They are assigned byPassengerStopAssignnments to the site part (StopPlace,Quay). ScheduledStopPoints that are used inTimingLinksandServiceJourneyPatterns` should be on the quay level.- We use the sloid as
@idforScheduledStopPoints whener they exist.@idneeds to be kept stable between exports. TimingLinks useScheduledStopPoints as well. This means that the timing between two logical stops is the important measure.
PassengerStopAssignment
Purpose
PassengerStopAssignments bring the Site model and the Service model in alignment. We have two general cases:
- A
ScheduledStopPointin aServiceJourneyPatternis linked to aStopPlacefor arrival and departure. - A
ScheduledStopPointin aServiceJourneyPatternis linked to aQuayfor arrival and departure. In that case, bothQuayandStopPlacehave to be referenced. - The assigning of
TrainComponents to sectors is done also withPassengerStopAssignment.
Table
Table: PassengerStopAssignment
| Sub | Element | Usage | Card | Type | Description | Note |
|---|---|---|---|---|---|---|
| @id | mandatory | 1..1 | xsd:string | Attribute id | ||
| @version | mandatory | 1..1 | xsd:string | Attribute version | ||
| ScheduledStopPointRef | expected | 0..1 | ScheduledStopPointRefStructure | Be aware that a ScheduledStopPointRef is only not present, when we are doing passengerBoardingPositionAssignments |
||
| StopPlaceRef | mandatory | 0..1 | StopPlaceRefStructure | |||
| QuayRef | expected | 0..1 | QuayRefStructure | QUAY to which SCHEDULED STOP POINT is to be assigned. | Not having the track may be problematic, but it can happen sometimes for stops abroad. However, the goal is to always have a QuyRef. | |
| passengerBoardingPositionAssignments | optional | 0..* | passengerBoardingPositionAssignments_RelStructure | Train stop assignments elements to use for which SCHEDULED STOP POINT is to be assigned. +v2.0 | Relevant for formations assigned to positions at quays. | |
| + | PassengerBoardingPositionAssignment | optional | 1..1 | PassengerBoardingPositionAssignment_VersionStructure | The default allocation of a SCHEDULED STOP POINT to a specific STOP PLACE, and also possibly a QUAY and BOARDING POSITION. NB Rebmed from TRAIN STOP ASSIGNMENT in v2. | |
| ++ | Description | optional | 0..1 | MultilingualString | ||
| ++ | ScheduledStopPointRef | mandatory | 0..1 | ScheduledStopPointRefStructure | References the ScheduledStopPoint of the platform (Gleis). No ScheduledStopPoints are created for sectors; the sector is given by the QuayRef of the PassengerStopAssignment. | |
| ++ | TrainComponentRef | expected | 0..1 | TrainComponentRefStructure | Map to the relevant TrainComponent |
Example
<?xml version="1.0" encoding="UTF-8"?>
<PassengerStopAssignment id="generated-85003000-12" version="1">
<ScheduledStopPointRef ref="ch:1:sloid:3000:503:12" version="1">
<!-- Be aware that a ScheduledStopPointRef is only not present, when we are doing `passengerBoardingPositionAssignments` -->
</ScheduledStopPointRef>
<StopPlaceRef ref="ch:1:sloid:3000" version="1"/>
<QuayRef ref="ch:1:sloid:3000:503:12" version="1">
<!-- Not having the track may be problematic, but it can happen sometimes for stops abroad. However, the goal is to always have a QuyRef. -->
</QuayRef>
<passengerBoardingPositionAssignments>
<!-- Relevant for formations assigned to positions at quays. -->
<PassengerBoardingPositionAssignment id="pbpa20" version="1">
<Description>Assign coach 5 to sector B</Description>
<ScheduledStopPointRef ref="ch:1:sloid:7492:0:460848" version="1">
<!-- References the ScheduledStopPoint of the platform (Gleis). No ScheduledStopPoints are created for sectors; the sector is given by the QuayRef of the PassengerStopAssignment. -->
</ScheduledStopPointRef>
<TrainComponentRef ref="bbd:trncmp_448_01" version="1">
<!-- Map to the relevant TrainComponent -->
</TrainComponentRef>
</PassengerBoardingPositionAssignment>
</passengerBoardingPositionAssignments>
</PassengerStopAssignment>
→ Template
Usage Notes
- We don’t use
BoardingPosition. - In Switzerland the goal is to always have a
QuayRef. Having to map only to theStopPlaceis to be avoided. If there is data from abroad, it might be that we don’t have the quays yet. - If a router has a detailed model with
Quayand we have onlyStopPlace, then it probably is best to generate an artificial quay and then do the transfers correctly. @ids don’t need to be stable.- When
passengerBoardingPositionAssignmentsis used form formations, thenScheduledStopPointis not set, but it is set in the individualPassengerBoardingPositionAssignment. PassengerBoardingPositionAssignmentis an unfortunate name for the mapping ofQuay(sectors) toTrainComponent, but that’s what the standardsiation organisation decided.
DefaultConnection
Purpose
DefaultConnections are used to transmit the connection times for the following constellations:
- between 2
ProductCategorys - between 2
Operators - In a defined
StopPlace - In a defined
StopPlaceand 2Operators - in a defined
StopPlace, 2Operators and 2ProductCategorys
Table
Be aware only some combinations are allowed: from mode A to mode B without operators taken into account; from operator A and product category A to operator B and product category B.
Table: DefaultConnection
| Sub | Element | Usage | Card | Type | Description | Note |
|---|---|---|---|---|---|---|
| @id | mandatory | 1..1 | xsd:string | Attribute id | ||
| @version | mandatory | 1..1 | xsd:string | Attribute version | ||
| Extensions | optional | 1..1 | ExtensionsStructure | When also ProductCategory is relevant, then this extension must be used | ||
| + | FromProductCategoryRef | mandatory | 1..1 | unknown | Extension needed to map “Verkehrsmittel-Gattung”, which is similar to but more detailed than Trans-portSubmode, for transfer times of interchanges. | |
| + | ToProductCategoryRef | mandatory | 1..1 | unknown | Extension needed to map “Verkehrsmittel-Gattung”, which is similar to but more detailed than Trans-portSubmode, for transfer times of interchanges. | |
| WalkTransferDuration | mandatory | 0..1 | TransferDurationStructure | We use WalkTransferDuration. At some point we need a solution for bicyle duration too (TSI telemetics) | ||
| + | MobilityRestrictedTravellerDuration | expected | 0..1 | duration | Time for a Mobility Restricted traveller to make a TRANSFER. | |
| BothWays | optional | 0..1 | xsd:boolean | Should be false - we always intend to use only one way because the behaviour may not be the same. | ||
| TransferMode | optional | 0..1 | AccessModeEnumeration | Is foot. Others might become possible in future | ||
| From | mandatory | 0..1 | DefaultConnectionEndStructure | Origin end of DEFAULT TRANSFER. | ||
| + | TransportMode | optional | 0..1 | AllModesEnumeration | All codes are shown in mapping excel. Use with care. | |
| + | OperatorView | optional | 1..1 | unknown | ||
| ++ | OperatorRef | mandatory | 0..1 | OperatorRefStructure | Should be a SBOID whenever possible. | |
| To | mandatory | 0..1 | DefaultConnectionEndStructure | Destination end of DEFAULT TRANSFER. | ||
| StopPlaceRef | optional | 0..1 | StopPlaceRefStructure | Usually a SLOID. Not set means whole network. |
Example
<?xml version="1.0" encoding="UTF-8"?>
<DefaultConnection id="11-11" version="1">
<!-- Be aware only some combinations are allowed: from mode A to mode B without operators taken into account; from operator A and product category A to operator B and product category B. -->
<Extensions>
<!-- When also ProductCategory is relevant, then this extension must be used -->
<FromProductCategoryRef ref="ch:1:TypeOfProductCategory:ICE" version="1">
<!-- Extension needed to map "Verkehrsmittel-Gattung", which is similar to but more detailed than Trans-portSubmode, for transfer times of interchanges. -->
</FromProductCategoryRef>
<ToProductCategoryRef ref="ch:1:TypeOfProductCategory:TE2" version="1">
<!-- Extension needed to map "Verkehrsmittel-Gattung", which is similar to but more detailed than Trans-portSubmode, for transfer times of interchanges. -->
</ToProductCategoryRef>
</Extensions>
<WalkTransferDuration>
<!-- We use WalkTransferDuration. At some point we need a solution for bicyle duration too (TSI telemetics) -->
<DefaultDuration>PT2M</DefaultDuration>
<MobilityRestrictedTravellerDuration>PT4M</MobilityRestrictedTravellerDuration>
</WalkTransferDuration>
<BothWays>false
<!-- Should be false - we always intend to use only one way because the behaviour may not be the same. -->
</BothWays>
<TransferMode>foot
<!-- Is foot. Others might become possible in future -->
</TransferMode>
<From>
<TransportMode>rail
<!-- All codes are shown in mapping excel. Use with care. -->
</TransportMode>
<OperatorView>
<OperatorRef ref="ch:1:sboid:100011" version="1">
<!-- Should be a SBOID whenever possible. -->
</OperatorRef>
</OperatorView>
</From>
<To>
<TransportMode>rail
<!-- All codes are shown in mapping excel. Use with care. -->
</TransportMode>
<OperatorView>
<OperatorRef ref="ch:1:sboid:100033" version="1">
<!-- Should be a SBOID whenever possible. -->
</OperatorRef>
</OperatorView>
</To>
<StopPlaceRef ref="ch:1:sloid:19231" version="1">
<!-- Usually a SLOID. Not set means whole network. -->
</StopPlaceRef>
</DefaultConnection>
→ Template
Usage Notes
- For more details see the use case on transfers.
@idneeds to be kept stable between exports.
SiteConnection
Purpose
- The
SiteConnectiondescribes the transfer times between two adjacentStopPlaces. @idneeds to be kept stable between exports.
Table
SiteConnection are used only in the main file and not in timetable files.
Table: SiteConnection
| Sub | Element | Usage | Card | Type | Description | Note |
|---|---|---|---|---|---|---|
| @id | mandatory | 1..1 | xsd:string | Attribute id | ||
| @version | mandatory | 1..1 | xsd:string | Attribute version | ||
| WalkTransferDuration | mandatory | 0..1 | TransferDurationStructure | |||
| + | DefaultDuration | mandatory | 0..1 | duration | Default time needed for a traveller to make a TRANSFER. | |
| BothWays | mandatory | 0..1 | xsd:boolean | |||
| From | mandatory | 0..1 | SiteConnectionEndStructure | Origin end of SITE CONNECTION. | Could also refer to a Quay or a different SiteElement. Currently, we only transfer StopPlaceRefs. | |
| + | StopPlaceRef | mandatory | 0..1 | StopPlaceRefStructure | ||
| To | mandatory | 0..1 | SiteConnectionEndStructure | Destination end of SITE CONNECTION. | Could also refer to a Quay or a different SiteElement. Currently, we only transfer StopPlaceRefs. | |
| + | StopPlaceRef | mandatory | 0..1 | StopPlaceRefStructure | Reference to a STOP PLACE. |
Example
<?xml version="1.0" encoding="UTF-8"?>
<SiteConnection id="ch:1:SiteConnection:8506302-8589913" version="1">
<!-- SiteConnection are used only in the main file and not in timetable files. -->
<WalkTransferDuration>
<DefaultDuration>PT13M</DefaultDuration>
</WalkTransferDuration>
<BothWays>false</BothWays>
<From>
<!-- Could also refer to a Quay or a different SiteElement. Currently, we only transfer StopPlaceRefs. -->
<StopPlaceRef ref="ch:2:StopPlace:8506302" version="1"/>
</From>
<To>
<!-- Could also refer to a Quay or a different SiteElement. Currently, we only transfer StopPlaceRefs. -->
<StopPlaceRef ref="ch:2:StopPlace:8589913" version="1"/>
</To>
</SiteConnection>
→ Template
Usage Notes
For more details see the use case on transfers.
TimingLink
Purpose
TimingLink defines the topological link between two TimingPoints (in practice
ScheduledStopPoints, referenced via FromPointRef/ToPointRef) used within a
ServiceJourneyPattern. TimingLink itself does not carry run or wait time
values — these are defined per TimeDemandType via JourneyRunTime (referencing
the TimingLink through TimingLinkRef) and JourneyWaitTime (referencing the
ScheduledStopPoint directly through TimingPointRef, not via TimingLink).
See TimeDemandType.
Table
A timing link is basically defined between two ScheduledStopPoints. If there are two way like Neubaustrecke or no Neubaustrecke, then multiple TimingLinks between two ScheduledStopPoints may exist.
Table: TimingLink
| Sub | Element | Usage | Card | Type | Description | Note |
|---|---|---|---|---|---|---|
| @id | mandatory | 1..1 | xsd:string | Attribute id | ||
| @version | mandatory | 1..1 | xsd:string | Attribute version | ||
| privateCodes | optional | 1..1 | PrivateCodesStructure | only for the “virtual” stops like Bahn2000 | ||
| + | PrivateCode | optional | 0..* | PrivateCodeStructure | DIDOK code of the virtual stop | |
| ++ | @type | mandatory | 1..1 | xsd:string | Attribute type | |
| Name | optional | 0..1 | MultilingualString | Name of LINK. | Can be used to express “Neubaustrecke”, “Lötschbergbasistunnel” and the like. | |
| FromPointRef | mandatory | 1..1 | TimingPointRefStructure | Identifier of TIMING POINT from which LINK starts. | We use PointRef on purpose in preparation of BorderPoints. the nameOfClassRef helps to define this | |
| + | @nameOfRefClass | mandatory | 1..1 | xsd:string | Attribute nameOfRefClass | |
| ToPointRef | mandatory | 1..1 | TimingPointRefStructure | Identifier of TIMING POINT at which LINK ends. | We use PointRef on purpose in preparation of BorderPoints. the nameOfClassRef helps to define this | |
| + | @nameOfRefClass | mandatory | 1..1 | xsd:string | Attribute nameOfRefClass | |
| OperationalContextRef | optional | 0..1 | OperationalContextRefStructure | This is “Betriebszweig”. Switzerland does not use it currently, but it might become interesting at some point |
Example
<?xml version="1.0" encoding="UTF-8"?>
<TimingLink id="generated" version="1">
<!-- A timing link is basically defined between two ScheduledStopPoints. If there are two way like Neubaustrecke or no Neubaustrecke, then multiple TimingLinks between two ScheduledStopPoints may exist. -->
<privateCodes>
<!-- only for the "virtual" stops like Bahn2000 -->
<PrivateCode type="virtualStops">00000001
<!-- DIDOK code of the virtual stop -->
</PrivateCode>
</privateCodes>
<Name>Neubaustrecke
<!-- Can be used to express "Neubaustrecke", "Lötschbergbasistunnel" and the like. -->
</Name>
<FromPointRef ref="sloid1" nameOfRefClass="ScheduledStopPoint" version="1">
<!-- We use PointRef on purpose in preparation of BorderPoints. the nameOfClassRef helps to define this -->
</FromPointRef>
<ToPointRef ref="sloid 2" nameOfRefClass="ScheduledStopPoint" version="1">
<!-- We use PointRef on purpose in preparation of BorderPoints. the nameOfClassRef helps to define this -->
</ToPointRef>
<OperationalContextRef ref="generated" version="1">
<!-- This is "Betriebszweig". Switzerland does not use it currently, but it might become interesting at some point -->
</OperationalContextRef>
</TimingLink>
→ Template
Usage Notes
- It must fit with the sequence defined in
ServiceJourneyPattern. FromPointRef/ToPointRefreferenceScheduledStopPoints (technically typed asTimingPointRef, substituted byScheduledStopPointRef).- If there is maneuvering or a change of quay, then a separate
TimingLinkneeds to be added for that too. - Multiple visits of the same
ScheduledStopPointwithin aServiceJourneyPatternare addressed with aJourneyWaitTimethat has aStopPointInServiceJourneyPatternRefinstead of aScheduledStopPointReflike the regular ones. @idneeds to be kept stable between exports.
ServiceJourneyPattern
Purpose
ServiceJourneyPattern is used to describe the journey pattern (sequence and times of ScheduledStopPoints) of ServiceJourney.
Table
Table: ServiceJourneyPattern
| Sub | Element | Usage | Card | Type | Description | Note |
|---|---|---|---|---|---|---|
| @id | mandatory | 1..1 | xsd:string | Attribute id | ||
| @version | mandatory | 1..1 | xsd:string | Attribute version | ||
| Name | optional | 0..1 | MultilingualString | Name of SERVIC CALENDAR. | ||
| RouteView | mandatory | 1..1 | unknown | |||
| + | LineRef | mandatory | 0..1 | LineRefStructure | ||
| DirectionType | mandatory | 0..1 | RelativeDirectionEnumeration | DIRECTION of JOURNEY PATTERN. Should be same as for ROUTE on which PATTERN is based. | ||
| pointsInSequence | mandatory | 0..1 | pointsInJourneyPattern_RelStructure | Sequence of points in JOURNEY PATTERN Points may be SCHEDULED STOP POINTs or TIMING POINTs. | ||
| + | StopPointInJourneyPattern | mandatory | 0..* | unknown | ||
| ++ | ScheduledStopPointRef | mandatory | 0..1 | ScheduledStopPointRefStructure | Reference to a SCHEDULED STOP POINT. | |
| ++ | ForAlighting | mandatory | 0..1 | boolean | Whether alighting is allowed at the stop. Default is true. | |
| ++ | ForBoarding | mandatory | 0..1 | boolean | Whether boarding is allowed at the stop. Default is true. | |
| ++ | DestinationDisplayRef | optional | 1..1 | DestinationDisplayRefStructure | Indicates that the destination has changed. Superseeds Line or ServiceJourney. Also, there is propagation. E.g if the DestinationDisplay changes on the 4. th stop it is propagated through all stops until a different DestinationDisplay is encountered. | |
| ++ | RequestStop | optional | 0..1 | boolean | Whether stop is a request stop for this journey. Default is false. | |
| ++ | BoardingRequestMethod | optional | 0..1 | RequestMethodTypeListOfEnumerations | Methods to Request Stop for boarding in this particular service pattern; Default is noneRequired. +v2.0 | For request stops (RequestStop true) with boarding. See sheet Haltecode of the mapping excel and uc16_drt. |
| ++ | AlightingRequestMethod | optional | 0..1 | RequestMethodTypeListOfEnumerations | Methods to Request Stop for alighting in this particular service pattern; Default is noneRequired. +v2.0 | For request stops (RequestStop true) with alighting. See sheet Haltecode of the mapping excel and uc16_drt. |
| ++ | StopUse | optional | 0..1 | StopUseEnumeration | Nature of use of stop, e.g. access, interchange only, or pass through. Default is Access. | All values possible. passthrough is used for Durchfahrt, if such data is delivered. See mapping excel. |
| ++ | checkConstraints | optional | 0..1 | checkConstraints_RelStructure | Implements the navigation from processes or barriers that the travellers will be facing (e.g., security check, check-in, etc.). +v2.1 | |
| +++ | CheckConstraint | optional | 0..* | CheckConstraint_VersionStructure | Process associated with a Place, typically giving rise to a delay to the traveller. | |
| ++ | bookingArrangements | optional | 0..1 | bookingArrangements_RelStructure | Set of possible Booking Arrangements for stop if different from those for SERVICE JOURNEY. +v2.0 | |
| +++ | BookingArrangementRef | optional | 0..* | BookingArrangementRefStructure | Specially we use bookingArrangementRef here to model the information that a stop is flexible. From the HRDF conversion only a BookingNote can be passed at the moment. With native NeTEx handling we can transfer more information. | |
| +++ | BookingArrangement | we expect a BookingArrangementRef. We use this here to show how native NeTEx handling could improve transfering information here | 0..* | BookingArrangement_VersionStructure | Details of the booking arrangements for a given LINE, STOP, SERVICE etc. | |
| ++++ | BookingMethods | we expect a BookingArrangementRef. We use this here to show how native NeTEx handling could improve transfering information here | 0..1 | BookingMethodListOfEnumerations | Allowed Ways of Making a BOOKING. | |
| ServiceJourneyPatternType | expected | 0..1 | ServiceJourneyPatternTypeEnumeration | Type of SERVICE JOURNEY PATTERN. | We currently only allow passenger |
Example
<?xml version="1.0" encoding="UTF-8"?>
<ServiceJourneyPattern id="ch:1:ServiceJourneyPattern:1" version="1">
<Name>Bern-Spiez</Name>
<RouteView>
<LineRef ref="ch:1:slnid:1024437" version="1"/>
</RouteView>
<DirectionType>outbound</DirectionType>
<pointsInSequence>
<StopPointInJourneyPattern id="ch:1:PointInJourneyPattern:1.1" version="1">
<ScheduledStopPointRef ref="ch:1:sloid:7000:5:9" version="1"/>
<ForAlighting>false</ForAlighting>
<ForBoarding>true</ForBoarding>
<DestinationDisplayRef ref="DestinationDisplay:1" version="1">
<!-- Indicates that the destination has changed. Superseeds Line or ServiceJourney. Also, there is propagation. E.g if the DestinationDisplay changes on the 4. th stop it is propagated through all stops until a different DestinationDisplay is encountered. -->
</DestinationDisplayRef>
<RequestStop>false</RequestStop>
<BoardingRequestMethod>stopButton
<!-- For request stops (RequestStop true) with boarding. See sheet Haltecode of the mapping excel and uc16_drt. -->
</BoardingRequestMethod>
<AlightingRequestMethod>stopButton
<!-- For request stops (RequestStop true) with alighting. See sheet Haltecode of the mapping excel and uc16_drt. -->
</AlightingRequestMethod>
<StopUse>access
<!-- All values possible. passthrough is used for Durchfahrt, if such data is delivered. See mapping excel. -->
</StopUse>
<checkConstraints>
<CheckConstraint id="generated" version="1"/>
</checkConstraints>
<bookingArrangements>
<BookingArrangementRef ref="generated" version="1">
<!-- Specially we use bookingArrangementRef here to model the information that a stop is flexible. From the HRDF conversion only a BookingNote can be passed at the moment. With native NeTEx handling we can transfer more information. -->
</BookingArrangementRef>
</bookingArrangements>
</StopPointInJourneyPattern>
<StopPointInJourneyPattern id="ch:1:PointInJourneyPattern:1.2" version="1">
<ScheduledStopPointRef ref="ch:1:sloid:7100:1:1" version="1"/>
<ForAlighting>true</ForAlighting>
<ForBoarding>true</ForBoarding>
</StopPointInJourneyPattern>
<StopPointInJourneyPattern id="ch:1:PointInJourneyPattern:1.3" version="1">
<ScheduledStopPointRef ref="ch:1:sloid:7483:0:954324" version="1"/>
<ForAlighting>true</ForAlighting>
<ForBoarding>false</ForBoarding>
</StopPointInJourneyPattern>
</pointsInSequence>
<ServiceJourneyPatternType>passenger
<!-- We currently only allow passenger -->
</ServiceJourneyPatternType>
</ServiceJourneyPattern>
→ Template
Usage Notes
ServiceJourneyPatterns are a common concept in the VDV interface world (“Linienfahrweg”). In order to model ServiceJourneys efficiently and to reduce overall file size, use the concept wisely:
ServiceJourneys sharing the same stop sequence and the same boarding/alighting options should use the sameServiceJourneyPattern.- Do not just generate one
ServiceJourneyPatternfor eachServiceJourney. @idshould be kept stable between exports.
TimeDemandType
Purpose
TimeDemandType describes the timing pattern of a ServiceJourneyPattern:
RunTimes between consecutive ScheduledStopPoints (via JourneyRunTime,
referencing the relevant TimingLink through TimingLinkRef) and WaitTimes
at a ScheduledStopPoint (via JourneyWaitTime, referencing the
ScheduledStopPoint directly through TimingPointRef). Multiple
TimeDemandTypes can be defined per ServiceJourneyPattern to represent
different traffic or dwell conditions (e.g. peak vs. off-peak).
Table
TimeDemandType assigns a timing behaviour to a ServiceJourney
Table: TimeDemandType
| Sub | Element | Usage | Card | Type | Description | Note |
|---|---|---|---|---|---|---|
| @id | mandatory | 1..1 | xsd:string | Attribute id | ||
| @version | mandatory | 1..1 | xsd:string | Attribute version | ||
| Description | optional | 0..1 | MultilingualString | Can be used if there exists a decription of the pattern. | ||
| runTimes | expected | 0..1 | journeyRunTimes_RelStructure | RUN TIMEs for TIME DEMAND TYPE. | The run time on the TimingLinks | |
| + | JourneyRunTime | expected | 1..* | JourneyRunTime_VersionedChildStructure | The time taken to traverse a TIMING LINK in a particular JOURNEY PATTERN, for a specified TIME DEMAND TYPE. If it exists, it will override the DEFAULT SERVICE JOURNEY RUN TIME and DEFAULT DEAD RUN RUN TIME. | |
| ++ | TimingLinkRef | mandatory | 0..1 | TimingLinkRefStructure | The timing link that is used here and that that does have a given run time. The same TimingLink may be referenced several times. As XML is ordered, the appropriate one is to be used. Always in tandem with the ServiceJourneyPattern’s list of StopPointInServiceJourney. | |
| ++ | RunTime | mandatory | 1..1 | duration | RUN TIME as an interval. | |
| waitTimes | expected | 0..1 | journeyWaitTimes_RelStructure | WAIT TIMEs for TIME DEMAND TYPE. | We only need wait times if greater than 0. | |
| + | JourneyWaitTime | expected | 1..* | JourneyWaitTime_VersionedChildStructure | The time a vehicle has to wait at a specific TIMING POINT IN JOURNEY PATTERN, for a specified TIME DEMAND TYPE. This wait time can be superseded by a VEHICLE JOURNEY WAIT TIME. | Relevant waiting times at the stop |
| ++ | ScheduledStopPointRef | expected | 0..1 | ScheduledStopPointRefStructure | Specific SCHEDULED STOP POINT at end of CONNECTION. | Which Quay is referenced. In the case of multiple visits, it should be a StopPointInJourneyPatternRef instead. It also can be a TimingPoint (choice). That’s why we only write expected here. The more detailed version takes precedence (StopPointInJourneyPatternRef over ScheduledStopPointRef). |
| ++ | WaitTime | mandatory | 0..1 | duration | Wait time as interval. |
Example
<?xml version="1.0" encoding="UTF-8"?>
<TimeDemandType id="generated" version="1">
<!-- TimeDemandType assigns a timing behaviour to a ServiceJourney -->
<Description>high demand
<!-- Can be used if there exists a decription of the pattern. -->
</Description>
<runTimes>
<!-- The run time on the TimingLinks -->
<JourneyRunTime id="generated" version="1">
<TimingLinkRef ref="generated" version="1">
<!-- The timing link that is used here and that that does have a given run time. The same TimingLink may be referenced several times. As XML is ordered, the appropriate one is to be used. Always in tandem with the ServiceJourneyPattern's list of StopPointInServiceJourney. -->
</TimingLinkRef>
<RunTime>PT5M</RunTime>
</JourneyRunTime>
</runTimes>
<waitTimes>
<!-- We only need wait times if greater than 0. -->
<JourneyWaitTime id="generated" version="1">
<!-- Relevant waiting times at the stop -->
<ScheduledStopPointRef ref="sloid" version="1">
<!-- Which Quay is referenced. In the case of multiple visits, it should be a StopPointInJourneyPatternRef instead. It also can be a TimingPoint (choice). That's why we only write expected here. The more detailed version takes precedence (StopPointInJourneyPatternRef over ScheduledStopPointRef). -->
</ScheduledStopPointRef>
<WaitTime>PT2M</WaitTime>
</JourneyWaitTime>
</waitTimes>
</TimeDemandType>
→ Template
Usage Notes
WaitTimeis only needed when greater than 0.RunTimereferences the relevantTimingLinkviaTimingLinkRef;WaitTimereferences the relevantScheduledStopPointdirectly viaTimingPointRef— not viaTimingLink.- Multiple visits of the same
ScheduledStopPointwithin aServiceJourneyPatternare addressed with aJourneyWaitTimethat has aStopPointInServiceJourneyPatternRefinstead of aScheduledStopPointReflike the regular ones.
Notice
Purpose
Informational or regulatory text associated with public transport services, displayed to passengers.
Table
Table: Notice
| Sub | Element | Usage | Card | Type | Description | Note |
|---|---|---|---|---|---|---|
| @id | mandatory | 1..1 | xsd:string | Attribute id | ||
| @version | mandatory | 1..1 | xsd:string | Attribute version | ||
| Text | expected | 0..1 | MultilingualString | Text content of NOTICe. | ||
| + | @lang | mandatory | 1..1 | xsd:string | Attribute lang | |
| + | Text | expected | 0..* | TextType | Name of the entity. | |
| ++ | @lang | mandatory | 1..1 | xsd:string | Attribute lang | |
| PublicCode | mandatory | 0..1 | PublicCodeStructure | Alternative code associated with Notice. | The public code is transmitted when it is to be published and when it is the type of notice 10. Only 1 and 10 aree allowed. | |
| ShortCode | expected | 0..1 | normalizedString | Alternative short code associated with Notice. | A duplication, but we want it. “A__” indicates an offer based on BS KI | |
| PrivateCode | expected | 0..1 | PrivateCodeStructure | DEPRECATED - use privateCodes. -v2.0 | A duplication, but we want it. | |
| TypeOfNoticeRef | expected | 0..1 | TypeOfNoticeRefStructure | allowed are ch:1:TypeOfNotice:1 for general notice, ch:1:TypeOfNotice:10 for offer, ch:1:TypeOfNotice:11 for region code (only PAG) | ||
| CanBeAdvertised | expected | 0..1 | boolean | Whether NOTICE is advertised to public. This may be overridden on an assignment. | Whether the NOTICE is advertised. |
Example
<?xml version="1.0" encoding="UTF-8"?>
<Notice id="ch:1:Notice:generated-1229900" version="1">
<Text lang="de">Cateringzone / Automaten
<Text lang="en">Catering zone / Vending machine</Text>
<Text lang="fr">Zone catering / Distributeur</Text>
<Text lang="it">Zona catering / Distributore</Text>
</Text>
<PublicCode>
<!-- The public code is transmitted when it is to be published and when it is the type of notice 10. Only 1 and 10 aree allowed. -->
</PublicCode>
<ShortCode>A__SN
<!-- A duplication, but we want it. "A__" indicates an offer based on BS KI -->
</ShortCode>
<PrivateCode>A__SN
<!-- A duplication, but we want it. -->
</PrivateCode>
<TypeOfNoticeRef ref="ch:1:TypeOfNotice:10" version="1">
<!-- allowed are ch:1:TypeOfNotice:1 for general notice, ch:1:TypeOfNotice:10 for offer, ch:1:TypeOfNotice:11 for region code (only PAG) -->
</TypeOfNoticeRef>
<CanBeAdvertised>true
<!-- Whether the NOTICE is advertised. -->
</CanBeAdvertised>
</Notice>
→ Template
Usage Notes
- Notice elements should only be used to convey information which cannot be transported using specific model elements. Do not use
Noticewhen the information could be expressed by specific elements, e.g.,FacilitySet,DayType,ForAlighting,ForBoarding.Notices can be used to provide further information onServiceFacilitys but not as a replacement for them. Ideally, the description of aNoticeis translated to the three official languages (DE, IT, FR), and possibly E. @iddoesn’t need to be kept stable between exports.
NoticeAssignment
Purpose
Assign a Notice to an element.
Table
NoticeAssignment connects a Notice to an element. The attribute id must be unique.
Table: NoticeAssignment
| Sub | Element | Usage | Card | Type | Description | Note |
|---|---|---|---|---|---|---|
| @id | mandatory | 1..1 | xsd:string | Attribute id | ||
| @version | mandatory | 1..1 | xsd:string | Attribute version | ||
| validityConditions | optional | 1..1 | validityConditions_RelStructure | |||
| + | AvailabilityConditionRef | optional | 0..* | AvailabilityConditionRefStructure | ||
| NoticeRef | expected | 0..1 | NoticeRefStructure | |||
| NoticedObjectRef | optional | 0..1 | VersionOfObjectRefStructure | Object with which NOTICE is associated. If given by context can be omitted. | We currently have not plan of using it this way. We do it through embeddingt the NoticeAssignment within the relevant element. | |
| + | @nameOfRefClass | mandatory | 1..1 | xsd:string | Attribute nameOfRefClass | |
| StartPointInPatternRef | optional | 0..1 | PointInSequenceRefStructure | POINT at which applicability of NOTICE starts. | If the notice is valid only on a part of a ServiceJourney then this can be marked with StartPointInPatternRef and EndPointInPatternRef. | |
| EndPointInPatternRef | optional | 0..1 | PointInSequenceRefStructure | POINT at which applicabiity of NOTICE endsIf absent same as Start Point. |
Example
<?xml version="1.0" encoding="UTF-8"?>
<NoticeAssignment id="ch:1:NoticeAssignment:ch_1_ServiceJourney_ch_1_sjyid_100001_71707-003_1_0" version="1">
<!-- NoticeAssignment connects a Notice to an element. The attribute `id` must be unique. -->
<validityConditions>
<AvailabilityConditionRef ref="ch:1:AvailabilityCondition:c3" version="1"/>
</validityConditions>
<NoticeRef ref="ch:1:Notice:Hin-1229900" version="1"/>
<NoticedObjectRef ref="generated" nameOfRefClass="ScheduledStopPoint" version="1">
<!-- We currently have not plan of using it this way. We do it through embeddingt the NoticeAssignment within the relevant element. -->
</NoticedObjectRef>
<StartPointInPatternRef ref="generated" version="1">
<!-- If the notice is valid only on a part of a ServiceJourney then this can be marked with StartPointInPatternRef and EndPointInPatternRef. -->
</StartPointInPatternRef>
<EndPointInPatternRef ref="generated-1" version="1"/>
</NoticeAssignment>
→ Template
Usage Notes
@iddoesn’t need to be kept stable between exports.