Skip to content

Commit 8ca066a

Browse files
committed
Fix order of egress legs
1 parent 04274c3 commit 8ca066a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

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
@@ -177,13 +177,9 @@ private Collection<NearbyStop> findStreetEgresses(
177177
GraphPathFinder graphPathFinder
178178
) {
179179
var nearbyStops = new ArrayList<>(stopsFromFirstLocation);
180-
var paths = directRouter.findArriveByPaths(
181-
linkingContext,
182-
graphPathFinder,
183-
directRequest,
184-
true,
185-
true
186-
);
180+
var paths = directRouter
181+
.findArriveByPaths(linkingContext, graphPathFinder, directRequest, true, true)
182+
.reversed();
187183
var vias = accessEgressRequest.listViaLocationsWithCoordinates();
188184
var durationLeft = durationLimit;
189185
var i = 0;

0 commit comments

Comments
 (0)