7 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 ...
Tordanik's user avatar
  • 249
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 ...
Babel's user avatar
  • 70.4k
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]...
mmd's user avatar
  • 4,557
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 ...
Hou's user avatar
  • 51
5 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 ...
mmd's user avatar
  • 4,557
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 ...
BERA's user avatar
  • 71.2k
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 ...
mmd's user avatar
  • 4,557
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 ...
scai's user avatar
  • 6,090
5 votes
Accepted

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 ...
Aaron Bramson's user avatar
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 ...
mmd's user avatar
  • 4,557
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 ...
scai's user avatar
  • 6,090
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 ...
mmd's user avatar
  • 4,557
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; ...
mmd's user avatar
  • 4,557
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.stack.imgur.com/WrbJS.jpg [out:json][timeout:1000]; //fetch area "Tokyo" to search in {{...
Nil's user avatar
  • 1,492
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 ...
Elio Diaz's user avatar
  • 3,456
4 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 ...
Erik's user avatar
  • 16.1k
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: ...
mmd's user avatar
  • 4,557
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....
mmd's user avatar
  • 4,557
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, ...
mmd's user avatar
  • 4,557
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) ...
Emeeus's user avatar
  • 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[...
scai's user avatar
  • 6,090
3 votes

How extensive is OSM Sidewalk data?

In general, I think the answer from Tordanik already summarizes the current situation quite well. I just wanted to add some data points and diagrams to support and enrich some of his statements about ...
tyr's user avatar
  • 353
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 (...
Babel's user avatar
  • 70.4k
3 votes
Accepted

Overpass turbo OSM: how to combine and unite several filters?

You need to store the result of your area() call in a named set first. Without a named set, the results are stored in the default set. This default set gets overwritten by your node[shop](area); query....
scai's user avatar
  • 6,090
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.
scai's user avatar
  • 6,090
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 ...
mmd's user avatar
  • 4,557
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 ...
mmd's user avatar
  • 4,557
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 / ...
mmd's user avatar
  • 4,557
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 ...
MappaGnosis's user avatar
  • 33.8k
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 ...
XaC's user avatar
  • 407

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