diff --git a/OsmAnd-java/src/main/java/net/osmand/router/BinaryRoutePlanner.java b/OsmAnd-java/src/main/java/net/osmand/router/BinaryRoutePlanner.java index ebfe18940c..dabefe81b3 100644 --- a/OsmAnd-java/src/main/java/net/osmand/router/BinaryRoutePlanner.java +++ b/OsmAnd-java/src/main/java/net/osmand/router/BinaryRoutePlanner.java @@ -533,16 +533,19 @@ public class BinaryRoutePlanner { long fid = to.getRoad().getId(); for (int i = 0; i < from.getRoad().getRestrictionLength(); i++) { long id = from.getRoad().getRestrictionId(i); + int tp = from.getRoad().getRestrictionType(i); if (fid == id) { - int tp = from.getRoad().getRestrictionType(i); - if (tp == MapRenderingTypes.RESTRICTION_NO_LEFT_TURN || - tp == MapRenderingTypes.RESTRICTION_NO_RIGHT_TURN || - tp == MapRenderingTypes.RESTRICTION_NO_STRAIGHT_ON || - tp == MapRenderingTypes.RESTRICTION_NO_U_TURN) { + if (tp == MapRenderingTypes.RESTRICTION_NO_LEFT_TURN + || tp == MapRenderingTypes.RESTRICTION_NO_RIGHT_TURN + || tp == MapRenderingTypes.RESTRICTION_NO_STRAIGHT_ON + || tp == MapRenderingTypes.RESTRICTION_NO_U_TURN) { return false; } break; } + if (tp == MapRenderingTypes.RESTRICTION_ONLY_STRAIGHT_ON) { + return false; + } } } return true;