Content
Table of Contents |
---|
Calendar-objects
...
A Service Calendar defines days, daytypesdayType, operational operational periods and other calendar items, as well as the connections between them. These definitions are further used (mainly) in the Timetable to specify when a Line operates.
Link
The entire XML sample file is located XML example in it its entirety can be found in the GitHub repository: https://github.com/entur/profile-norway-examples/blob/master/netex/schedule/ServiceCalendar-example.xml
...
Below is a more detailed description of the most important elements of modeling modelling a calendar object.
Info |
---|
Note that this is only a simplified example of NeTEx XML. |
...
All XML files according to the Norwegian NeTEx profile should be of type PublicationDelivery containing relevant Frames. (See GitHub for a complete example.)
Info |
---|
Description of the dummy ServiceFrame and TimetableFrame in the example is only included to indicate a complete PublicationDelivery. |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<ServiceCalendarFrame version="any" id="RUT:ServiceCalendarFrame:1"> <ServiceCalendar version="any" id="RUT:ServiceCalendar"> <Name>Weekdays</Name> <FromDate>2019-04-01</FromDate> <ToDate>2019-08-31</ToDate> </ServiceCalendar> [...] |
dayTypes
Definition of Defining day type by which weekdays the DayType applies. The type can be further clarified with additional features, e.g. holiday type, if applicable.
Definisjon av type dag ved hjelp av hvilke ukedager dagtypen gjelder. Typen kan presiseres nærmere med ytterligere egenskaper, f.eks. ferie-type, hvis relevant. Status colour Yellow title convoluted
means of weekdays.
Code Block | ||
---|---|---|
| ||
<dayTypes> <DayType version="any" id="RUT:DayType:weekdays"> <Name>Ukedager</Name> <properties> <PropertyOfDay> <DaysOfWeek>Monday Tuesday Wednesday Thursday Friday</DaysOfWeek> </PropertyOfDay> </properties> </DayType> [...] </dayTypes> |
...
Specification of an operating day, possibly also the start and length of an operating day. Can be linked to a daytypedayType , e.g. 637370378.
Code Block | ||
---|---|---|
| ||
<operatingDays> <OperatingDay version="any" id="RUT:OperatingDay:default:1"> <CalendarDate>2016-05-01</CalendarDate> <EarliestTime>10:10:00</EarliestTime> <DayLength>PT12H45M</DayLength> </OperatingDay> <OperatingDay version="any" id="RUT:od:default:2"> <CalendarDate>2016-07-07</CalendarDate> <EarliestTime>11:11:00</EarliestTime> <DayLength>PT9H10M</DayLength> </OperatingDay> </operatingDays> |
...
dayTypeAssignments
Attaching a daytype dayType to a specific date or pre-defined OperatingDay/Period for a given calendar, i.e. a daytype dayType will be valid within the time period specified by the calendar object to which it is associated.
...