Skip to content

Commit

Permalink
Lint and update documentation tables
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and ue71603 committed Mar 19, 2023
1 parent d715e03 commit a727e80
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 32 deletions.
40 changes: 20 additions & 20 deletions examples/functions/triprefine/RefinementRequest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -178,7 +178,7 @@
</ojp:ContinuousLeg>
</ojp:Leg>
</ojp:Trip>
</ojp:TripResult>
</ojp:TripResult>
<ojp:TripResponseContext>
<ojp:Operators>
<ojp:Operator>
Expand All @@ -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>
Expand Down
32 changes: 20 additions & 12 deletions examples/functions/triprefine/RefinementResponse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down Expand Up @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand Down

0 comments on commit a727e80

Please sign in to comment.