Fix turn-lanes test
This commit is contained in:
parent
e5d4d3df9a
commit
602154b629
2 changed files with 6 additions and 5 deletions
|
@ -650,7 +650,8 @@ public class RouteResultPreparation {
|
|||
String turnLanes = getTurnLanesString(prevSegm);
|
||||
int[] lanesArray ;
|
||||
if (turnLanes == null) {
|
||||
if(prevSegm.getTurnType() != null && prevSegm.getTurnType().getLanes() != null) {
|
||||
if(prevSegm.getTurnType() != null && prevSegm.getTurnType().getLanes() != null
|
||||
&& prevSegm.getDistance() < 100) {
|
||||
int[] lns = prevSegm.getTurnType().getLanes();
|
||||
TIntArrayList lst = new TIntArrayList();
|
||||
for(int i = 0; i < lns.length; i++) {
|
||||
|
@ -1031,7 +1032,6 @@ public class RouteResultPreparation {
|
|||
for (int i = 0; i < splitLaneOptions.length; i++) {
|
||||
String[] laneOptions = splitLaneOptions[i].split(";");
|
||||
boolean isTertiaryTurn = false;
|
||||
|
||||
for (int j = 0; j < laneOptions.length; j++) {
|
||||
int turn;
|
||||
if (laneOptions[j].equals("none") || laneOptions[j].equals("through")) {
|
||||
|
@ -1052,7 +1052,8 @@ public class RouteResultPreparation {
|
|||
turn = TurnType.TU;
|
||||
} else {
|
||||
// Unknown string
|
||||
continue;
|
||||
turn = TurnType.C;
|
||||
// continue;
|
||||
}
|
||||
|
||||
final int primary = TurnType.getPrimaryTurn(lanes[i]);
|
||||
|
|
|
@ -307,8 +307,8 @@
|
|||
"longitude": 35.47155582904816
|
||||
},
|
||||
"expectedResults": {
|
||||
"102447": "TL|+C",
|
||||
"102992": "+C|+C|TR"
|
||||
"102992": "C|+C|TR",
|
||||
"102447": "TL|+C"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue