If I use this query in Overpass

area[name="Squirrel Hill"];
  ['access' !~ 'no'];

then this way (OSM ID 11947323) is not in the result set. However, if this is my query:

area[name="Squirrel Hill"];

The way shows up as expected in the output.

Here you can see that the previously mentioned way does not have the access=no tag. screenshot showing that Consentino Drive does not have the access = no tag, only the access = unknown tag

What is causing this? Is the unknown tag somehow a subset of the no tag?

1 Answer 1


The filter ['access' !~ 'no']; checks that the tag value for the key access does not match the regular expression "no".

As the string "unknown" contains "no" somewhere in the middle, your way is being filtered out.

Note that regular expressions match anywhere inside a string, unless you explicitly use "^no$" to mark the start and end of a string.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.