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
58 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
31 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
22 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
20 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
42 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 ...
0
votes
0answers
50 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
31 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
38 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
67 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
29 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
74 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
37 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
139 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
49 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
23 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
51 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
162 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
158 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 ...
0
votes
1answer
100 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
31 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
78 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
87 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
185 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
241 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
147 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
472 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
25 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
66 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
122 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
89 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
66 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
125 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
485 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
175 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
35 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
35 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
165 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
340 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
51 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
174 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
254 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
175 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
55 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
262 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 ...
0
votes
0answers
30 views

OverpassQL to find ways with tag inside rels with same tag

How can I construct an OverpassQL query to find all the ways with, for example, the tag leisure=golf_course inside relations with the same tag? As a new user, the closest I can get my query is ( ...
1
vote
0answers
35 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.
0
votes
0answers
209 views

Optimal Way To Limit Returned Info from Overpass API

I hate bombarding the server and wonder if there's an optimal way to return only, say 4 results ie. http://www.overpass-api.de/api/xapi?node[bbox=7.64974539194731,52.8795037153104,8.88891110143059,...
1
vote
1answer
51 views

What is the max value for node ids in overpass?

I wanted to use overpass with custom data using the .osm format. Overpass does not consider negative node IDs, so I added a prefix, staying <63 bits. ex. : node id = "540000000000001" (in the ....
1
vote
0answers
73 views

Querying highways with Overpass QL for calculating routes

I want to query highways with Overpass to calculate routes with Graphhopper. With some trial and error I came to the following query and it seems to work (tested in overpass turbo): ( ._; way[...
0
votes
1answer
87 views

Use current date in Overpass Turbo querries

For example one may wish to search for roads under construction, with known opening date that is in past (in other words - one of many possible indicators that OSM data is outdated). [timeout:180]; ( ...