Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
1answer
20 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
88 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
41 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
20 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
44 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
79 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
71 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
71 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
23 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
54 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
72 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
83 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
141 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
88 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 ...
0
votes
0answers
32 views

Ordering of nodes for speed extraction along route

I've been writing a little Overpass QL script that grabs the way data base on a route of nodes. I'm doing this by comparing the ways a node is part of with those of the previous node. This means it's ...
2
votes
3answers
292 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
24 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
57 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
72 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
70 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
44 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
84 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
283 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
121 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
134 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
261 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
46 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 ...
0
votes
0answers
116 views

How can I export a GeoJSON with Polygon types from a non-Overpass-turbo query?

I'm trying to search for all of the buildings within a boundary box from the overpass Python wrapper, then list each building's centroid and area. I have this overpass turbo script which works well. ...
1
vote
1answer
145 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
216 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
142 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
53 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
195 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
31 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
157 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
48 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
60 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
81 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]; ( ...
0
votes
0answers
204 views

Overpass turbo; I need to count “building=house” in each “addr:street” in the bounded box

How can I use overpass turbo to count the number of buildings that are houses in a given street in the bounded box. There are a number of streets in the bounded box. I need a house count for each ...
0
votes
1answer
68 views

Getting built environment within administrative areas from OSM

I have a collection of all administrative boundaries (level 8) in a country. I am interested in playing with the shapes of these towns and cities using Python (shapely, osmnx). But I would like to ...
0
votes
1answer
89 views

query doesn't return way based on related nodes

Way 445962072 has 5 related nodes. If I query on two of more of these nodes, the way isn't returned. The query I used is node(id:8093775,8093776)->.allnodes; way(bn.allnodes)->.ways; foreach ....
-1
votes
1answer
58 views

How are OpenStreetMap ways linked?

I'm using OSM API (overpy and overpass using Python3) to extract toll roads "toll=yes" in a certain search area (e.g. searchArea = California). The API spits out all the tolled ways in CA split into ...
2
votes
0answers
148 views

Handing a Bounding Box (bbox) to an overpass query

I would like to incorporate the results of overpass-queries into a model, which in the end gives me a clipped union of these results (all roads within a specific area). The challenge is to automate ...
1
vote
1answer
88 views

Performing tag change detection in OpenStreetMap?

I'd like to have a tool for monitoring changes in OpenStreetMap (OSM) for tags only, not geometry. For instance, I'm interested in detecting any tag changes regarding one-ways in streets. This can be ...
0
votes
0answers
143 views

How to get tags and coordinates of nodes + tags of their parent relation?

I'd like to extract and aggregate some informations from OSM in a csv file : tags, latitude and longitude of admin_centre (nodes) of towns in Burgundy (admin), some tags of their parent relation (...
2
votes
1answer
166 views

Using Overpass API find ways inside multipolygon relations

I'm trying to find all buildings in ways AND relations, type=multipolygon. The code below works but only finds buildings in ways but not in the relation, type=multipolygon for 'landuse=military'. I ...
0
votes
1answer
93 views

Using the Wizard in Overpass Turbo to download all layers within the Bounding-Box

I am using the Bounding-Box and the wizard query to download data from Overpass Turbo. I am using the id openStreetMap editor to find the right query word, and it is working great. However, I was ...