Make a fix to ensure the directional lane is used
This commit is contained in:
parent
e1b7f13b5c
commit
984dc80e58
1 changed files with 3 additions and 0 deletions
|
@ -775,6 +775,9 @@ public class RouteResultPreparation {
|
||||||
|
|
||||||
private TurnType attachTurnLanesData(boolean leftSide, RouteSegmentResult prevSegm, TurnType t) {
|
private TurnType attachTurnLanesData(boolean leftSide, RouteSegmentResult prevSegm, TurnType t) {
|
||||||
int lanes = prevSegm.getObject().getLanes();
|
int lanes = prevSegm.getObject().getLanes();
|
||||||
|
if (prevSegm.getObject().getOneway() == 0) {
|
||||||
|
lanes = countLanes(prevSegm, lanes);
|
||||||
|
}
|
||||||
String turnLanes = getTurnLanesString(prevSegm);
|
String turnLanes = getTurnLanesString(prevSegm);
|
||||||
|
|
||||||
if (turnLanes == null) {
|
if (turnLanes == null) {
|
||||||
|
|
Loading…
Reference in a new issue