Skip to content

Commit

Permalink
issue#572: filter out on_red turn restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
abrensch committed Jul 2, 2023
1 parent cada37b commit 1a2bb19
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public boolean isPositive() {

public boolean isValid() {
boolean valid = fromLon != 0 && toLon != 0 && (restriction.startsWith("only_") || restriction.startsWith("no_"));
valid = valid && restriction.indexOf("on_red") < 0; // filter out on-red restrictions
if ((!valid) || badWayMatch || !(checkGeometry())) {
synchronized (badTRs) {
badTRs.add(((long) viaLon) << 32 | viaLat);
Expand Down

0 comments on commit 1a2bb19

Please sign in to comment.