How to run a certain request to openstreetmap - regarding the amenity

Hello dear all

Is that correct to do a request to the osm API like so if we need to get information from the overpass turbo for amenity

Senior care
Seniorenheim ( in Germany )

Can we run like so

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

Is that possible

What is the correct amenity ?
How to spell - how to do that?

https://wiki.openstreetmap.org/wiki/DE:Tag:amenity%3Dnursing_home

Hi there
Many thanks for the reply.
Awesome.

Note that according to the wiki the tagging has been partially replaced with social_facility=nursing_home in combination with social_facility:for=senior

So you will need to query both sets and combine them

1 Like

… and possibly some others - “social facility” tagging is a bit of a mess. I ended up using this list. I’d suggest you have a look at the usage of those values wherever you are and use that to decide what you are interested in.

Adding to what others have told you (social_facility=nursing_home), you should be aware that “nursing home” is not the translation of “Seniorenheim”, it translates to “Pflegeheim”.

There are various other tags for “Seniorenheim”, because there are different kinds of these and our tags are distinguishing some of them on the “main” level.
Other tags that might be interesting to find relevant facilities:
https://wiki.openstreetmap.org/wiki/Tag:social_facility:for%3Dsenior
(combined with group_home and assisted_living social facilities, and possibly others).

https://wiki.openstreetmap.org/wiki/Tag:amenity%3Dretirement_home

dear Dieter

many thanks for the reply. Happy to hear from you
Thanks for steppin up the plate - and for the clearification. In fact i have a few questions left here.

Dieter you reply here the following:

Adding to what others have told you (social_facility=nursing_home), you should be aware that “nursing home” is not the translation of “Seniorenheim”, it translates to “Pflegeheim”.

really - is this really a term that we can use: social_facility=nursing_home


[out:csv(::id,::type,“name”,“addr:postcode”,“addr:city”,“addr:street”,“addr:housenumber”,“website”," contact:email=*")][timeout:600];
area[“ISO3166-1”=“CH”]->.a;
( node(area.a)[amenity=social_facility=nursing_home];
way(area.a)[amenity=social_facility=nursing_home];
rel(area.a)[amenity=social_facility=nursing_home];);
out;

well i will try it out - if it is working?!

In advance many many thanks for your awesome support

i come back and report all i find out here.

There are various other tags for “Seniorenheim”, because there are different kinds of these and our tags are distinguishing some of them on the “main” level.
Other tags that might be interesting to find relevant facilities:
Tag:social_facility:for=senior - OpenStreetMap Wiki
(combined with group_home and assisted_living social facilities, and possibly others).

many thanks for your generous help and awesome support.

greetings
say :wink:

Hello daer Dieter, hello dear All,

well i did a test - i made it

well this code below does not work at all:

see this one:


[out:csv(::id,::type,“name”,“addr:postcode”,“addr:city”,“addr:street”,“addr:housenumber”,“website”," contact:email=*")][timeout:600];
area[“ISO3166-1”=“CH”]->.a;
( node(area.a)[amenity=social_facility=nursing_home];
way(area.a)[amenity=social_facility=nursing_home];
rel(area.a)[amenity=social_facility=nursing_home];);
out;

i guess: so: this here: amenity=social_facility=nursing_home
is not working at all

we cannot combine these two terms
a. social_facility
b. nursing_home

for me it does not work at all

see what comes out

Während des Ausführung der Overpass Query ist ein Fehler aufgetreten! Die Overpass API gab folgende Meldung zurück:
Error: line 2: parse error: CSV format specification expected - '“' found.
Error: line 2: parse error: ',', ';', or ')' expected - '“' found.
Error: line 2: parse error: CSV format specification expected - '“' found.
Error: line 2: parse error: ',', ';', or ')' expected - '“' found.
Error: line 2: parse error: CSV format specification expected - '“' found.
Error: line 2: parse error: ',', ';', or ')' expected - '“' found.
Error: line 2: parse error: CSV format specification expected - '“' found.
Error: line 2: parse error: ',', ';', or ')' expected - '“' found.
Error: line 2: parse error: CSV format specification expected - '“' found.
Error: line 2: parse error: ',', ';', or ')' expected - '“' found.
Error: line 2: parse error: CSV format specification expected - '“' found.
Error: line 2: parse error: ',', ';', or ')' expected - '“' found.
Error: line 2: parse error: Key expected - '“' found.
Error: line 2: parse error: '!', '~', '=', '!=', or ']' expected - '“' found.
Error: line 2: parse error: Value expected - '“' found.
Error: line 2: parse error: ']' expected - '“' found.
Error: line 3: parse error: An empty query is not allowed
Error: line 4: parse error: ']' expected - '=' found.
Error: line 5: parse error: ']' expected - '=' found.
Error: line 6: parse error: ']' expected - '=' found.

did i do something worng?

plz set me straight

thanks in advance
greetings

That is not surprising, as you have two equals signs in the expression.

What people have been saying above is that you need to combine results for various key-value pairs:
amenity=nursing_home
social_facility=nursing_home
and possibly others that are used for similar facilities.

2 Likes

hi there

many thanks for the hint

That is not surprising, as you have two equals signs in the expression.

What people have been saying above is that you need to combine results for various key-value pairs:
amenity=nursing_home
social_facility=nursing_home
and possibly others that are used for similar facilities.

awesome - you have helped me alot

greetings
tagTheWorld