User:UsefulRabbit/Overpass query collection

From OpenStreetMap Wiki
Jump to navigation Jump to search

Buildings that lack a useful address in an area

try it yourself in overpass-turbo
// Query for all buildings that lack a useful address in the Eugene city limits.

area["wikidata"="Q171224"]->.eugene_city_limits;

(
wr
  (area.eugene_city_limits)
  ["building"~"yes|residential|house|terrace|detached|apartments|shop|mall|market|supermarket"] // Building types that typically have addresses
  [!noaddress] // Exclude known false positives (buildings that don't have an address)
  (if: !t["addr:state"] || !t["addr:city"] || !t["addr:street"] || !t["addr:housenumber"]); // Find buildings missing typical addressing information 
);
(._;>;);
out meta;