tyrasd / overpass-wizard

:dizzy: Human friendly way to generate Overpass API queries
33 stars 6 forks source link

add support for "key is missing", for example by "!key" or "key not present" #5

Closed matkoniecz closed 6 years ago

matkoniecz commented 6 years ago

At least for me searching for cases where some key or keys are nor present is a typical task. Currently it is impossible to generate such queries with wizard and in addition syntax for achieving that is quite cumbersome.


https://github.com/westnordost/StreetComplete is supporting first version in its internal equivalent of overpass-wizard

see for example https://github.com/westnordost/StreetComplete/blob/master/app/src/main/java/de/westnordost/streetcomplete/quests/recycling/AddRecyclingType.java#L21

where query is

nodes, ways, relations with amenity = recycling and !recycling_type"

!recycling type should be translated to

"recycling_type"!~".*"

tyrasd commented 6 years ago

isn't recycling_type != * (Matches objects that do not have a tag with the key.) what you're looking for? Example: http://overpass-turbo.eu/s/sar

matkoniecz commented 6 years ago

Yes, thanks and sorry for noise