The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
1
vote
0answers
21 views

Extracting city information only from OpenStreetMap

I need to extract City as well as hierarchy of admin entities for selected countries. My understanding for now is that I'll have to get node primarily and find a clever filtering based on tags. And ...
1
vote
1answer
34 views

QuickOSM using Wild Cards / RegEx

Can someone explain to me how to use wild cards with QuickOSM? I'm trying to match all shops with a name starting with a specific word (e.g. Costco).
0
votes
0answers
21 views

Classifying if a coordinate lies on a building

I'm trying to classify if a given coordinate (latitude, longitude) lies within a building footprint, street or elsewhere. To accomplish this task, I'm using OSM data and the Overpass API. I wrote the ...
1
vote
1answer
26 views

Adding tags in Overpass QL

I am trying to add a custom tag to everything in my Overpass query. As far as I understand this can be achieved with convert. But so far, this kind of statement: convert way ::id=id(), :...
0
votes
1answer
45 views

Overpass query: 2 almost identical search queries - one works, one not. Why?

I'm using a tool called "Wikivoyage Districitifier" to visualize OSM boundary relations. The query below is supposed to get all relations with certain admin_level values within a defined bounding box ...
2
votes
2answers
40 views

Query OSM nodes not member of way in Overpass

How can I query OSM nodes that are not member of ways? I want to get the nodes which tagged with (traffic_calming=bump) and not member of any ways.
2
votes
0answers
54 views

Extracting highways from OSM

