Questions tagged [overpass-api]

The Overpass API (or OSM3S) is a read-only API that serves up custom selected parts of the OSM map data. It acts as a database over the web: the client sends a query to the API and gets back the data set that corresponds to the query.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

Getting all nodes of route using Overpass API [closed]

Given a route on a map, either represented in GeoJSON or other format, how can I get all the OpenStreetMap nodes of that route?
user avatar
0 votes
0 answers
27 views

Display features OSM buildings

Using Leaflet, I've installed OSMBuildings, yet I'm unable to display buildings features although it's allowed on https://osmbuildings.org/ It seems like there is a latitude and longitude once we ...
user avatar
  • 1
0 votes
1 answer
17 views

Overpass API return different results between Overpass Turbo export and wget

I need to get from OSM all all nodes in the bounding box, all ways referring to any of these nodes, all member nodes of these ways whether these are inside the bounding box or not, all relations that ...
user avatar
  • 471
1 vote
0 answers
18 views

How to get relations filtering by way member attributes with Overpass API?

I need to use Overpass API to get route relations with abandoned railways, that's to say relations with tag route=railway whose way members have tag railway=abandoned. I tried the following request: [...
user avatar
2 votes
2 answers
192 views

OSM Overpass query along track from QGIS

Is there a way to do an Overpass query along a track (from GPX generated vector layer)? I want to get some features on and around a river.
user avatar
  • 21
4 votes
1 answer
121 views

Combining location from Nominatim with Overpass API query using Python

I try to get the geocodes coordinates from the location(nominatim) into the Overpass query. Is there an easy way to do this? import json import requests from geopy.geocoders import Nominatim ...
user avatar
  • 41
1 vote
0 answers
96 views

OSM: Downloading all street names + adress number + coordinates of a city?

For a statistical analysis my company wants me to create an Excel sheet containing every building's adress in a city, like this: City name | area code | street name | house number | longitudinal Coord....
user avatar
0 votes
0 answers
15 views

Using overpass and union statement to retrieve country next to tags

