Skip to content

Commit

Permalink
ignore locked=yes when there is [access]=yes
Browse files Browse the repository at this point in the history
  • Loading branch information
caspg committed Jun 10, 2024
1 parent c4c14d6 commit d8eae94
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ public void handleWayTags(int edgeId, EdgeIntAccess edgeIntAccess, ReaderWay way
public boolean isBarrier(ReaderNode node) {
// note that this method will be only called for certain nodes as defined by OSMReader!
String firstValue = node.getFirstValue(restrictionKeys);
if (restrictedValues.contains(firstValue) || node.hasTag("locked", "yes"))

if (restrictedValues.contains(firstValue))
return true;
else if (node.hasTag("locked", "yes") && !intendedValues.contains(firstValue))
return true;
else if (intendedValues.contains(firstValue))
return false;
Expand Down

0 comments on commit d8eae94

Please sign in to comment.