write me an overpass turbo query to show me houses only with "36" addresses in…
- User
write me an overpass turbo query to show me houses only with "36" addresses in Manchester NH
- Assistant
Overpass Turbo is a powerful tool for querying with the OpenStreetMap (OSM) data. The specific language used for querying is Overpass QL.
Here's a query that will help you find houses with the address "36" in Manchester, NH using Overpass QL:
ql[out:json][timeout:25]; // Define a bounding box around Manchester, NH for the query {{geocodeArea:Manchester, NH}}->.searchArea; // Find nodes and ways (houses) with the house number "36" ( node["addr:housenumber"="36"](area.searchArea); way["addr:housenumber"="36"](area.searchArea); ); // Return results out body; >; out skel qt;To use this:
- Open https://overpass-turbo.eu/.
- Copy and paste the above query into the query window.
- Click the "Run" button (the button with the play icon) to execute the query.
This will search within the defined area for any nodes or ways that have the house number "36" and display those on the map. Note that the part of the query uses Overpass Turbo's built-in geocoding to find the area for Manchester, NH.
- User
that was an invalid query
- Assistant
I apologize for the oversight. Let's correct and simplify the query to ensure it works properly. We will directly specify Manchester, NH, bounding coordinates, which should make the query valid.
Here's an improved version of the Overpass Turbo query for finding houses with the address "36" in Manchester, NH:
ql[out:json][timeout:25]; // Define the bounding box for Manchester, NH, obtained from OpenStreetMap geographic data ( node["addr:housenumber"="36"](42.9388,-71.5073,43.0438,-71.4002); way["addr:housenumber"="36"](42.9388,-71.5073,43.0438,-71.4002); ); // Return results out body; >; out skel qt;To use this fixed query:
- Open https://overpass-turbo.eu/.
- Copy and paste the above query into the query window.
- Click the "Run" button (the button with the play icon) to execute the query.
This query will search for any nodes or ways with the house number "36" within the specified geographic coordinates that define the approximate area of Manchester, NH. Adjust the bounding box coordinates if necessary for more precise coverage.