As of May 31, 2023, we have updated our Code of Conduct.

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
3 votes
0 answers
46 views

Split an array of GeoJSON linestrings (from Overpass Turbo) into an array of road intersections

I've got a query that pulls in a bbox of GeoJSON LineStrings representing roads from the Overpass Turbo API. I'm working in Typescript and have been using the TurfJS library extensively. I want to ...
yellow-saint's user avatar
1 vote
1 answer
14 views

How to find objects by a couple of tags and names in a small area specifying the coordinate only once?

I want to use overpass to search for a couple of tags and names in a small area, e.g. 50 meter around a geocoordinate: nwr(around:50,51.477,0.0); ( nwr[building=industrial][name~"Chemi|chemi&...
Tobias's user avatar
  • 111
0 votes
0 answers
23 views

Bypass Same-Origin-Policy CORS Error for Overpass API

I am trying to fetch data from the Overpass API using jQuery (just a code snippet): $.ajax({ url: 'https://www.overpass-api.de/api/interpreter', data: { data: '[out:json][...
simonericmoon's user avatar
0 votes
1 answer
61 views

Displaying outline of municipalities where wind turbines are located

With this query, I get the outline of the department of Yonne in France and the points representing the wind turbines. I would also like to obtain the outline of the municipalities where the wind ...
opeet20's user avatar
2 votes
0 answers
56 views

How receive one-piece polygon from OSM Relation with overpass API

How I can receive Polygon one-piece from OSM using Overpass API. When I used simple query like a: [out:json]; rel['ISO3166-1'='PL']; out geom; I got on map polygon of country Poland, but when I ...
JuniorLittle's user avatar
2 votes
0 answers
12 views

Find buildings that overlook 2+ different streets with Overpass Turbo

I am trying to find, with Overpass Turbo, all buildings that overlook two or more different streets. I tried different codes without much success. I thought this one would work but not at all...: [out:...
JohnnyD's user avatar
  • 21
1 vote
0 answers
26 views

overpass: some issue with wrong order of points to make polygon

I am running this query on overpass-turbo [out:json][timeout:25]; rel(223133); ( rel(r); ); rel(1250951); out geom; and I have received this polygon. but when I process this data my Image is ...
Cyrus the Great's user avatar
0 votes
0 answers
38 views

OSM overpass API query based on GeoJSON polygon

I understand that the polygon feature for a query response with the Overpass API has to be in form (poly:"latitude_1 longitude_1 latitude_2 longitude_2 latitude_3 longitude_3 …");. https://...
simonericmoon's user avatar
4 votes
1 answer
107 views

Retrieve map matched ways (and not just nodes) using OSRM and Overpass API

For my question I have prepared a jsFiddle demo requiring you to click at the map 5 times: If I understand this correctly, the OSRM does not care about ways. It only cares about nodes and their ...
Alexander Farber's user avatar
1 vote
1 answer
78 views

Overpass API query to retrieve way ids given a list of node ids

Given a list of node ids returned by an OSRM map matching query I am trying to find a list of corresponding way ids: {"nodes":[384845483,3831831361,2628299968,502266756,346268605,373873712,...
Alexander Farber's user avatar
2 votes
2 answers
72 views

Overpass API: get "building" in area with landuse='x'

I get regions with landuse=industrial with this query [out:json]; area["name"="my_area"]->.searchArea; ( way["landuse"="industrial"](area.searchArea); ...
David's user avatar
  • 23
2 votes
1 answer
145 views

Calculate distance between location and way segment

For my question I have prepared a JsFiddle demo which works well and is fun to play around with: My question is neither about JavaScript nor OpenStreetMap though. It is about mathematics. When you ...
Alexander Farber's user avatar
5 votes
2 answers
88 views

Finding the nearest named highway way id

Given my location (in Bochum city, Germany), I am trying to identify the nearest highway way id by using the following Overpass API query: [out:json][timeout:180]; area[name="Deutschland"]; ...
Alexander Farber's user avatar
1 vote
1 answer
67 views

Overpass turbo, Get center of area

I have this query for overpass turbo , [out:json][timeout:25]; area["ISO3166-1:alpha2"="AM"][admin_level~"2"]->.search; (way(area.search)[place~"town|city"]; ...
Cyrus the Great's user avatar
1 vote
0 answers
42 views

select ways as nodes with way center as node coords

When querying OSM through OverpassTurbo, I notice some locations are ploted as polygons (closed ways) instead of nodes: When I clicked on the node I gt this result: This is data: { "type"...
Cyrus the Great's user avatar
0 votes
1 answer
34 views

overpass turbo conversion relation to area is not working

I am trying to convert the relation to node, This is my query : [out:json][timeout:25]; area["ISO3166-1:alpha2"="AM"]->.a; rel[place~"town|city"]['name:en'~"...
Cyrus the Great's user avatar
2 votes
1 answer
77 views

Retrieve relations using specific coordinates in an overpass query

I'm new to Overpass API. I would like to make a query that retrieves the relations on natural=water using specific coordinates. I tried the following query: ( way["natural"="water&...
123pna's user avatar
  • 23
0 votes
0 answers
21 views

Using Overpass to find intersections with 3 or more links

I'm trying to find all the intersections (nodes) with 3 or more links (ways) in an area as an indicator for walkability. Complete beginner to the Overpass API and this has me pretty stumped. OSM ...
Joules's user avatar
  • 1
1 vote
1 answer
55 views

Find all resturants inside a city or town by overpass-turbo

I have this query on overpass-turbo: [out:json][timeout:900]; area["ISO3166-1"="AM"]; node(area)[place~"^(town|city)$"]['name:en'~"^Armavir"]; Now I want to ...
Cyrus the Great's user avatar
1 vote
0 answers
49 views

Find area id related to one city in a specific country on overpass-turbo

I am using flutter to get some points from overpass-turbo. This is my query : [out:json][timeout:25]; {{geocodeArea:armenia.yerevan}}->.searchArea; ( node["amenity"="pub"](...
Cyrus the Great's user avatar
1 vote
1 answer
46 views

Join polygon footprint to a dataset that contains the central points of buildings

I have polygon information of all buildings in a city in file geodatabase format (.gdb). I have another dataset stored in CSV format that contains latitude and longitude information on the centers of ...
Negin Zarbakhsh's user avatar
1 vote
1 answer
40 views

Why does relation[admin_level="2"] not select all countries?

I have expected the following Overpass query to return all relations with admin_level="2", i. e. all countries. relation[admin_level="2"]; out tags; However, at least the relation ...
René Nyffenegger's user avatar
0 votes
0 answers
33 views

Get next and previous way from osm_id

I'm new to Overpass API and I need an Overpass QL query that gets a way of type highway by osm_id and also gets the previous and the next way. By previous way I mean all ways with type highway whose ...
atthijs98's user avatar
1 vote
1 answer
43 views

Wildcard in QuickOSM name tag

I'm looking to map (for the sake of the example) all memorials to Lincoln in California using QGIS' QuickOSM plugin. The query I can easily set up [out:xml] [timeout:25]; {{geocodeArea:California}} -&...
dk2ax's user avatar
  • 183
1 vote
1 answer
77 views

Overpass QL for multiple values without union?

When querying a parameter and one wants one of multiple values, is there a way to do it with an or statement? I've found that the union statement works (as below) ( rel({{bbox}})[route="road&...
paullb's user avatar
  • 113
0 votes
1 answer
41 views

Filtering by a selection of different keys in Overpass?

I want to search for multiple key types in Overpass Turbo such as "natural," "waterway," "landuse," etc, but I can't figure out how to do it. I tried it like this, but ...
user204468's user avatar
3 votes
1 answer
134 views

Why do certain features from Geofabrik's OSM extract seem to be missing?

I would like to have all objects from OpenStreetMap with the Tag:man_made=works (ie factories), in Estonia. I can do this using QGIS, but another method using GeoFabrik's OSM extract fails. QGIS way ...
zabop's user avatar
  • 1,004
1 vote
1 answer
61 views

Problems getting information on ways that are returned from an Overpass query with Overpy

I wonder could someone advise me on how to get node information out of a Overpass query (using the Python Overpy library) result in json format. I started with a query looking simply for the number of ...
David Graham's user avatar
0 votes
0 answers
99 views

Overpass Turbo print individual roadsegment lat long pairs

I have an Overpass Turbo query like this: [out:json][timeout:25]; // gather results ( way["highway"]({{bbox}}); ); // print results out ids geom; node(w); way[highway](bn); out geom; >; ...
tonejac's user avatar
  • 101
2 votes
1 answer
88 views

Iteratively passing variables containing polygons to Overpass API to count buildings

I am trying to count the number of buildings within a series of polygons using the Overpass API in Python. I have created a list of strings which contain the co-ordinates of the polygons and I iterate ...
David Graham's user avatar
0 votes
0 answers
50 views

QgisQuickOSMPlugin - server replied: Too Many Requests; Model Designer, OSM, api-server

I am working on a QGis model that downloads OSM data via the overpass-api server. The needs for the model have gradually increased, which is why the error "Too Many Request" now appears more ...
Ben Steinbrecher's user avatar
1 vote
0 answers
57 views

Intersection of major and minor roads from OSM using PostgreSQL

I found this question -> Overpass API: Find road intersection points with defined line that has an answer with a solution using overpass API: [bbox:{{bbox}}]; way[highway~"^(motorway|trunk|...
Miflo's user avatar
  • 21
1 vote
2 answers
79 views

Recursively Querying Ways/Nodes Within a Building

I'm trying to query nodes and ways with specific properties (e.g., amenity=toilets) that are located within a building. Modeling this using an around query does work to some extent: rel[wikidata=...
0x530302's user avatar
  • 113
0 votes
1 answer
62 views

How to query low level of hiking road?

I'm trying to bring back to our 3D engine, some hiking path, or roads available for biking in a certain area. Let say I try to do this for this small area: [bbox:42.74449090412214,2.406005859375,43....
Toucouleur's user avatar
0 votes
1 answer
54 views

Overpass: select area without label point

With the following query: area(3608398124); rel(pivot); out geom; I get the Manhattan area according to the relation 8398124. The output is a relation with member elements (with geometries) that ...
Fido's user avatar
  • 129
2 votes
1 answer
196 views

Find intersection between highways and GeoJSON polygon

I have a GeoJSON which shows an area like so: There are some highways, crossing this GeoJSON. I need to output the coordinates of each highway entering and exiting this polygon with Python. First, I ...
Fateme Fouladkar's user avatar
0 votes
0 answers
60 views

Export all food supply points in 500m around gpx track as waypoints

I'm planning a bikepacking trip for next year and as preperation I would like to get a list of all places where I can resupply food. I figured I could use Overpass API (https://overpass-turbo.eu/) ...
Sander's user avatar
  • 1
0 votes
0 answers
76 views

What's the proper way to get the Floor information of buildings from overpass API?

I have been using overpass API to get building information. Not all the buildings in the OSM database have levels and height tags. What could be the proper way to get the floor information of ...
NinjaMAN's user avatar
  • 111
1 vote
0 answers
90 views

OSM: get residentials blocks, i.e. polygons enclosed by roads

I'm trying to get a list of blocks / residential neighbourhoods via OSM. For many cities the whole town is tagged with a single landuse=residential. What I want is, for a given bounding box: get all ...
BburjerSalpeter's user avatar
0 votes
1 answer
80 views

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

Here's my query [out:json][timeout:25]; // gather results ( // query part for: “building” way["building"]({{bbox}}); relation["building"]({{bbox}}); ); // print results out ...
NinjaMAN's user avatar
  • 111
0 votes
1 answer
594 views

overpass-turbo Export CSV of all adresses

[out:json][timeout:25]; ( node["addr:housenumber"="44"]({{bbox}}); way["addr:housenumber"="44"]({{bbox}}); relation["addr:housenumber"="44"](...
BadBronko's user avatar
0 votes
0 answers
14 views

API for input building_name and output all its building:part in OSM [duplicate]

Is there an API available in which we can send a building name and it would return all buildings:part if they exist in OpenStreetMap?
user212252's user avatar
0 votes
0 answers
102 views

Identify particular building:part belongs to which building in OSM

Since there is different osm_ids for building:part and its respective building. Lets say https://www.openstreetmap.org/way/182827369 is the main building and https://www.openstreetmap.org/way/...
user212252's user avatar
1 vote
0 answers
216 views

Querying countries per continent via Overpass API

I managed to get all states from a specific country by using the following code via the Overpass API: [out:json][timeout:600]; area["name:en"="{country.Name}"]->.country; ( ...
Strazz's user avatar
  • 11
0 votes
0 answers
76 views

Return All Suburbs, Post Codes and Location IDs for a State

I am using Overpass Turbo and I am looking to create a very simple extract that has the following fields: State Suburb Post Code Location ID (ref:psma:loc_pid) This is the query I have so far, but ...
Wesley Jeftha's user avatar
1 vote
1 answer
241 views

QuickOSM does not return results

I'm trying to use the QuickOSM plugin so I can automate the search of addresses and creation of layers. Right now I'm just trying with one address using the key -> addr:street "Bäckerstr."...
rafa's user avatar
  • 23
1 vote
1 answer
98 views

How can I hide objects in output in Overpass Turbo?

I am querying objects with Overpass Turbo, which are restricted to a specific area. I restrict the query via a relation, in this case a city boundary. Then I map them to the area to query via ...
guerda's user avatar
  • 111
0 votes
0 answers
139 views

Querying for data on the border of city on Overpass API

I'd like to collect features inside a city and 5km outside its official borders from the Overpass API. I've been using 'rivers' in 'berlin' as example but without success. Here's my code: [out:json][...
chvieira2's user avatar
0 votes
0 answers
59 views

Improving performance of Overpass area search queries

I am building an application that retrieves lists of location names within geographical boundaries like cities and postal codes. The queries take up to 15 seconds to complete and I would like to make ...
Sarge's user avatar
  • 1
0 votes
0 answers
134 views

Overpass API in terminal, get a parsed GeoJSON for QGIS

When I'm creating a OSM API Overpass request as follows [out:json][timeout:3000]; area[name="Vendôme"]; node[shop=supermarket](area); out meta; Download the data through overpass wget -O ...
Vincent Dc's user avatar

1
2 3 4 5
8