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 ...
  • 54.8k
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 ...
  • 51
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 ...
  • 219
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 ...
  • 60.8k
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 ...
  • 4,150
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 ...
  • 5,904
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,150
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,150
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 ...
  • 5,904
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,150
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,150
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 {{...
  • 1,443
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,384
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, ...
  • 4,150
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....
  • 4,150
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: ...
  • 4,150
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) ...
  • 141
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[...
  • 5,904
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 (...
  • 54.8k
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 ...
  • 14.6k
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 / ...
  • 4,150
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.
  • 5,904
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 ...
  • 4,150
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 ...
  • 8,262
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;...
  • 2,255
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 ...
  • 33.4k
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 ...
  • 372
2 votes
Accepted

Received corrupt data from Overpass (incomplete polygon) with Overpass API Python wrapper

Your query has a syntax error, namely an extra semicolon in the following line, which needs to be removed. relation[landuse=forest](area.searchArea);; Before trying any queries in Python, better ...
  • 4,150
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 ...
  • 4,150
2 votes
Accepted

Overpass API: Query points not inside polygons

What you're trying to do is currently not supported (as of release 0.7.56). Reason being that the residential areas you want to use as an area don't have a name= tag. Hence, there's no corresponding ...
  • 4,150

Only top scored, non community-wiki answers of a minimum length are eligible