Skip to content

Commit

Permalink
Merge pull request #517 from datanel/doc_netex_calendar
Browse files Browse the repository at this point in the history
[doc] NetexIDF: fixed calendar specs
  • Loading branch information
mergify[bot] authored Jan 22, 2020
2 parents 6d89a5c + 1efe723 commit b868270
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/documentation/netex_idfm_to_ntfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,15 +325,22 @@ The `service_id` property of the calendar in the NTFS is specified by an auto-in

Active dates of the calendar are specified by:
- `DayType` nodes describing the active days of a week
+ days of the week are listed in `DayType/properties[]/PropertyOfDay/DaysOfWeek nodes`.
+ Expected values MUST be one of `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, `Sunday`.
+ days of the week are listed in `DayType/properties/PropertyOfDay[]/DaysOfWeek` nodes.
+ Expected values MUST be one of `Monday`, `Tuesday`, `Wednesday`, `Thursday`, `Friday`, `Saturday`, `Sunday`.
+ `DayType/properties` node is optional, a `DayType` node may not have any active days of a week.
- `OperatingPeriod` nodes describing periods (basically a beginning date and an end date) referenced in `DayTypeAssignment`
- `DayTypeAssignment` nodes with 2 possible uses (they are applied in the order they appear in the file):
+ Activate or deactivate a specific day on a DayType (with the nodes `IsAvailable` and `Date`)
+ the node `IsAvailable` is optional. If not present the default value is `true`.
+ Apply the active days of the referenced DayType on an `OperatingPeriod`

All resulting calendars are to be restricted between `ValidBetween/FromDate` and `ValidBetween/ToDate` specified at the top level of the file in `GeneralFrame`.

Active dates are read in the following order:
- dates from operating periods
- dates added (`DayTypeAssignment/IsAvailable` = true)
- dates removed (`DayTypeAssignment/IsAvailable` = false)

Be careful: Definition of calendars and exceptions in calendar_dates may not be the same definition as the one in the Netex-IDFM files, but the resulting active dates will be the same.

Here is 3 possible modelizations in Netex-IDFM of a calendar running from 2016-07-01 to 2016-07-31 from monday to saturday except on 2016-07-14:
Expand Down

0 comments on commit b868270

Please sign in to comment.