Make a fix to ensure the directional lane is used

This commit is contained in:
Saikrishna Arcot 2014-11-19 16:02:35 -05:00
parent e1b7f13b5c
commit 984dc80e58

View file

@ -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) {