7
votes
Distance between GPS travel route and country border
You can do this using QGIS and OpenStreetMap data, so OpenSource/Open data and free to use. The process includes several steps. Using the online QGIS documentation can help you for the steps. When you ...
6
votes
Accepted
Finding the nearest named highway way id
Overpass API doesn't support a "nearest neighbor"-like query at the moment. While I don't really understand your workaround, you can certainly limit the output to a max of 1 entry:
[out:json]...
5
votes
How to query Overpass API with Postman?
If you want to learn fishing:
Go to https://overpass-turbo.eu/
Then enter the overpass query (QL/XML doesn't matter) that you like to check. Before running the query, open your browser network tab ...
5
votes
Accepted
How extensive is OSM Sidewalk data?
Sidewalk coverage in OSM is far from complete and obviously varies a lot depending on which part of the world you're looking at. However, I suspect that the poor results of your Manhattan query have a ...
5
votes
Distance between GPS travel route and country border
With QGIS you can use the following processing tools:
GPS route as input:
Densify by interval (add vertices every 1 m)
Extract vertices (create a point layer from the vertices)
With country border ...
5
votes
Accepted
How to query relations and visualise it on Overpass turbo
Unfortunately, it's not clear from your description what you mean by "visualise only the relations". Relations are made up of ways and nodes, and ways are made up of nodes. Relations don't ...
5
votes
Accepted
What does either of the appreviations b and u refer to
These are just arbitrary names for sets. Sets contain OSM elements such as nodes, ways and relations. If you don't specify an explicit set name then the default set named _ will be used.
From your ...
4
votes
Accepted
Exporting buildings and their types with Overpass
You need an additional union statement, so that the final result contains the result from both subqueries. Otherwise, your second part of the query will overwrite the results of your first part of ...
4
votes
Accepted
From Overpass Turbo to GeoJSON without map
If you're familiar with the command line:
Download boundaries as JSON (not GeoJSON!) file directly from Overpass API into a local file, via Export --> raw data directly from Overpass API in ...
4
votes
Accepted
Difference in Cycle ways and cycle relation routes in OpenStreetMap data model
No, it doesn't.
A bicycle relation includes all ways that are part of this specific cycle route. A specific relation can represent a certain local/regional/national/international cycle network, for ...
4
votes
Accepted
Getting entrance of building?
You need an area query to find entry=main node inside your stadium way. This doesn't work for every way (it depends on specific Area Creation Rules on the Overpass API server), but your example is ...
4
votes
Accepted
Limiting overpass turbo query by postal_code and country
Overpass API does not support area in area queries. However, you can define two different areas and use both of them as filter criterion in the same statement:
area[postal_code="19300"]->.zip;
...
4
votes
Accepted
Overpass Turbo parse and static error
You just had a typo - gecodeArea >> geocodeArea The rest of the query is fine.
https://i.imgur.com/BgtRBu9.jpg
[out:json][timeout:1000];
//fetch area "Tokyo" to search in
{{...
4
votes
Overpass API - Exclude ferry routes from bicycle query
The = in the function call to add_feature is not a comparison, but rather passing the value of an argument, as opposed to == or >= which are used in queries, and some functions that accept ...
3
votes
Accepted
What is a correct overpass-turbo query for getting all streets in a city?
You can use a regular expression to combine several highway=* queries into a single one.
[out:json];
area[name = "New York"];
(way(area)["highway"~"^(motorway|trunk|primary)$"];>;);
out;
Note: ...
3
votes
Accepted
Query Overpass API with geocodeArea returns error
{{geocodeArea:Oregon}} is syntactic sugar that was invented by overpass turbo (the web frontend).
Overpass API (the backend) doesn't know anything about those shortcuts.
See https://wiki....
3
votes
Accepted
Query to find road paths of area
The spelling of the name "Colac" is not correct. You need to use exactly the same uppercase/lowercase as in the original OSM data.
Also, there's a missing semicolon towards the end of your query, ...
3
votes
Look for all `highway` type `way` in certain area, using the overpass-api directly (not overpass turbo) or osmosis
Backend solution (no API)
I found a solution using just backend scripts without overpass or any other api using osmium instead of osmosis.
Download the extract you want from geofabrik.de (.pbf file) ...
3
votes
There are some OpenStreetMap data that doesn't show when I query it with Overpass. Why does this happen?
Your Overpass API query looks for the traffic_sign=* tag, however node 6786529269 doesn't have this tag. Instead it is tagged as highway=stop. You have to expand your query to look for both tags:
node[...
3
votes
Accepted
Extracting skatepark data as JSON file
Use Overpass Turbo web interface, zoom to your region of interest, click Wizard and enter this string: sport:skate or sport:extreme.
Using double points : instead of equal symbol =, it uses wildcards (...
3
votes
Overpy or Overpass Turbo: How to get nodes by their IDs
I didn't get any answers or hints, nor could I find any examples of doing this (except in Overpass API, which has a slightly different syntax), but by trial and error I discovered the answer (which is ...
3
votes
How to display in QGIS a mountain saddle with a symbol which indicates the orientation of the saddle?
You need the information on the orientation of the saddle clockwise in degree from North/0° as an attribute. Then use data defined override on the rotation of the symbol, handing it the field ...
2
votes
How to query Overpass API with Postman?
At overpass-turbo.eu build your query, then simply go to Export -> Query -> OverpassQL for obtaining an Overpass API URL for your query.
Unfortunately I have absolutely no idea what Postman is.
2
votes
Accepted
Overpass get Street in City
Navigate to overpass-turbo.eu and enter the following the wizard popup:
highway=* and name=Holteistraße in Berlin
This will create the following query, which includes (area.searchArea) as a ...
2
votes
Extracting cities in Belgium using overpass API?
According to https://www.openstreetmap.org/relation/52411 you need to use area[name="België / Belgique / Belgien"], and not as you stated area[name="België - Belgique - Belgien"] (note the typo, the ...
2
votes
Extract polygons using Overpass Turbo
The main use case for areas in Overpass API is to restrict further queries to certain polygons defined by some ways or relations. Your use case looks quite different: you're interested in ways / ...
2
votes
Accepted
How to work with overpass ways in Python?
Ways are composed of nodes as you surmise. You can get geometry by modifying the out call (see the documentation):
bb gives bounding box
center gives a centroid
geom gives ful geometry (probably the ...
2
votes
Why does the order of queries matter in overpass?
The data has changed since then, but if you run the following query now, you get 64 with brand first and 65 with name first. The reason for that is that only 64 places have the brand and name tag, and ...
2
votes
Accepted
Overpass query: 2 almost identical search queries - one works, one not. Why?
After removing the "wikidata" in the 2nd query it returns results. Previously it was returning empty results. This should be because there are no elements with wikidata tag in the second area.
The ...
2
votes
Query OSM nodes not member of way in Overpass
Here is a different approach which I based on the Orphaned nodes example:
[bbox:{{bbox}}];
rel; > -> .r;
way; > -> .w;
(( node["traffic_calming=bump"]; - node.r; ); - node.w; );
out meta;...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
overpass-turbo × 111overpass-api × 84
openstreetmap × 68
geojson × 11
query × 7
qgis × 5
python × 5
nominatim × 5
osmosis × 3
polygon × 2
export × 2
area × 2
osmnx × 2
postgis × 1
r × 1
postgresql × 1
qgis-3 × 1
arcgis-pro × 1
gps × 1
kml × 1
merge × 1
intersection × 1
java × 1
software-recommendations × 1
google-earth × 1