[GIS] Filtering Overpass-API by country

filteropenstreetmapoverpass-apisearch

Does anyone know how to perform a overpass-api request like this?

"Show me all banks in Germany"?

I could just show all 'amenity = bank' in a specific bounding-box. But Germany (or most of all countries) doesn't fit very well in such a bbox.

Is there any way to do this? Have you an example? Server performance or runtime is secondary since we could host a own server or something like that 🙂

Best Answer

Using Overpass turbo, the syntax is:

area["name"="Nordrhein-Westfalen"]->.boundaryarea;
(
nwr(area.boundaryarea)[amenity=bank];
);
out meta;

nwr is a short for node-way-relation

Related Question