Split determining which turns to merge into a separate function
This commit is contained in:
parent
534d11d544
commit
1ebad93158
1 changed files with 4 additions and 0 deletions
|
@ -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--) {
|
||||
RouteSegmentResult currentSegment = result.get(i);
|
||||
RouteSegmentResult nextSegment = null;
|
||||
|
|
Loading…
Reference in a new issue