-
Notifications
You must be signed in to change notification settings - Fork 46
Estimated delay in timetable #848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
59b604b
fixes #749
ue71603 1533559
Lint and update documentation tables
github-actions[bot] 87a6828
more precise about AvailabilityConditionRef
ue71603 a2f3832
Update examples/functions/timetable/Netex_52_planned_delay.xml
ue71603 016526c
correct AvailabilityConditions
ue71603 154e44c
Lint and update documentation tables
github-actions[bot] 7ddd587
remove Z
ue71603 afabaa1
Update examples/functions/timetable/Netex_52_planned_delay.xml
ue71603 ee1c6ab
Update examples/functions/timetable/Netex_52_planned_delay.xml
ue71603 e95cf3c
Update examples/functions/timetable/Netex_52_planned_delay.xml
ue71603 2a248ed
Update examples/functions/timetable/Netex_52_planned_delay.xml
ue71603 3e092ed
removing milliseconds
ue71603 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
208 changes: 208 additions & 0 deletions
208
examples/functions/timetable/Netex_52_planned_delay.xml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,208 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!-- ==== Planned delays. We assume that in July the trip has some minutes delay ====== | ||
|
|
||
| --> | ||
| <PublicationDelivery xmlns="http://www.netex.org.uk/netex" xmlns:siri="http://www.siri.org.uk/siri" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:schemaLocation="http://www.netex.org.uk/netex ../../../xsd/NeTEx_publication.xsd"> | ||
| <PublicationTimestamp>2010-12-17T09:30:47.0Z</PublicationTimestamp> | ||
| <ParticipantRef>SYS001</ParticipantRef> | ||
| <PublicationRefreshInterval>P1M</PublicationRefreshInterval> | ||
| <Description> An example that contains a service journey, that is delayed during some days.</Description> | ||
| <!--- =============== RESULTS =========== --> | ||
| <dataObjects> | ||
| <CompositeFrame version="1.0" id="ch:cf"> | ||
| <!--- ======= CODESPACEs======== --> | ||
| <codespaces> | ||
| <Codespace id="mybus"> | ||
| <Xmlns>mybus</Xmlns> | ||
| <XmlnsUrl>http://www.mybuses.eu/stuff</XmlnsUrl> | ||
| <Description>My buses</Description> | ||
| </Codespace> | ||
| </codespaces> | ||
| <!--- =======FRAME DEFAULTS======== --> | ||
| <FrameDefaults> | ||
| <DefaultCodespaceRef ref="mybus"/> | ||
| </FrameDefaults> | ||
| <frames> | ||
| <ServiceFrame version="1.0" id="ch:serviceframe"> | ||
| <Name>Stops for Winter timetable for route 24 </Name> | ||
| <!--- =========LINEs=========== --> | ||
| <lines> | ||
| <Line version="any" id="mybus:LN_24"> | ||
| <Name>Line 24 Alpha to Charley</Name> | ||
| <ShortName>Line 24</ShortName> | ||
| <TransportMode>bus</TransportMode> | ||
| <PublicCode>24</PublicCode> | ||
| <OperatorRef version="1.0" ref="ch:1:Operator:1"/> | ||
| </Line> | ||
| </lines> | ||
| <!--- =========STOP POINTs============ --> | ||
| <scheduledStopPoints> | ||
| <ScheduledStopPoint version="any" id="mybus:SSP_001"> | ||
| <Name>Alpha & Castle</Name> | ||
| <Location> | ||
| <Longitude>53.0000</Longitude> | ||
| <Latitude>0.1000</Latitude> | ||
| </Location> | ||
| <TimingPointStatus>timingPoint</TimingPointStatus> | ||
| <ShortName>Alpha</ShortName> | ||
| <PublicCode>ALPH</PublicCode> | ||
| <StopType>onstreetBus</StopType> | ||
| <VehicleModes>bus</VehicleModes> | ||
| </ScheduledStopPoint> | ||
| <ScheduledStopPoint version="any" id="mybus:SSP_077"> | ||
| <Name>Charley Crescent</Name> | ||
| <Location> | ||
| <Longitude>53.3000</Longitude> | ||
| <Latitude>0.3000</Latitude> | ||
| </Location> | ||
| <TimingPointStatus>timingPoint</TimingPointStatus> | ||
| <ShortName>Charley</ShortName> | ||
| <PublicCode>CHAS</PublicCode> | ||
| <StopType>onstreetBus</StopType> | ||
| <VehicleModes>bus</VehicleModes> | ||
| </ScheduledStopPoint> | ||
| </scheduledStopPoints> | ||
| <notices> | ||
| <Notice id="delay_notice" version="any"> | ||
| <Text>During July the bus is delayed by 5 minutes due to construction work.</Text> | ||
| </Notice> | ||
| </notices> | ||
| </ServiceFrame> | ||
| <!-- ======TIMETABLE ======= --> | ||
| <TimetableFrame version="1.0" id="ch:tf"> | ||
| <validityConditions> | ||
| <AvailabilityCondition version="any" id="all_year_no_longer_available"> | ||
| <Description>regular run</Description> | ||
| <FromDate>2025-11-01T00:00:00Z</FromDate> | ||
| <ToDate>2025-12-31T00:00:00Z</ToDate> | ||
| <IsAvailable>false</IsAvailable> | ||
| <!--making clear that it is no longer available --> | ||
| </AvailabilityCondition> | ||
| <AvailabilityCondition version="any" id="only_july"> | ||
| <Description>regular run</Description> | ||
| <FromDate>2025-07-01T00:00:00Z</FromDate> | ||
| <ToDate>2025-07-31T23:59:00Z</ToDate> | ||
| </AvailabilityCondition> | ||
| <AvailabilityCondition version="any" id="all_except_july"> | ||
| <Description>regular run</Description> | ||
| <FromDate>2025-07-01T00:00:00Z</FromDate> | ||
ue71603 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <ToDate>2025-07-31T23:59:00Z</ToDate> | ||
| </AvailabilityCondition> | ||
| </validityConditions> | ||
| <vehicleJourneys> | ||
| <ServiceJourney version="any" id="444"> | ||
| <validityConditions> | ||
| <AvailabilityConditionRef ref="all_year_no_longer_available" version="any"/> | ||
| </validityConditions> | ||
| <Description>The original journey replaced by 444-1 and 444-2</Description> | ||
| <ServiceAlteration>replaced</ServiceAlteration> | ||
| <DepartureTime>14:20:00.0Z</DepartureTime> | ||
| <LineRef version="any" ref="mybus:LN_24"/> | ||
| <calls> | ||
| <Call version="any" id="hde:sj_24o_01_001" order="1"> | ||
| <ScheduledStopPointRef version="any" ref="mybus:SSP_001"/> | ||
| <Arrival> | ||
| <ForAlighting>false</ForAlighting> | ||
| </Arrival> | ||
| <Departure> | ||
| <Time>14:20:00.0Z</Time> | ||
ue71603 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| </Departure> | ||
| </Call> | ||
| <Call version="any" id="hde:sj_24o_01_003" order="2"> | ||
| <ScheduledStopPointRef version="any" ref="mybus:SSP_077"/> | ||
| <Arrival> | ||
| <Time>15:10:00.0Z</Time> | ||
| </Arrival> | ||
| <Departure> | ||
| <ForBoarding>false</ForBoarding> | ||
| </Departure> | ||
| </Call> | ||
| </calls> | ||
| </ServiceJourney> | ||
| <ServiceJourney version="any" id="444-1" derivedFromObjectRef="444" derivedFromVersionRef="any"> | ||
| <validityConditions> | ||
| <AvailabilityConditionRef ref="all_except_july" version="any"/> | ||
| </validityConditions> | ||
| <Description>The replacement that is still the same</Description> | ||
| <ServiceAlteration>planned</ServiceAlteration> | ||
ue71603 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <DepartureTime>14:20:00.0Z</DepartureTime> | ||
| <LineRef version="any" ref="mybus:LN_24"/> | ||
| <calls> | ||
| <Call version="any" id="hde:sj_24o_01_001-1" order="1"> | ||
| <ScheduledStopPointRef version="any" ref="mybus:SSP_001"/> | ||
| <Arrival> | ||
| <ForAlighting>false</ForAlighting> | ||
| </Arrival> | ||
| <Departure> | ||
| <Time>14:20:00.0Z</Time> | ||
| </Departure> | ||
| </Call> | ||
| <Call version="any" id="hde:sj_24o_01_003-1" order="2"> | ||
| <ScheduledStopPointRef version="any" ref="mybus:SSP_077"/> | ||
| <Arrival> | ||
| <Time>15:10:00.0Z</Time> | ||
| </Arrival> | ||
| <Departure> | ||
| <ForBoarding>false</ForBoarding> | ||
| </Departure> | ||
| </Call> | ||
| </calls> | ||
| </ServiceJourney> | ||
| <ServiceJourney version="any" id="444-2" derivedFromObjectRef="444" derivedFromVersionRef="any"> | ||
| <validityConditions> | ||
| <AvailabilityConditionRef ref="only_july" version="any"/> | ||
| </validityConditions> | ||
| <Description>The delayed part in July</Description> | ||
| <noticeAssignments> | ||
| <NoticeAssignment id="na:1" version="any" order="1"> | ||
| <NoticeRef ref="delay_notice" version="any"/> | ||
| </NoticeAssignment> | ||
| </noticeAssignments> | ||
| <ServiceAlteration>planned</ServiceAlteration> | ||
| <DepartureTime>14:25:00.0Z</DepartureTime> | ||
| <LineRef version="any" ref="mybus:LN_24"/> | ||
| <calls> | ||
| <Call version="any" id="hde:sj_24o_01_001-2" order="1"> | ||
| <ScheduledStopPointRef version="any" ref="mybus:SSP_001"/> | ||
| <Arrival> | ||
| <ForAlighting>false</ForAlighting> | ||
| </Arrival> | ||
| <Departure> | ||
| <Time>14:25:00.0Z</Time> | ||
| <!-- 5 minutes later --> | ||
| </Departure> | ||
| </Call> | ||
| <Call version="any" id="hde:sj_24o_01_003-2" order="2"> | ||
| <ScheduledStopPointRef version="any" ref="mybus:SSP_077"/> | ||
| <Arrival> | ||
| <Time>15:15:00.0Z</Time> | ||
| </Arrival> | ||
| <Departure> | ||
| <ForBoarding>false</ForBoarding> | ||
| </Departure> | ||
| </Call> | ||
| </calls> | ||
| </ServiceJourney> | ||
| </vehicleJourneys> | ||
| </TimetableFrame> | ||
| <ServiceCalendarFrame version="1.0" id="ch:scf"> | ||
| <ServiceCalendar version="any" id="hde:Calendar@2010"> | ||
| <FromDate>2025-01-01</FromDate> | ||
| <ToDate>2025-12-31</ToDate> | ||
| </ServiceCalendar> | ||
| </ServiceCalendarFrame> | ||
| <ResourceFrame version="1.0" id="ch:rf"> | ||
| <organisations> | ||
| <Operator version="1.0" id="ch:1:Operator:1"> | ||
| <Name>The operator</Name> | ||
| <Locale> | ||
| <DefaultLanguage>fr</DefaultLanguage> | ||
| </Locale> | ||
| <OrganisationType>operator</OrganisationType> | ||
| </Operator> | ||
| </organisations> | ||
| </ResourceFrame> | ||
| </frames> | ||
| </CompositeFrame> | ||
| </dataObjects> | ||
| </PublicationDelivery> | ||
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.
Uh oh!
There was an error while loading. Please reload this page.