Here's a refined Overpass QL query prompt for OpenStreetMap (OSM) that expands on your starting point. This query searches for:
- Drinking water: Nodes tagged with
amenity=drinking_water (e.g., public fountains or taps).
- Streams: Ways tagged with
waterway=stream (e.g., small flowing water bodies).
- Springs: Nodes or ways tagged with
natural=spring (e.g., natural water sources).
This combines the elements into a single query using a union, making it more comprehensive. You can use this directly in an OSM Overpass API endpoint (like overpass-turbo.eu) by replacing {{bbox}} with your desired bounding box coordinates (e.g., "51.0,13.0,52.0,14.0" for a latitude/longitude box).
Full Query Prompt:
(
// Search for drinking water nodes
node[amenity=drinking_water]({{bbox}});
// Search for spring nodes
node[natural=spring]({{bbox}});
// Search for spring ways (in case springs are mapped as lines)
way[natural=spring]({{bbox}});
// Search for stream ways
way[waterway=stream]({{bbox}});
)
out body; // Outputs the results with full details (you can change to 'out;' for minimal output)
How to Use This:
-
Replace {{bbox}}: This is a placeholder for the bounding box. For example:
- If you're searching a specific area, use coordinates like
(51.0,13.0,52.0,14.0).
- You can get a bounding box from tools like overpass-turbo.eu by drawing a map area.
-
Run the Query:
- Go to overpass-turbo.eu.
- Paste the query into the query editor.
- Click "Run" to execute it.
- The results will show on the map and in a data table.
-
Customizations:
- If you want to limit the output (e.g., only certain attributes), you can modify the
out body; line. For example:
out;: Minimal output (just IDs).
out geom;: Includes geometry (coordinates).
- If you need to add more tags (e.g., for rivers or other water features), you could extend the query, like adding
way[waterway=river]({{bbox}});.
This query is efficient and should return relevant results for drinking water, streams, and springs in the specified area. If you need further adjustments, let me know!