From e5bd6cb065ab46cdbf177773f7a90f8a8df2c67b Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 16 May 2020 16:49:17 +0200 Subject: [PATCH] Update transport rotues --- .../src/main/java/net/osmand/router/TransportRoutePlanner.java | 1 + 1 file changed, 1 insertion(+) diff --git a/OsmAnd-java/src/main/java/net/osmand/router/TransportRoutePlanner.java b/OsmAnd-java/src/main/java/net/osmand/router/TransportRoutePlanner.java index 2bf64242ae..b4d59be05f 100644 --- a/OsmAnd-java/src/main/java/net/osmand/router/TransportRoutePlanner.java +++ b/OsmAnd-java/src/main/java/net/osmand/router/TransportRoutePlanner.java @@ -982,6 +982,7 @@ public class TransportRoutePlanner { } } else if(lastSegment != null) { + sortedSegments.add(lastSegment); while(!mergedSegments.isEmpty()) { List first = sortedSegments.get(0); List add = findAndDeleteMinDistance(first.get(0).getLocation(), mergedSegments, false);