Fix #2725 and tests
This commit is contained in:
parent
f89225b78c
commit
a147b62287
2 changed files with 6 additions and 4 deletions
|
@ -504,7 +504,7 @@ public class RouteResultPreparation {
|
|||
if (currentTurn == null || currentTurn.getLanes() == null) {
|
||||
// skip
|
||||
} else {
|
||||
boolean changed = false;
|
||||
boolean merged = false;
|
||||
if (nextSegment != null) {
|
||||
String hw = currentSegment.getObject().getHighway();
|
||||
double mergeDistance = 200;
|
||||
|
@ -512,10 +512,11 @@ public class RouteResultPreparation {
|
|||
mergeDistance = 400;
|
||||
}
|
||||
if (dist < mergeDistance) {
|
||||
changed = mergeTurnLanes(leftside, currentSegment, nextSegment);
|
||||
mergeTurnLanes(leftside, currentSegment, nextSegment);
|
||||
merged = true;
|
||||
}
|
||||
}
|
||||
if (!changed) {
|
||||
if (!merged) {
|
||||
TurnType tt = currentSegment.getTurnType();
|
||||
inferActiveTurnLanesFromTurn(tt, TurnType.C);
|
||||
}
|
||||
|
|
|
@ -423,7 +423,8 @@
|
|||
"longitude": 35.63232659539227
|
||||
},
|
||||
"expectedResults": {
|
||||
"202493001": "+C,TL|TR"
|
||||
"202493001": "+TL,C|TR",
|
||||
"339767384": "+TL,C"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue