This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

Overpass API: full building address query

0

My bounding box is this: 41.7679,12.2622,41.7732,12.2707

I am trying to extract the full address of all polygons in this bounding box, and at the moment I can only extract the polygons and their ID's.

Any idea on how this query should look like?

// i thought this is how you "constrain" the query in a bounding box
way(41.7679,12.2622,41.7732,12.2707);
((
// Query all buildings
  way[building=yes];
// and remove ...
  - 
// all buildings with a tag that doesn't start with letter 'b'
  way[building=yes][~"^[^b].*$"~"."]; 
); >; );
out;

Any suggestion would be greately appreciated, I couldn't find any sample query to extract the full address of those polygons.

asked 12 Jul '16, 16:19

MarkAllenLU's gravatar image

MarkAllenLU
11112
accept rate: 0%

1

Overpass API is not a geocoder. You might want to look at Nominatim instead for full addresses.

(12 Jul '16, 21:23) mmd