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
2
votes
2answers
24 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
31 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
23 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
41 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
37 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
86 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
47 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
40 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:...
1
vote
1answer
85 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
63 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
35 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
140 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
155 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=...
1
vote
0answers
146 views

How to save Overpass query results to a 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
36 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
56 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
138 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
282 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
51 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
56 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
131 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
39 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
182 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
51 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
220 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
66 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
27 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
58 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
351 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
405 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
185 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
56 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
134 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
102 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
438 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
497 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
237 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
893 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
30 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 ...
0
votes
1answer
83 views

Difference in Cycle ways and cycle relation routes in OpenStreetMap data model

Does relation[route=bicycle] include all ways that are cycle lanes or cycle tracks? Edit: I wanted to know this to see if I include all bike route relations, will it give me all possible bike ways or ...
0
votes
0answers
186 views

Getting Bike Lanes using Overpass Turbo

I am trying to write a query to get all bike lanes to display on a map for my project. I want to display all types of bike lanes(shared ,dedicated,tracks etc) [out:json][timeout:25]; // gather ...
2
votes
1answer
93 views

Getting entrance of building?

I can get informations on, for example, a stadium [out:json]; ( way[leisure=stadium]["name"~"Picot"](48.69241932797025,6.205483675003052,48.69873617918758,6.218605041503906); ); out body; >; ...
1
vote
0answers
100 views

Using a bounding-box filter on a Overpass union

I'm trying to filter the result of an Overpass union using a bounding box. This works: ( rel["natural"="wood"]({{bbox}}); rel["landuse"="forest"]({{bbox}}); ); (._;>;); out; But it requires ...
2
votes
0answers
155 views

Converting latitude and longitude to 2D cartesian (opengl)

I know this has been asked a million times in here, but I can't really understand it, I am using OpenStreetMap (OSM) particularly Overpass API, as I only need roadway information. I know that I need ...
0
votes
1answer
1k views

Iterate over geopandas dataframe returning nearest point on each LineString

I'd like to iterate through a GeoDataFrame that contains a column of LineStrings and return a list of points; one from each LineString that is closest to a reference point. #### . Import data from ...
1
vote
1answer
289 views

How to generate a CSV file from Overpass with ID and tag value?

I am trying to use http://overpass-turbo.eu ... Something as [out:csv(::id, wikidata)]; way["wikidata"]; out center; PS: the answer can restrict area to a country by a kind of area["ISO3166-1"="BR"][...
1
vote
1answer
36 views

Does overpassAPI setup supports importing from osm.pbf file

Does overpassAPI setup supports importing from osm.pbf file? The docs are only mentioning the use of planet.osm file.
0
votes
1answer
36 views

Peaks up to N kilometers from borders (Overpass)

I'm trying to extract peaks that are within and up to say 100 kilometers away from country boundaries. The second part is however what I cannot get right. How to query for nodes up to N kilometers ...
0
votes
1answer
244 views

Overpass API - Multiple ways for same road [closed]

I am running a query for Ways by name using a regex. I recurse down to get the nodes and all data returned appears fine with the exception that the one "road" with the one name thats being queried ...
4
votes
1answer
447 views

Overpass / Overpy: Getting Way IDs from Nodes

I am struggling to grok Overpass as well as I'd like, so I hope someone might be able to help. I have a route which I'm importing from a GPX file. This has been 'snapped' to OSM data, so I have the ...