From 1ebad93158441c47ba7f83dad56bcb4c1705e553 Mon Sep 17 00:00:00 2001 From: Saikrishna Arcot Date: Sun, 23 Nov 2014 13:28:21 -0500 Subject: [PATCH] Split determining which turns to merge into a separate function --- OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java b/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java index 41d8aea109..19963392d9 100644 --- a/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java +++ b/OsmAnd-java/src/net/osmand/router/RouteResultPreparation.java @@ -390,6 +390,10 @@ public class RouteResultPreparation { } } + determineTurnsToMerge(leftside, result); + } + + private void determineTurnsToMerge(boolean leftside, List result) { for (int i = result.size() - 2; i >= 0; i--) { RouteSegmentResult currentSegment = result.get(i); RouteSegmentResult nextSegment = null;