Questions tagged [overpass-turbo]
a web-based data filtering tool for OpenStreetMap
161 questions
2
votes
3
answers
97
views
How to find parent ways of nodes
I got these
nodes
via
[out:json][timeout:25];
node["addr:street"="慶福街"]
(24.1717,120.8297,24.2129,120.8998);
out geom;
OK, now how shall I use bu to get all the parent ways they ...
3
votes
1
answer
124
views
Why do these two overpass queries produce different results?
I have two queries. They return different results. I want to figure out why WAY 1083939899 is ommited from the top, but not the bottom,
This query (direct link to overpass with query) lacks this ...
1
vote
1
answer
53
views
Extracting inland islands with Overpass Turbo
I'm trying to extract islands that are not in the ocean (eg. in lakes, rivers, etc) using Overpass Turbo. I've tried this:
[out:json][timeout:25];
nwr["place"="island"]["...
0
votes
1
answer
50
views
Overpass query returns unwanted nodes
I try to query all Schools in a specific area.
I use this query:
[out:xml] [timeout:25];
{{geocodeArea:SomeArea}} -> .area_0;
(
nwr["amenity"="school"](area.area_0);
);
(._;&...
2
votes
1
answer
69
views
Overpass API filter Ways that contain Node
I want to find all ways in a specified search area that contain a specific Node in overpass turbo.
To give a precise example, I want to find all place=islet ways in the name=Dalsland region that ...
2
votes
1
answer
79
views
Retrieving all addresses associated to building of OpenStreetMap
I'm trying to download some buildings from Overpass Turbo. Most of the buildings have a unique address which is tagged on the way of the building, but few of them have multiple addresses as a node (...
1
vote
0
answers
48
views
Example of using statement local in OverpassQL
Wiki says: "The statement local converts the given input into the localized representation of OSM data."
But what does "localized representation" mean, and where does it use?
...
1
vote
0
answers
57
views
Getting store level WKTs of big area/airport/multistorey building with Overpass turbo [closed]
I'm trying to extract store-level WKTs of multistorey buildings, airports, or significant areas.
e.g. JFK Airport there are like 100 of stores, I want to get the boundary of each store. I already got ...
0
votes
0
answers
25
views
How can I incorporate tiger:base_name tag into overpass-turbo query?
I want to geocode some addresses and experience problems with the street names, I think.
Let's assume I am looking for the following address
1814 STATE HIGHWAY 131, Massena, NY 13662, USA
then I am ...
0
votes
1
answer
47
views
Putting downloaded OpenStreetMap roads back together with OGR
"From OpenStreetMap let's download all the linesrtings of the streets
that start with 'Junfu' (軍福) in the city of Taichung," I said to
myself with confidence.
OK, I did my Overpass Turbo ...
0
votes
1
answer
70
views
Overpass Turbo : Can we take buildings located within a defined polygon?
Given a closed polygon POLYGON((lon1 lat1, lon2 lat2, ...)), can we take buildings which are located within it. Or can we take buildings based on an area (like district with specific name) in India?
1
vote
1
answer
67
views
Overpass API `count` evaluator is evaluating to 0 when set is not empty
Here is a relatively simple query that demonstrates the issue I'm having with count:
[out:json][timeout:60];
way(50276520)->.bridge;
(
way[natural=water](around.bridge:10);
way[water](around....
1
vote
0
answers
46
views
Compare two tags value in overpass API
I am looking to check if all nodes of a way are near a gpx track.
Therefore, I have valid nodes which is the result of an around query on .item_nodes with the gpx track. And my .item_nodes which are ...
1
vote
0
answers
46
views
How to find areas/relations inside a country, excluding certain places
Some time ago I asked this question to get an idea of how I could look for gated communities in a given country (e.g. Argentina).
Now I would like to find the same, but excluding certain political ...
0
votes
0
answers
49
views
Overpass around query on bridge centers
I have a Gpx track and I want to find the bridges it crosses.
I have try a simple request with my radius and coords:
(
wr["name"]["wikidata"]["man_made"="bridge"...
3
votes
1
answer
110
views
OSM features in Overpass Turbo
I am using this overpass-turbo script to extract water polygons of the Saint Johns River in Northern Florida, but it is consistently excluding the entire portion north of the Buckman Bridge (see ...
0
votes
1
answer
51
views
Find all OpenStreetMap address points in a given area
How can I find ALL OpenStreetMap address points in a given area?
Let's say around Manila, Philippines.
OK, in https://overpass-turbo.eu/ I zoom into Manila. Then I enter addr:housenumber into the ...
0
votes
1
answer
296
views
How to group nodes in Overpass API query that are near other nodes?
My goal is to fetch waste_basket nodes, where any nodes within 50m of other waste_basket nodes are grouped together into one. All other nodes are fetched as-is.
I started attempting to find nodes ...
0
votes
0
answers
22
views
Query overpass for expressway coverage by country
How can I write an query to list all countries and territories [admin_level=2] that drive on the right side, with their official English names, areas, total expressway lengths [highway=motorway] and ...
-1
votes
2
answers
338
views
What is an overpass query to get OSM hiking trails in the US? [closed]
What is an overpass query to get OSM hiking trails in the US? I write "an overpass query" because I imagine that his can be done in multiple ways.
1
vote
1
answer
72
views
Querying for roads, highways, etc. (not including pedestrian paths, park trails, parking lots) on OSM overpass
I am trying to query for just motor roads, highways, streets, residential roads, etc. while filtering out things such as parking lots, pedestrian paths, and park trails on OSM overpass turbo.
...
1
vote
1
answer
361
views
Overpass-turbo query to retrieve polygon river features
I tried to extract the polygon features for the Kuskokwim River in Alaska, since it's a main-stem and wide river and, thus, represented by polygons at larger scales. But no matter what, I cannot get ...
2
votes
1
answer
110
views
Query for areas/relations containing private ways in OSM
I would like to find gated communities in Argentina. Thus far, I have been able to filter the ones which are explicitly tagged as such, i.e. those with the tag residential=gated. This is the query I ...
1
vote
2
answers
285
views
Best way to map Airports, Harbours and Trainstations in Overpass-Turbo
I'm new to Overpass and I am trying to find a convenient way to map all major Airports, Harbours and Trainstations (not necessarily in the same query)
But I also want a kind of overseeable global map ...
1
vote
2
answers
723
views
Getting all node coordinates of ways of one relation with Overpass
With overpass, I use CSV to create individual formatted output.
All ways of a relation are determined. Here is the code:
[out:csv("print1";false)];
(
relation(id:15596842);
way(r);
) -> ....
0
votes
0
answers
249
views
Overpass Turbo: Get single railway line between two cities
Edit: Sorry for the unclear question, here is a new attempt:
Is there a code library to get the gps coordinates along certain tracks? E.g., to get the railway line between Leipzig and Dresden?
0
votes
1
answer
250
views
Openstreetmap: Overpass QL query to get all house numbers and streets of a city with coordinates
I'm using the following query to try to get all house numbers and streets of a city with coordinates. The query gives my zero results. What I'm doing wrong?
[out:csv(::lat, ::lon, "addr:street&...
1
vote
1
answer
591
views
Query geolocation of an address with Overpass API
I would like to find the geolocation (lat/lon) of a given full address using OverpassAPI.
[out:json];
(
node["addr:street"="Hauptstraße"]["addr:housenumber"="1&...
2
votes
0
answers
94
views
How to map all nodes of a Wikidata tag
I am trying to get all the elements of the following Wikidata tag:
https://www.wikidata.org/wiki/Q31074657
As you can see, this tag corresponds to a Wikidata category of type Statements -> Part of, ...
1
vote
1
answer
201
views
How to get all the streets limited to containing a particular text name in Overpass
I would like to get all the streets limited to containing a particular text name, for all "place=city" in a particular country.
I tried:
[out:json][timeout:250];
area[name="Italia"]...
2
votes
1
answer
99
views
around command in overpass turbo not working
I want to create a google currentplace type api using open street map data. I have been trying to use othe around command in overpass ql but it always returns error or 0,0.
[out:json];
(
node["...
1
vote
1
answer
136
views
Overpy processed results into GeoJSON
I am using Overpass to obtain data about street/sidewalk elements, such as buildings locations. I was not able to filter unwanted data by refining my Overpass query, so I am doing this filter in ...
0
votes
1
answer
123
views
Cannot obtain shape image from Overpass Turbo
I wanted to export the graphical outline of a river in OpenStreetMap. I tried using the Overpass Turbo.
This is the script I used:
[out:json][timeout:25];
nwr["name"="Mahaweli"][&...
1
vote
1
answer
75
views
Getting roads which are missing bike lanes using Overpass Turbo
I would like to extract roads which are missing bike lanes so that I can map them with Photo Mapping software. With my query below, I am able to fetch roads which are missing the cycleway tag. ...
1
vote
1
answer
123
views
How to generate a query to capture features within a set distance of a route eg road or river
I am attempting to create a map that shows features along the route of a river to a specified distance using the QuickOSM plug-in for QGIS.
Initially, I thought I could simply run a query using the &...
2
votes
1
answer
155
views
Use overpass turbo to filter for hotels with > X rooms
I try to find all hotels in my area with more than X rooms.
This is my attempt:
[out:json][timeout:25];
// gather results
nwr["tourism"="hotel"]({{bbox}});
(
way["building&...
0
votes
1
answer
167
views
How to extract also a zip code with Overpass turbo?
I use this code in Overpass turbo:
[out:csv(comune, ISTAT, name, highway, ::lat,::lon;false;";")][timeout:600];
//provincia da cui estrarre i dati
area[boundary=administrative]["...
1
vote
2
answers
766
views
Overpass Turbo query for all ocean entities
I'm looking for an overpass turbo query that gives me all (salt) water entities.
Currently, this is my query (using the overpass web interface):
[out:json][timeout:25];
(
node["place"=&...
1
vote
0
answers
98
views
How to set the background colour in Overpass Turbo using MapCSS?
In MapCSS 0.2, there is an option to specify a background colour using the canvas selector. But it doesn't work in Overpass Turbo for some reason:
way(if:is_closed())({{bbox}});
(._;>;);
out meta;
...
0
votes
1
answer
125
views
Retrieve data about a place given its name and bbox
I'm given the following output from the Google Maps API regarding a specific place (Toronto, in this case):
{
"html_attributions": [],
"result": {
"...
0
votes
1
answer
93
views
Getting an error for a polygon using Overpy, Overpass Turbo flashes an error but I cannot see what the problem is
I was wondering if anyone could help. I am running a Python program that has to check a couple of hundred polygons to see how many buildings they contain, 95% are polygons are processed fine and seem ...
1
vote
1
answer
592
views
Overpass Turbo query to fetch data given name and coordinates?
I have a list of tourist attractions, each with the name of the attraction, its address, and its coordinates (lat/long).
How can I query Overpass Turbo to accurately return data about these ...
1
vote
1
answer
1k
views
Select more than one area using Overpass API
There are different ways to define search areas using Overpass API.
For example:
Geocode area
[out:json][timeout:25];
{{geocodeArea:Bonn}};
node[tourism=hotel](area);
out body;
>;
out skel qt;
...
0
votes
1
answer
193
views
Use Overpass API to output different tag counts as CSV
I want to create CSV data with different OpenStreetMap tag counts for selected cities using Overpass API. Unfortunately, the "Counting Objects" section of the Overpass API Documentation is ...
1
vote
2
answers
402
views
Export GeoJSON from overpass-turbo not working when querying administrative boundaries
I'm trying to get some administrative boundaries,and in the map it shows correctly, but when I try to export the result as GeoJSON nothing happens- also no error message or so. Seems that something is ...
0
votes
0
answers
104
views
Districts' names with state names as CSV with Overpass API
I am looking district names of India with state names as CSV format.
I tried to write an overpass query but it is not working. Please let me know what I am doing wrong. Is there any other simple query ...
3
votes
1
answer
810
views
Overpass turbo OSM: how to combine and unite several filters? [duplicate]
I would like to request all service companies in specified area using the Overpass API.
The following request delivers only the result of the first filter node[shop](area); and does not unify with the ...
1
vote
1
answer
186
views
Missing data when querying administrative regions in the Overpass API
I would like to get the administrative regions for Somalia.
I tried two queries:
area["ISO3166-2"~"SO-"];
rel[admin_level=5](area);
out geom;
and:
rel["ISO3166-2"~"...
1
vote
1
answer
208
views
Export just the route within bbox from Overpass Turbo, not the tags / way points?
I'd like to
export just the route from an Overpass Turbo query as GeoJson, and
ideally just within a specified radius of a set of coordinates.
I have the query below, but this exports tags / ...
1
vote
0
answers
102
views
Filtering augmented diffs by type of tag change
I want to find all deletions of a certain tag. I'm trying to do this:
[timeout:500][adiff:"2023-09-15T00:00:00Z","2023-09-18T00:00:00Z"];
node["name:ru"]({{bbox}});
(._;&...