Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
24 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
36 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
45 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
15 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
66 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
92 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=...
0
votes
0answers
70 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
27 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
33 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
71 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
114 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
39 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
46 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"}}; {{...
-1
votes
1answer
81 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
35 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
121 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 ...
0
votes
1answer
46 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
173 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
57 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
25 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
53 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
242 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
268 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
142 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
40 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
103 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
93 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
286 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
363 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
190 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
642 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
29 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
73 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
152 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
90 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
79 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
137 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
733 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 ...
0
votes
1answer
239 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
204 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
401 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 ...
0
votes
1answer
64 views

Workflow to create global mapbox tileset

I am in process of creating a hiking map rendered from OSM data using Mapbox. It works quite fine already, however some data are missing in the Mapbox Streets V7 datasets, namely: bus stops power ...
1
vote
1answer
187 views

Overpass API convert statement

I have read Overpass API by example, but still I am unable to adapt convert statement examples to my need. What I would like to do is to get all marked routes in the area using Overpass Turbo, drop ...
0
votes
1answer
287 views

Getting road name, road type and max speed for many GPS coordinates

I have compiled a local instance of the overpass api, because I need to make a lot of "around" queries (over 6 million). The solution I'm using right now is to call bin/osm3s_query for every single ...
0
votes
1answer
194 views

Counting schools with Overpass API? [closed]

I am trying to use the Overpass Api with a python script to count the number of schools (and later other points of interest) for some area given as bounding box. An example-query looks like this: (...
1
vote
0answers
58 views

Distinguishing two streets with the same name?

I am trying to get road data using the Overpass API. I want a user to be able to find a street using its name then retrieve the data for the nodes to draw a line on the map. This is all fine using: [...
0
votes
1answer
326 views

Display and style a single US state in Mapbox/OpenStreet?

Ok, be gentle. I'm self-taught and don't know the 100% technically correct way to phrase my question.. :) My goal is to create a Mapbox style that shows only the state of Virginia, and any standard ...
1
vote
0answers
37 views

SaaS provider of overpass server for more that 10,000 request per day [closed]

I am looking for a provider that runs overpass API that my company can use. We currently have about 10,000 request per day, but hope to grow in the future.