add condition for 0 planRoadDirection

This commit is contained in:
Kseniia 2021-01-07 21:28:35 +02:00
parent 6e584b4913
commit 371e60b3af

View file

@ -543,6 +543,10 @@ public class BinaryRoutePlanner {
} }
break; break;
} }
if (from.getRoad().getRestrictionType(i) == MapRenderingTypes.RESTRICTION_ONLY_STRAIGHT_ON) {
return false;
}
} }
} }
return true; return true;