I did this request which is able to provide me all nodes I need: [out:json][timeout:25][bbox:42.410117500000005,2.4872,42.5101175,2.5871999999999997]; ( node[natural=peak](if:t['ele'] > 1400.2);...
user avatar
2 votes
1 answer
34 views

Overpass API - Exclude ferry routes from bicycle query

I am querying the Overpass API using osmdata in R, searching for all ways where bicycle = yes and would like to exclude ferry routes. Below is my code so far and a picture of the map result. As you ...
user avatar
  • 53
0 votes
0 answers
85 views

Error message in QuickOSM when I run a query

I am new to QuickOSM using QGIS. I cannot run a query. Query: ( node ["name"="The Great Western Greenway"] ( {{bbox}}); way ["name"="The Great Western Greenway&...
user avatar
1 vote
1 answer
42 views

Running a query in overpass-turbo

I am trying to write a query that shows all the highway in an area, except for one feature in overpass-turbo. The query wizard in overpass-turbo has highway=* which shows everything. But I want to ...
user avatar
  • 13
0 votes
1 answer
55 views

Retrieve bounding box from a Google Satellite Photo

I have a bunch of satellite photos downloaded from Google Maps by a third party. The data looks like down below, where each row is a photo. I also have the resolution of each pic. photo_id zoom ...
user avatar
1 vote
1 answer
66 views

Overpass query to fetch multiple nodes at once (not union)

I'm using Ruby and this GEM https://github.com/BrunoSalerno/overpass-api-ruby which allow us to query any endpoint. Using the doc, https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL so far I ...
user avatar
1 vote
0 answers
14 views

Merging queries to return ways/nodes that are within relations matching criteria using Overpass API

Motivation - I am currently processing a number of relations matching criteria and then doing an additional query to get all the ways/nodes within those relations. . Goal - I'm trying to simplify this ...
user avatar
  • 111
0 votes
0 answers
40 views

Excluding nodes in ways that are outside of intended area using Overpass API

The documentation for overpass states Nodes are found if they are properly inside or on the border of the area. Ways are found if at least one point (also points on the segment) is properly inside ...
user avatar
  • 111
0 votes
0 answers
27 views

Get the bounding box of areas in overpass (states)

I want to get the coordinates that limit a state using overpass (OSM) like this: { "type": "way", "id": 24157062, "bounds": { "minlat": 24....
user avatar
0 votes
1 answer
171 views

Overpass API: retrieve all buildings that contain indoor data

As the title says, I want to get all build features (nwr[building]) where there is indoor data (nwr[indoor]) available for them. My starting point for this search would be like this one: [out:json];(...
user avatar
  • 3
-1 votes
2 answers
154 views

Seeking API for Rail-route distance [closed]

I am new to GIS and looking for a way to get rail route distance between a given origin and destination set (available as names, or city center lat-long for widely used city pairs within europe). SO ...
user avatar
0 votes
0 answers
207 views

Use Overpass API to Extract data from OSM within a bbox

I'm trying to extract only some data via Overpass API inside of specific box (By Coordinates).when i use this code via Overpass I'm getting Overpass Query: ( way[landuse](40.0627513928,-2.1478584892,...
user avatar
0 votes
0 answers
75 views

How to save geometries and graph together from osmnx?

I've been able to work out how to get all the geometries and shapes I want together with the nodes with osmnx. Now I have two objects, a graph (MultiDiGraph) and an objects geopandas dataframe with ...
user avatar
  • 195
2 votes
1 answer
167 views

Getting OSM features by ID at a version number

The lava flow from the eruption in the Canary Islands is being shown on OpenStreetMap. It has OSM ID 13249829 and is being updated, and various revisions are in OSM, as can be seen via this API call: ...
user avatar
  • 51.2k
1 vote
1 answer
79 views

How to deal with DataIncomplete error when accessing overpy query result

Recently I have asked this question, and I got this answer, which was very helpful in identifying lakes using overpass-turbo.eu. Indeed, if I run the query, I get the desired result. An example, where ...
user avatar
  • 250
1 vote
1 answer
255 views

How to use selector keyword in overpass API to get all water bodies?

After installing non-default libraries in Google Colab: %%shell pip install OSMPythonTools pip install geopandas and importing useful libraries: from OSMPythonTools.overpass import ...
user avatar
  • 250
0 votes
1 answer
31 views

What is a correct overpass-turbo query for “turn:lane=*”,

Tried using the below query. But the result was an empty dataset. Please let me know whether the query I'm using is correct or not */ [out:json][timeout:25]; // gather results ( // query part for: “&...
user avatar
0 votes
0 answers
52 views

Mapbox gl seems to draw a line incorrectly

Mapbox GL renders all the points of a river if I use circle like this: map.addLayer({ id: 'rivers', type: 'circle', source: { type: 'geojson', data: coordinates, }, ...
user avatar
  • 1
0 votes
2 answers
61 views

Overpass API Query for Superroutes in OpenStreetMap?

I have a superroute in OpenStreetMap which defines a network of mountain bike trails (12425503) and it contains member routes such as (8467869). I'm trying to write an Overpass QL query for the ...
user avatar
1 vote
1 answer
41 views

Restricting Overpass queries to yielding objects whose *centers* are inside a particular area

In OSM, some buildings stand on administrative borders; for example, the base of the building https://www.openstreetmap.org/way/333896751 intersects the neighboring municipalities Riedering, Rohrdorf ...
user avatar
  • 11
1 vote
0 answers
65 views

Places near which there are no buildings

I want to find all place=village with no buildings near them. Right now the query looks like this: area ["boundary"="administrative"] ["name"="Липецкая область&...
user avatar
0 votes
0 answers
59 views

Structured information about City/Town - Suburb relation in Overpass

I am trying to get a list of all cities/towns/villages and suburbs of cities/towns in Germany. I've tried this query : area[name=Deutschland]; node[place~"^(city|town|village)$"](area)->...
user avatar
0 votes
0 answers
74 views

Overpass API returns incomplete polygon ERROR with responseformat "geojson"

I am trying to run an Overpass query from Python with the help of this Overpass plugin. I tested the request, see here: http://overpass-turbo.eu/s/19YC However, my python code... import overpass from ...
user avatar
0 votes
0 answers
110 views

Open a server response from memory (not saving to hard drive) with PyQGIS?

I am getting server response in XML format. To work with it in QGIS as a layer, I have to save it to my hard drive and then open it. Can I turn the server's XML response into a vector layer without ...
user avatar
0 votes
0 answers
83 views

Filter OpenStreetMap ways by size in Overpass API

I'm trying to get a global railroad shapefile through Overpass API, but since there is too much data to be processed all at once, I was thinking I could grab only the larger railways. Is there a size ...
user avatar
  • 1
0 votes
1 answer
45 views

Querying single element groups from OpenStreetMap using Overpass and osmdata in R

I'm trying to extract administrative boundary data from OpenStreetMap using osmdata in R. The Overpass API lets you determine the element group (i.e. nodes, ways, relations) to return. For example, in ...
user avatar
  • 91
1 vote
1 answer
26 views

Why does ['access' !~ 'no'] filter out ways with access = unknown in Overpass?

If I use this query in Overpass [out:json]; area[name="Squirrel Hill"]; way(area) ['access' !~ 'no']; out; then this way (OSM ID 11947323) is not in the result set. However, if this is my ...
user avatar
  • 13
1 vote
0 answers
32 views

Extract information from OSM given GPS point

I have a little problem with the extraction of road information from OSM. I explain my setup: I have several GPS points, extracted every 1 sec and the final goal is to extract information about the ...
user avatar
3 votes
1 answer
43 views

OpenStreetMap river boundaries cannot be queried

I'm trying to download the river banks polygons from a region from OSM, using overpass API; when I try to query the river feature it doesn't appear in the results tab, neither as Neighbor feature or ...
user avatar
  • 3,259
0 votes
1 answer
133 views

Overpass API results in empty map

I am wondering why this API request gives an empty map: https://overpass-api.de/api/map?bbox=-0.7438,50.8940,0.4810,52.1190 If I use a smaller bbox it seems giving back a map.I could not find any ...
user avatar
0 votes
1 answer
25 views

Opening OSM bbox file in gzip

I have downloaded the following OSM bbox file: https://overpass-api.de/api/map?bbox=-105.32,39.95,-105.2,40.08 And want to use it to find all points of interests. My teacher have given me the ...
user avatar
0 votes
0 answers
90 views

encoding error: Your input contains only whitespace

I tried to sent request to server Overpass API: req.body()= "(node(51.249, 7.148, 51.251, 7.152);< ;);out meta;"; I got this error: The data included in this document is from www....
user avatar
2 votes
1 answer
142 views

PostGIS VS Overpass: is it possible to get this PostGIS query faster? Query mistake?

I'm trying to get all the road data within a boundary and to load this data into R. I compared Overpass vs PostGIS and PostGIS at least for me was a magnitude slower. It is 116.322 sec vs. 7.937 sec : ...
user avatar
  • 131
1 vote
0 answers
60 views

Overpass API add a tag to output

can I make a request so that I can customize the output tags. [out:json]; ( area[name="Braunschweig"]; ) ->.a; ( area[postal_code="38114"]; ) ->.b; way(area.a)(...
user avatar
0 votes
1 answer
169 views

How to run an Overpass-API `around` query incrementally excluding already searched area?

I have to find some types of POIs around a given coordinates. Ideally, I want to find the nearest one of such POI around the given coordinates. To meet my requirement I can search with either around [...
user avatar
0 votes
1 answer
39 views

Getting query for OSMquery-Tool using dynamic codeblock

The OSMQuery tool (https://github.com/riccardoklinger/OSMquery/releases/tag/1.0.0) makes a request to Overpass API and returns a layer. The in_query makes the request to the Overpass API and must be ...
user avatar
0 votes
1 answer
278 views

Overpass Turbo Select all Shops

I am trying to select all categories of shops for a portion of the UK. To select just the supermarkets I would use "shop" = "supermarket", and so forth, while to select all ...
user avatar
  • 43
0 votes
0 answers
16 views

How to use if statement to check if a tag is assigned to particular value [duplicate]

I would like to filter out areas in Germany with post code = 14480. I coded the lines posted below but when I run it returns nothing. How can I fix this? Code: [timeout:3600]; area["ISO3166-1&...
user avatar
  • 229
5 votes
1 answer
195 views

What does either of the appreviations b and u refer to

In https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_API_by_Example there is an example as shown below in the code section. I would like to know what is b u and b.u? Code: [timeout:600]; rel[...
user avatar
  • 229
1 vote
1 answer
83 views

Using if statement with evaluators in Overpass

I am trying to query all the nodes which are in Potsdam city and with postcode 14480. I know that it can be coded as follows: area["ISO3166-1"="DE"][admin_level=2]->.germany;...
user avatar
  • 229
3 votes
1 answer
893 views

How to query relations and visualise it on Overpass turbo

I would like to know the reason the below posted code shows ways and nodes? As shown below, I want to visualise only the relations but when I run the code on overpass turbo, it shows ways and nodes? ...
user avatar
  • 229
0 votes
1 answer
45 views

How to query all branches of a specific bank in a spcific city

I would like to know how to query for an example all the amenities that are named Deutsche bank in a city named Berlin in Germany. Below is my attempt. Furthermore, please let me know the meaning of ...
user avatar
  • 229
0 votes
0 answers
472 views

overpass api too many requests

I want to get specific users data from OpenStreetMap. I use Overpass API, but I get an error: overpy.exception.DataIncomplete: ('Data incomplete try to improve the query to resolve the missing data', ...
user avatar

1
2 3 4 5
7