0

I'm using the following query to try to get all house numbers and streets of a city with coordinates. The query gives my zero results. What I'm doing wrong?

[out:csv(::lat, ::lon, "addr:street", "addr:housenumber"; true; ",")];
area[name="Bolzano"]->.searchArea;
(
  node(area.searchArea)["addr:housenumber"]["addr:street"];
);
out center;

1 Answer 1

3

The main issue was about not using geocoding to search the area.

Try with the following :

[out:csv(::lat, ::lon, "addr:street", "addr:housenumber"; true; ",")];
// fetch area "Bolzano" to search in
{{geocodeArea:Bolzano}}->.searchArea;
(
  node(area.searchArea)["addr:housenumber"]["addr:street"];
);
out center;

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.