Overpass-turbo-request: how to type this correct?

good day daer experts,

i want to gather all the banks in Germany - is this doable with OSM!?


[out:csv(::id,::type,"name","addr:postcode","addr:city",
"addr:street","addr:housenumber","website","contact:email=*")][timeout:2600];
area["ISO3166-1"="Deutschland"]->.a;
(
  node(area.a)[bank];
  way(area.a)[bank];
  rel(area.a)[bank];
);
out;

update: well i mused some time over the request - and i think that i should go like so:


[out:csv(::id,::type,"name","addr:postcode","addr:city","addr:street","addr:housenumber","website","contact:email=*")][timeout:600];
area["ISO3166-1"="Deutschland"]->.a;
( node(area.a)[office=financial];
  way(area.a)[office=financial];
  rel(area.a)[office=financial];);
out;

well - with the above mentioned correction - we ensure that the query properly selects nodes, ways, and relations with the “financial” office tag within the specified area.

try it like this:

[out:csv(::id,::type,"name","addr:postcode","addr:city","addr:street","addr:housenumber","website","contact:email")][timeout:120];
area["ISO3166-1"="DE"];
nwr(area)[office=financial];
out;
1 Like

This will not give you alle the banks but rather something else.

[amenity=bank]

is probably what you are looking for?

2 Likes