I am trying to extract all highway types for the world from OSM through Osmosis. My Osmosis command looks like below, however, after the extract, I find certain roads (especially, motorways and trunk ...
2
votes
1answer
50 views

Why are area queries in my own Overpass server returning different results from the official server?

Here's my query to collect all of the States within the US: [out:json]; area['admin_level'='2']['name'='United States']; (relation['admin_level'='4'](area);); out tags; My Overpass server returns ...
0
votes
1answer
48 views

Finding neighbouring countries using Overpass?

How can I find all countries that are neighbours (share a border point or line) of a given country (eg. germany) using Overpass?
0
votes
0answers
29 views

Getting all footways in a bounding box with Overpass API?

I am trying to use the Overpass Python API to find the all footways from OpenStreetMaps within a given bounding box. This is my first time using this API and am quite unsure how to write this query. ...
0
votes
1answer
34 views

Overpass API returns points instead of polygons

I'm able to retrieve geojson using the following call to the Overpass API for boroughs in London: import overpass api = overpass.API() response = api.get('relation(1811626);>;out;') However the ...
2
votes
2answers
31 views

Group results in JSON Query

I'm querying two different keys (to just make one API call) and would like to group them in the returned results. Is this possible or are the results always a per node list? Code: [out:json][timeout:...
1
vote
1answer
39 views

Finding intersections for interstates using Overpass API?

I found this query, which works for streets: way[highway][name="Mexico Road"];node(w)->.n1; way[highway][name="Bryan Road"];node(w)->.n2; node.n1.n2; out meta; I assumed it would work for ...
0
votes
1answer
32 views

OpenStreetMap - Overpass API; geometry disappears from node when using convert

I'm using the Overpass API of OpenStreetMap. I'm pretty new to this and I'm struggling to find a solution here since hours. I have two different sets of nodes, .a1 and .a2. I add a certain tag to ...
1
vote
1answer
56 views

Simplest way to export a data set out of OpenStreetMap's Overpass API

I would like to create a web map showing just one type of point of interest. They are made available via the Overpass API and count up to only few thousands for the whole world. I don't expect them ...
1
vote
1answer
43 views

Query nodes and attributes of parent ways

Does the Overpass API provide a way to query a list of nodes and some attributes of their parent ways, and return the data in CSV format? For example, the following will give me all motorway ...
0
votes
1answer
100 views

How to calculate the length of each way in a set in Overpass - use of foreach and sum(length())

I need help understanding the correct use of foreach and sum(length()) in an Overpass query. I've written a query for extracting all relations and ways of a given type within a bounding box, and then, ...
1
vote
1answer
52 views

How to work with overpass ways in Python?

I would like to calculate the distance of some points to the nearest motorway, for that i would obviously need a series of vectors/lines etc. to represent the motorway. On Overpass Turbo, the query ...
1
vote
1answer
48 views

Overpass API AROUND filter doesn't work with small distances

Given the coordinates (55.8141015,26.8400810) I need to check if this location is inside a cemetery. My initial idea was that I would easily make such request: ( way[landuse=cemetery] (around:...
2
votes
1answer
207 views

Extracting admin boundary data from OpenStreetMap?

I'm really just looking to get borders for cities and regions around the world. Ideally in a shapefile format. Does anyone know how I can do that from OpenStreetMap?
0
votes
1answer
85 views

Overpass query Paris metro stations with line numbers?

I understand from the wiki article of Paris Metro, that there are 16 lines and 302 stations. Could you help me run an overpass query that can give me the data? i.e I can see which station belongs to ...
2
votes
0answers
45 views

Python and Overpass: Cannot get a complete address list even though I can see it on the map

I am new to OSM and running a Python script like this https://pypi.org/project/osmxtract/ to get building addresses and polygons of my street via Overpass. I get a list. The list changes depending on ...
1
vote
0answers
215 views

How to get POI in city in OpenStreetMap through Overpass API with cURL? [closed]

I'm very new to OpenStreetMap's Overpass QL API. After digging through its hefty wiki and several tutorials I get the feeling that if I want to query for a city I can use either area[name="Tbilisi"][...
1
vote
1answer
201 views

overpass query: select area/polygon with certain node in it

I want to select all polygons with tourism=camp_site and tourism=caravan_site without the key 'sanitary_dump_station' but where a node is located inside the boundary with the tag amenity=...
4
votes
1answer
241 views

Saving Overpass query results to GeoJSON file with Python?

I have just started to use Python and I would like to make a query to Overpass and store the results in a geospatial format (e.g. GeoJSON). As far as I know, there is a library called overpy that ...
0
votes
1answer
44 views

Intersection of two sets in openstreetmap to find parent of any area

I am trying to determine what the parent administrative area of any given area. The idea is that the closest parent is the administrative area with the highest/deepest admin_level that is shared as a ...
0
votes
1answer
73 views

Find nodes inside area (like forest) with OverpassAPI

I'm still in the processing of learning how to use the OverpassAPI QL syntax in regards to areas. With the following query I get the forrest areas: [out:json] [bbox:{{bbox}}]; ( way["landuse"="...
0
votes
1answer
219 views

Constructing a graph from a city in Python using Overpass

I'm looking to construct something exactly like this person Building a graph from OSM? That is I need to construct a graph with intersections as nodes and roads as edges for a simulation. Unlike this ...
1
vote
0answers
402 views

Retrieving OpenStreetMap data (ways and its child nodes) by coordinates using Overpass API?

I am new to using OSM.I am trying to download OSM data programmatically using Python. I need data of ways and its child nodes contained in a perimeter specified by coordinates. Currently, I am ...
1
vote
1answer
56 views

Extracting cities in Belgium using overpass API?

I would like to extract all the cities in Belgium using the overpass API.I used the following query: area[name="België - Belgique - Belgien"]->.boundaryarea; ( node(area.boundaryarea)[place="...
0
votes
0answers
64 views

Using overpass turbo to download all windfarms on admin level 6 in germany

I managed to write a query which extracts all windfarms: [out:json][timeout:150]; ( {{geocodeArea:"Lüneburg"}}; {{geocodeArea:"Nienburg/Weser"}}; {{geocodeArea:"Uslar"}}; {{geocodeArea:"Dassel"}}; {{...
0
votes
1answer
152 views

Seeking public transport data for Berlin in csv or shp?

I am looking for a shapefile or an Excel document (csv) with all the public transport stops (bus, underground, tram and train). I have searched on OpenStreetMap but I have problems downloading the ...
0
votes
0answers
45 views

A Overpass turbo code to search residential areas without buildings in Spain

I'm looking for a code to search 'residential areas' without 'buildings' over them with Overpass turbo in Spain. Unfortunately I'm not too good in coding. I think I must use this piece of code, but I ...
0
votes
1answer
225 views

From Overpass Turbo to GeoJSON without map

I would like to extract boundaries of some areas from Overpass Turbo in GeoJSON format. At the moment I am using the website UI www.overpass-turbo.eu, write the query, execute it and export in GeoJSON ...
1
vote
1answer
53 views

Possibility to use polygon as global area parameter for overpass query

I have been trying to provide a polygon with an array of coordinates as a global parameter for my overpass query. But the query is through syntax error. [bbox:poly:"50.7 7.1 50.7 7.2 50.75 7.15"]; ...
-3
votes
1answer
255 views

How to search any query using Overpass API [closed]

Nominatim API can accept query without adding any name, class, type, city, amenity and so on to the request: https://nominatim.openstreetmap.org/search?q=MacDonald&format=json How to do the same ...
1
vote
2answers
80 views

Overpass query: Search range of integers not working for 2 digit numbers

I would like to search for all admin levels with the values between 7 to 11 using the following query (http://overpass-turbo.eu/s/Dn5): (relation[admin_level~"^[7-11]$"]["wikidata"]({{bbox}}); The ...
1
vote
0answers
30 views

Merge node results into one MultilineString

I'm trying to generate MultiLineStrings from street data nodes. Right now my workflow is as follows: I run something like the following through the Overpass Api, to get all the nodes: [out:json][...
-1
votes
1answer
65 views

Overpass query does not return values after changing the bounding box parameters [closed]

I have a very weird situation with 2 almost identical queries to Overpass Turbo: http://overpass-turbo.eu/s/DhG The only difference between the two are divergent values for the bounding box. How is ...
0
votes
1answer
408 views

Exclude elements from overpass query

I have a query in overpass turbo, which searches for all buildings in the current bounding box (http://overpass-turbo.eu/s/Dgv). I would like to exclude buildings with certain id's from the output - e....
1
vote
1answer
504 views

Overpass get Street in City

I'm trying to get all the nodes of one street in a district in Berlin. I've written the following expression, but it returns all Holteistraße in Germany. Anyone know how I would write a correct ...
2
votes
1answer
221 views

Large queries in Overpass Turbo ran out of memory

I would like to query a large bounding box in Openstreetmap using the overpass API from within python. A solution similar to this one would be ideal. My extent, however is very large, and I would ...
0
votes
1answer
69 views

Fetching node(nd) reference data of way in Overpass query result

I wanted to check the feasibility of a doubt I am stuck with in Overpass query. I have created a simple overpass query to fetch data of one road, [timeout:300]; (way[highway]({{bbox}});); out geom; ...
1
vote
1answer
156 views

Updating Overpass Data?

I have local Overpass server installed with some snapshot data. Is there something like query data into graphical editor, edit the geometries and then update the Overpass server with the modified ...
0
votes
1answer
116 views

Find the intersecting polygons between 2 tags in OpenStreetMap using Overpass API?

I need to find in Italy all the intersecting polygons of: all airport terminals of the tag["aeroway"="terminal"] that are inside only international airports of the tag["aerodrome"="international"] I ...
0
votes
1answer
549 views

Overpass API: Find road intersection points with defined line

I have a geometrical line and I would like to have all intersection points where this line passes roads. So far I have a line, defined by coordinates. I am looking for all intersection points with ...
0
votes
1answer
564 views

Getting all information about ways from python overpass library?

I'm having problems getting started with the overpass QL python library. I want to get a collection of ways that match the search criteria, but I can't seem to get anything but the points. I need to ...
0
votes
1answer
257 views

Extract polygons using Overpass Turbo

I'm trying to extract areas that have the tag name = "Maroc Telecom using Overpass Turbo, to do so I executed this query: area [name="Maroc Telecom"]; out geom; When I look at the data tab I find ...
2
votes
3answers
1k views

How to query Overpass API with Postman?

I'm learning Open Street Map in order to try to retrieve a list of all cinemas in the world, in a country or in a city I would like to know if I can do that with a REST query in Postman. On ...
1
vote
0answers
31 views

Overpass API & reducing the output size

I'm pretty new to using the Overpass API but we are looking to calculate areas & ways (of certain types) which either contain a particular coordinate or are close to a specified coordinate. So ...