Skip to content
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

Update trip refinement #298

Merged
merged 20 commits into from
Apr 5, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Lint and update documentation tables
github-actions[bot] authored and ue71603 committed Apr 5, 2023
commit fe6384bbb7e828e1965ede237244f8f37842057e
40 changes: 20 additions & 20 deletions examples/functions/triprefine/RefinementRequest.xml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
<ojp:RefineLegRef>3</ojp:RefineLegRef>
<ojp:SystemId>SBB:ojp:prod</ojp:SystemId>
<ojp:UseRealtimeData>full</ojp:UseRealtimeData>
<ojp:IncludeIntermediateStops>true</ojp:IncludeIntermediateStops>
<ojp:IncludeIntermediateStops>true</ojp:IncludeIntermediateStops>
<ojp:IncludeAlternativeOptions>true</ojp:IncludeAlternativeOptions>
<ojp:IncludeFare>true</ojp:IncludeFare>
<ojp:HikingProfile>difficult</ojp:HikingProfile>
@@ -147,7 +147,7 @@
<ojp:GeoPosition>
<Longitude>47.042666496</Longitude>
<Latitude>8.306332108</Latitude>
</ojp:GeoPosition>
</ojp:GeoPosition>
<ojp:Name>
<ojp:Text>Taxiplatz Luzern</ojp:Text>
</ojp:Name>
@@ -178,7 +178,7 @@
</ojp:ContinuousLeg>
</ojp:Leg>
</ojp:Trip>
</ojp:TripResult>
</ojp:TripResult>
<ojp:TripResponseContext>
<ojp:Operators>
<ojp:Operator>
@@ -187,24 +187,24 @@
</ojp:Operator>
</ojp:Operators>
<ojp:Places>
<ojp:Place>
<ojp:StopPlace>
<ojp:StopPlaceRef>8530813</ojp:StopPlaceRef>
<ojp:StopPlaceName>
<ojp:Text>Zürich Kreuzplatz</ojp:Text>
</ojp:StopPlaceName>
<ojp:TopographicPlaceRef>23026261:27</ojp:TopographicPlaceRef>
</ojp:StopPlace>
<ojp:Name>
<ojp:Text xml:lang="de">Zürich</ojp:Text>
</ojp:Name>
<ojp:GeoPosition>
<Longitude>8.55408</Longitude>
<Latitude>47.36488</Latitude>
</ojp:GeoPosition>
</ojp:Place>
<ojp:Place>
<ojp:StopPlace>
<ojp:StopPlaceRef>8530813</ojp:StopPlaceRef>
<ojp:StopPlaceName>
<ojp:Text>Zürich Kreuzplatz</ojp:Text>
</ojp:StopPlaceName>
<ojp:TopographicPlaceRef>23026261:27</ojp:TopographicPlaceRef>
</ojp:StopPlace>
<ojp:Name>
<ojp:Text xml:lang="de">Zürich</ojp:Text>
</ojp:Name>
<ojp:GeoPosition>
<Longitude>8.55408</Longitude>
<Latitude>47.36488</Latitude>
</ojp:GeoPosition>
</ojp:Place>
</ojp:Places>
</ojp:TripResponseContext>
</ojp:TripResponseContext>
</ojp:OJPTripRefineRequest>
</ServiceRequest>
</OJPRequest>
32 changes: 20 additions & 12 deletions examples/functions/triprefine/RefinementResponse.xml
Original file line number Diff line number Diff line change
@@ -20,7 +20,8 @@
<ojp:EndTime>2020-09-30T12:21:00Z</ojp:EndTime>
<ojp:Transfers>0</ojp:Transfers>
<ojp:Distance>125484</ojp:Distance>
<ojp:Leg> <!-- Refinement: Updated leg -->
<ojp:Leg>
<!-- Refinement: Updated leg -->
<ojp:Id>1</ojp:Id>
<ojp:TimedLeg>
<ojp:LegBoard>
@@ -32,11 +33,13 @@
<ojp:Text xml:lang="de">4</ojp:Text>
</ojp:PlannedQuay>
<ojp:EstimatedQuay>
<ojp:Text xml:lang="de">5</ojp:Text> <!-- Refinement: new Quay -->
</ojp:EstimatedQuay>
<ojp:Text xml:lang="de">5</ojp:Text>
<!-- Refinement: new Quay -->
</ojp:EstimatedQuay>
<ojp:ServiceDeparture>
<ojp:TimetabledTime>2020-09-30T10:03:00Z</ojp:TimetabledTime>
<ojp:EstimatedTimeHigh>2020-09-30T10:06:00Z</ojp:EstimatedTimeHigh> <!-- Refinement: Delay -->
<ojp:EstimatedTimeHigh>2020-09-30T10:06:00Z</ojp:EstimatedTimeHigh>
<!-- Refinement: Delay -->
</ojp:ServiceDeparture>
<ojp:Order>1</ojp:Order>
</ojp:LegBoard>
@@ -109,7 +112,8 @@
</ojp:TimedLeg>
</ojp:Leg>
<ojp:Leg>
<ojp:Id>2</ojp:Id> <!-- Refinement: No change to this leg -->
<ojp:Id>2</ojp:Id>
<!-- Refinement: No change to this leg -->
<ojp:TransferLeg>
<ojp:TransferMode>walk</ojp:TransferMode>
<ojp:LegStart>
@@ -130,25 +134,28 @@
<ojp:Duration>PT3M</ojp:Duration>
</ojp:TransferLeg>
</ojp:Leg>
<ojp:Leg> <!-- Refinement: Updated leg -->
<ojp:Leg>
<!-- Refinement: Updated leg -->
<ojp:Id>3</ojp:Id>
<ojp:ContinuousLeg>
<ojp:LegStart>
<ojp:GeoPosition>
<siri:Longitude>47.042666496</siri:Longitude>
<siri:Latitude>8.306332108</siri:Latitude>
</ojp:GeoPosition>
</ojp:GeoPosition>
<ojp:Name>
<ojp:Text>Taxiplatz Luzern</ojp:Text>
</ojp:Name>
</ojp:LegStart>
<ojp:LegEnd>
<ojp:GeoPosition>
<siri:Longitude>47.06</siri:Longitude>
<siri:Latitude >8.31</siri:Latitude> <!-- Refinment: changed location: walk leg now needed to reach destination. Not done by refinement. -->
<siri:Latitude>8.31</siri:Latitude>
<!-- Refinment: changed location: walk leg now needed to reach destination. Not done by refinement. -->
</ojp:GeoPosition>
<ojp:Name>
<ojp:Text>New destination</ojp:Text> <!-- Refinment: changed location: walk leg now needed to reach destination -->
<ojp:Text>New destination</ojp:Text>
<!-- Refinment: changed location: walk leg now needed to reach destination -->
</ojp:Name>
</ojp:LegEnd>
<ojp:Service>
@@ -164,11 +171,12 @@
</ojp:BookingArrangement>
</ojp:BookingArrangements>
</ojp:Service>
<ojp:Duration>PT11M</ojp:Duration> <!-- Refinement: New time -->
<ojp:Duration>PT11M</ojp:Duration>
<!-- Refinement: New time -->
</ojp:ContinuousLeg>
</ojp:Leg>
</ojp:Leg>
</ojp:Trip>
</ojp:TripResult>
</ojp:TripResult>
</ojp:OJPTripRefineDelivery>
</siri:ServiceDelivery>
</siri:OJPResponse>