Applying a overpass-turbo request to a country

hello dear experts,

i want to apply the following request to the area of a country - let us say

a. to switzerland or

b. Luxembourg

[out:csv(::id,::type,::lon,::lat,amenity,name,"addr:postcode","addr:city","addr:street","addr:housenumber","contact:website",website,"contact:email")]
[timeout:600];
rel[boundary=administrative][admin_level=6][name="München"] -> .city;
(nwr[amenity=hospital][name](around.city:2000);
nwr[amenity=school][name](around.city:2000);
nwr[amenity=church][name](around.city:2000);
nwr[amenity=childcare][name](around.city:2000);
nwr[amenity=nursing_home][name](around.city:2000););
out center;

how to change this!?

guess i lll have to take the country - iso data to change the request

update:

we need to do some changes in the admin_level… see

[out:csv(::id,::type,::lon,::lat,amenity,name,"addr:postcode","addr:city","addr:street","addr:housenumber","contact:website",website,"contact:email")]
[timeout:600];
rel[boundary=administrative][admin_level=6][name="München"] -> .city;
(nwr[amenity=hospital][name](around.city:2000);
nwr[amenity=school][name](around.city:2000);
nwr[amenity=church][name](around.city:2000);
nwr[amenity=childcare][name](around.city:2000);
nwr[amenity=nursing_home][name](around.city:2000););
out center;

it has to do with the admin_level in the third line.

Zürich’s administrative boundary has admin_level=8 (Switzerland is admin_level=2), so when I replace accordingly the third line with

rel[boundary=administrative][admin_level=8][name="Zürich"] -> .city;

and now i try to apply this on countries like

a. Swizzerland
b. italy
c. Luxembourg

probably - we have to work with the so called admin-levels here too

more updates:

rel[boundary=administrative][admin_level=2][name="Österreich"] -> .city;

awesome - btw. here there might be som inconsitent data included.

Österreich - Austria is a country Wien is a city. -

so it must be probably changed …

1 post - 1 participant

Read full topic


Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/applying-a-overpass-turbo-request-to-a-country/107509