Create an overpassql query to find pubs that are close to a pedestrian zone
- User
Create an overpassql query to find pubs that are close to a pedestrian zone
Assistant
Here is an Overpass QL query to find pubs that are close to a pedestrian zone:
/* Find pubs within 50m of a pedestrian area */ ( node["amenity"="pub"](area.searchArea); way["amenity"="pub"](area.searchArea); relation["amenity"="pub"](area.searchArea); ) -> .pubs; ( node["highway"="pedestrian"]["area"="yes"]; way["highway"="pedestrian"]["area"="yes"]; relation["highway"="pedestrian"]["area"="yes"]; ) -> .pedAreas; .pubs within 50m of .pedAreas; out;This query does the following:
- Find all pub nodes, ways and relations in the search area
- Find all pedestrian area nodes, ways and relations
- Select only the pubs that are within 50m of the pedestrian areas
- Output the results
So this would give you a list of pubs that are within 50m of pedestrian zones in the area you searched. Let me know if you have any questions!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.