Skip to content

Commit 44a815c

Browse files
committed
Fix order of egress legs
1 parent e87b147 commit 44a815c

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

application/src/main/java/org/opentripplanner/routing/algorithm/raptoradapter/router/street/ViaAccessEgressRouter.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,9 @@ private Collection<NearbyStop> findStreetEgresses(
172172
GraphPathFinder graphPathFinder
173173
) {
174174
var nearbyStops = new ArrayList<>(stopsFromFirstLocation);
175-
var paths = directRouter.findArriveByPaths(
176-
linkingContext,
177-
graphPathFinder,
178-
directRequest,
179-
true,
180-
true
181-
);
175+
var paths = directRouter
176+
.findArriveByPaths(linkingContext, graphPathFinder, directRequest, true, true)
177+
.reversed();
182178
var vias = accessEgressRequest.listViaLocationsWithCoordinates();
183179
var durationLeft = durationLimit;
184180
var i = 0;

0 commit comments

Comments
 (0)