1.1 KiB
1.1 KiB
Example Overpass Queries for Prototyping
Do not use public Overpass instances for production-scale app traffic. These queries are for small-area prototyping only.
Drinking water in a bounding box
[out:json][timeout:25];
(
node["amenity"="drinking_water"]({{bbox}});
way["amenity"="drinking_water"]({{bbox}});
relation["amenity"="drinking_water"]({{bbox}});
node["drinking_water"="yes"]({{bbox}});
node["natural"="spring"]({{bbox}});
);
out center tags;
Bike shops and repair stations
[out:json][timeout:25];
(
node["shop"="bicycle"]({{bbox}});
way["shop"="bicycle"]({{bbox}});
node["amenity"="bicycle_repair_station"]({{bbox}});
node["service:bicycle:repair"="yes"]({{bbox}});
);
out center tags;
Campsites, huts, and shelters
[out:json][timeout:25];
(
node["tourism"="camp_site"]({{bbox}});
way["tourism"="camp_site"]({{bbox}});
node["tourism"="wilderness_hut"]({{bbox}});
way["tourism"="wilderness_hut"]({{bbox}});
node["amenity"="shelter"]({{bbox}});
way["amenity"="shelter"]({{bbox}});
);
out center tags;