Split determining which turns to merge into a separate function

This commit is contained in:
Saikrishna Arcot 2014-11-23 13:28:21 -05:00
parent 534d11d544
commit 1ebad93158

View file

@ -390,6 +390,10 @@ public class RouteResultPreparation {
} }
} }
determineTurnsToMerge(leftside, result);
}
private void determineTurnsToMerge(boolean leftside, List<RouteSegmentResult> result) {
for (int i = result.size() - 2; i >= 0; i--) { for (int i = result.size() - 2; i >= 0; i--) {
RouteSegmentResult currentSegment = result.get(i); RouteSegmentResult currentSegment = result.get(i);
RouteSegmentResult nextSegment = null; RouteSegmentResult nextSegment = null;