Add park-and-ride opening hours (AvailabilityCondition) example on Parking - #22
Draft
teppope wants to merge 1 commit into
Draft
Add park-and-ride opening hours (AvailabilityCondition) example on Parking#22teppope wants to merge 1 commit into
teppope wants to merge 1 commit into
Conversation
…rking Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an example of
AvailabilityCondition(opening hours) on aParkingelement, showing a per-day-type pattern: open 06:00–22:00 on business days and Saturdays, closed on Sundays.This illustrates the NeTEx Nordic profile extension proposed by Fintraffic to support park-and-ride opening hours — see the CCB proposal:
https://finrail.atlassian.net/wiki/spaces/VACO1/pages/4838883341
Note: this PR depends on the CCB proposal above being approved. It is opened as a draft now to have the example ready; please do not merge until the proposal has been accepted by the Nordic CCB. Related Jira: DPO-4787 (CCB submission, not yet submitted), DPO-4788 (this documentation task).
What changed
netex/stops/StopPlace-with-equipment-and-parking_example.xml: added avalidityConditions/AvailabilityConditionblock (withIsAvailable,dayTypes/DayTypeRef, andtimebands/Timeband) to the firstParkingelement (NSR:Parking:1), following the existing element/property order defined byEntityInVersionGroup(validated against thenetex-java-modelJAXB classes —validityConditionsis the first child element ofParking, ahead oflevels/entrances/etc.).Validation
org.entur:netex-java-model(the same schema Tiamat uses for NeTEx import) usingxmllint. The added block produces zero validation errors. Three pre-existing, unrelated schema errors already present in the file before this change (enum value casing drift inScopeOfTicketsAvailable/SanitaryFacilityList, unrelated toParking) were left untouched, per scope.