timetable
Current version for timetable is: v1.5 (last changed Jul 28, 2022)
Content
- 1 Components
- 1.1 Journey
- 1.1.1 Journey
- 1.1.2 JourneyEndpointStructure
- 1.2 Types of journey
- 1.2.1 VehicleJourney
- 1.2.1.1 JourneyPart
- 1.2.1.2 Frequency
- 1.2.1.3 VehicleJourneyWaitTime
- 1.2.1.4 VehicleJourneyRunTime
- 1.2.1.5 VehicleJourneyHeadway
- 1.2.1.6 TimetabledPassingTime
- 1.2.2 ServiceJourney
- 1.2.2.1 TrainNumber
- 1.2.2.2 FlexibleServiceProperties
- 1.2.3 DatedServiceJourney
- 1.2.4 DeadRun
- 1.2.5 Periodical journeys
- 1.2.5.1 TemplateVehicleJourney
- 1.2.5.2 TemplateServiceJourney
- 1.2.5.3 JourneyFrequencyGroup
- 1.2.5.4 RhythmicalJourneyGroup
- 1.2.5.5 HeadwayJourneyGroup
- 1.2.6 Coupled journeys
- 1.2.6.1 CoupledJourney
- 1.2.6.2 JourneyPartCouple
- 1.2.1 VehicleJourney
- 1.3 ServiceCalendar
- 1.4 Interchange
- 1.4.1 Interchange across datasets
- 1.4.2 Interchange
- 1.4.3 ServiceJourneyInterchange
- 1.1 Journey
This document is part of NeTEx Norwegian Profile and describes data elements used for calendar data and planned timetables data exchange in the NeTEx format.
Note that the timetable-part of the profile describes elements for constructing time plans or time tables (dates, times, frequencies etc.) to be used in exchanging data between different systems, and representation of this information to travellers, based on the superordinate concept from the network-profile document.
Components
Journey
Journey
An abstract type which describes a departure/journey.
See definition under General information
Examples in the GitHub-repository (replacement transport)
Journey < LinkSequence < DataManagedObject | |||
|---|---|---|---|
Name | Type | Cardinality | Description |
Description | 0: 1 | Description of the departure | |
TransportMode | AllVehicleModesOfTransportEnumeration | 0: 1 | Transport mode, see Mode in Transport Modes for possible values (with accompanying submodes). Note that when overriding the mode for a Journey, both TransportMode and TransportSubmode must be specified. |
TransportSubmode | TransportSubmode | 0: 1 | Transport submode See Submode in Transport Modes for possible values (must be a submode of specified TransportMode) Note that when overriding the mode for a Journey, both TransportMode and TransportSubmode must be specified. |
ExternalVehicleJourneyRef | ExternalObjectRef | 0: 1 | Reference (ID) to original ServiceJourney when specifying replacement traffic. Note that replaced ServiceJourneys (if ID is referred to by ExternalVehicleJourneyRef) must also be part of the dataset (even in cases of partial delivery) to ensure the validity of the reference. |
Monitored | xsd:boolean | 0: 1 | Specifies whether real-time information is available for the departure. |
JourneyEndpointStructure
Description of the beginning,- or the destination of a VehicleJourney
JourneyEndpointStructure | |||
|---|---|---|---|
Name | Type | Cardinality | Description |
Name | 0: 1 | Name | |
ScheduledStopPointRef | ScheduledStopPointRef | 0: 1 | Reference to ScheduledStopPoint |
DestinationDisplayRef | DestinationDisplayRef | 0: 1 | Reference to DestinationDisplay |
Types of journey
VehicleJourney
A planned journey from starting point to a destination, according to a JourneyPattern.
VehicleJourney < Journey < LinkSequence < DataManagedObject | |||
|---|---|---|---|
Name | Type | Cardinality | Description |
PrivateCode | xsd:normalizedString | 0: 1 | Internal code (non-public identifier) for the journey (e.g. train- or trip number from the planners' tool) |
DepartureTime | xsd:time | 0: 1 | Time of departure for the journey. |
Frequency | 0: 1 | Frequency or interval for departures. Used only for frequency-based departures. | |
JourneyDuration | xsd:duration | 0: 1 | The total duration of the journey. |
RouteRef | RouteRef | 0: 1 | Reference to Route (not mandatory for ServiceJourney, as this can be derived from JourneyPatternRef) |
PublicCode | xsd:normalizedString | 0: 1 | Public code or identifier for the journey Used only when for example the line number is changed per trip or has extraordinary overrides. |
waitTimes | 0: * | Description of wait times at TimingPoints Normally used only when describing frequency-based departures. | |
runTimes | 0: * | Description of run times between TimingPoints Normally used only when describing frequency-based departures. | |
passingTimes | 1: * | Description of planned passing times at StopPoints or TimingPoints | |
parts | 0: * | List of the parts of the journey. Used in special cases such as combined journeys. | |
JourneyPart
A part of a journey, used for example when creating compound train journeys.
JourneyPart < DataManagedObject | |||
|---|---|---|---|
Name | Type | Cardinality | Description |
Description | 0: 1 | Description | |
MainPartRef | JourneyPartCoupleRef | 1: 1 | Reference to the main part of the journey |
JourneyPartCoupleRef | JourneyPartCoupleRef | 0: 1 | Reference to CoupledJourney to which this journey part belongs. |
TrainNumberRef | TrainNumberRef | 0: 1 | Reference to TrainNumber for the journey part |
FromStopPointRef | ScheduledStopPointRef | 0: 1 | The starting point for the journey part (ScheduledStopPoint) |
ToStopPointRef | ScheduledStopPointRef | 0: 1 | The destination for the journey part (ScheduledStopPoint) |
StartTime | xsd:time | 1: 1 | Start-time |
EndTime | xsd:time | 1: 1 | End-time |
Frequency
The frequency for a journey, i.e. the time interval between each departure in frequency based traffic.
Frequency < DataManagedObject | |||
|---|---|---|---|
Name | Type | Cardinality | Description |
ScheduledHeadwayInterval | xsd:duration | 1: 1 | Planned departure interval |
MinimumHeadwayInterval | xsd:duration | 0: 1 | Minimum departure interval |
MaximumHeadwayInterval | xsd:duration | 0: 1 | Maximum departure interval |
Description | 0: 1 | Description, for example, "every 15 minutes" | |
VehicleJourneyWaitTime
Waiting time at TimingPoint for a VehicleJourney.
VehicleJourneyWaitTime < JourneyWaitTime < JourneyTiming < VersionedChild < EntityInVersion < Entity | |||
|---|---|---|---|
Name | Type | Cardinality | Description |
VehicleJourneyRef | VehicleJourneyRef | 0: 1 | Reference to VehicleJourney |
VehicleJourneyRunTime
Run time between TimingPoints for a VehicleJourney.
VehicleJourneyRunTime < JourneyRuntime < JourneyTiming < VersionedChild < EntityInVersion < Entity | |||
|---|---|---|---|
Name | Type | Cardinality | Description |
VehicleJourneyRef | VehicleJourneyRef | 0: 1 | Reference to VehicleJourney |
VehicleJourneyHeadway
The interval between two VehicleJourneys.
Used for frequency-based traffic.
VehicleJourneyHeadway < JourneyHeadway < JourneyTiming < VersionedChild < EntityInVersion < Entity | |||
|---|---|---|---|
Name | Type | Cardinality | Description |
VehicleJourneyRef | VehicleJourneyRef | 0: 1 | Reference to VehicleJourney |
TimetabledPassingTime
Planned passing time at a PointInJourneyPattern (ScheduledStopPoint or TimingPoint) for a VehicleJourney.
See definition under General information
Examples in the GitHub-repository
ALTERNATIVE 1: Ordinary timetable for planned journeys
TimetabledPassingTime < PassingTime < VersionedChild < EntityInVersion < Entity | ||||
|---|---|---|---|---|
| Name | Type | Cardinality | Description |
attr | id | ObjectIdType | 1: 1 | Unique id for the object Mandatory attribute |
attr | version | VersionIdType | 1: 1 | Version number Mandatory attribute |
elem | PointInJourneyPatternRef | PointInJourneyPatternRef | 1: 1 | Reference to PointInJourneyPattern (the point being served/passed by the vehicle) |
elem (choice) | ArrivalTime ArrivalDayOffset | xsd:time DayOffsetType (xsd:integer) | 1: 1 0: 1 | Planned arrival time (if relevant, both ArrivalTime and DepartureTime may be specified) ArrivalOffset relative to the OperatingDay / Date for the affected VehicleJourney(s), e.g. "-1" (previous day) or "1" (next day) |
DepartureTime DepartureDayOffset | xsd:time DayOffsetType (xsd:integer) | 1: 1 0: 1 | Planned departure time (if relevant, both ArrivalTime and DepartureTime may be specified) DepartureOffset relative to the OperatingDay / Date for the affected VehicleJourney(s), e.g. "-1" (previous day) or "1" (next day) | |
elem | WaitingTime | xsd:duration | 0: 1 | Planned waiting time at a Point |
ALTERNATIVE 2: On demand transport/FlexibleLines including hail and ride
TimetabledPassingTime < PassingTime < VersionedChild < EntityInVersion < Entity | ||||
|---|---|---|---|---|
| Name | Type | Cardinality | Description |
attr | id | ObjectIdType | 1: 1 | |