You are not logged in.
- Topics: Active | Unanswered
Announcement
*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
#1 2020-06-19 12:42:55
- andrew_hepting
- New Member
- Registered: 2020-06-19
- Posts: 1
Cafes and restaurants near the water
Hello
I need to query OSM through OverpassTurbo to get all the cafes and restaurants which are located specifically near the water (like coasts, beaches, shores).
I tried the following, but got 0 results:
[out:json][timeout:25];
(
node["amenity"="cafe"]["waterway"="*"]({{bbox}});
node["amenity"="cafe"]["water_place_access"="*"]({{bbox}});
node["amenity"="cafe"]["water_place:access"="*"]({{bbox}});
node["amenity"="cafe"]["beach"="*"]({{bbox}});
node["amenity"="restaurant"]["waterway"="*"]({{bbox}});
node["amenity"="restaurant"]["water_place_access"="*"]({{bbox}});
node["amenity"="restaurant"]["water_place:access"="*"]({{bbox}});
node["amenity"="restaurant"]["beach"="*"]({{bbox}});
);
out body;
>;
out skel qt;Does anyone know how to query this correctly?
Offline
#2 2020-06-19 14:03:29
- ghowen
- Member

- From: Europe
- Registered: 2018-11-25
- Posts: 17
- Website
Re: Cafes and restaurants near the water
You are probably looking for something similar to the example "Highway around schools with inappropriate maxspeed" in here:
https://wiki.openstreetmap.org/wiki/Ove … d_Geometry
You can forget about the maxspeed part, but it shows how to query objects near other objects.
Lead Developer of AnyFinder - the universal POI finder app powered by OpenStreetMap
Offline