How to search for restaurants near by an address?
Here I asked for a near by search for restaurants around a node or town: https://help.openstreetmap.org/questions/80912/search-for-restaurants-around-a-distance
Now it would be helpful to perform the same search for an concrete address.
E. g. let's say all restaurants around a disctance of 1000 Meters "Platz der Republik 1, Berlin" (maybe also with zip code)
Would it be possible to build an address-replaceable query for that task?
I'm new to openstreetmap and it's hard for me to understand the overpass APIAPI
This wizard input text from the [wiki][1] gave me the hint: `amenity=restaurant around "1600 Pennsylvania Ave NW, Washington"`
So I got now this, successfully tested with two different addresses that I know:
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“amenity=restaurant around "Bindlacher Straße 10 95448 Bayreuth"”
*/
[out:json][timeout:25];
// adjust the search radius (in meters) here
{{radius=100}}
// gather results
(
// query part for: “amenity=restaurant”
node["amenity"="restaurant"](around:{{radius}},{{geocodeCoords:Platz der Republik 1 10557 Berlin}});
way["amenity"="restaurant"](around:{{radius}},{{geocodeCoords:Platz der Republik 1 10557 Berlin}});
relation["amenity"="restaurant"](around:{{radius}},{{geocodeCoords:Platz der Republik 1 10557 Berlin}});
);
// print results
out body;
>;
out skel qt;
But may you review that, please and tell me if it's correct for what I need? It seems to, but I'm not 100 % sure about that.
[1]: https://wiki.openstreetmap.org/wiki/Overpass_turbo/Wizard#Location_Filters