Skip to main content

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
1 vote
1 answer
23 views

Getting all node coordinates of ways of one relation with Overpass

With overpass, I use CSV to create individual formatted output. All ways of a relation are determined. Here is the code: [out:csv("print1";false)]; ( relation(id:15596842); way(r); ) -> ....
gotwo's user avatar
  • 111
0 votes
1 answer
18 views

Programmaticaly get coordinates of area symbol in OSM

OpenStreetMap sometimes encodes buildings as areas - as closed ways instead of nodes. But still at some point in the map a symbol or a housenumber is placed. I want to get the coordinates of this ...
Ruik's user avatar
  • 101
0 votes
0 answers
14 views

How can I determine the angle between different ways using Overpass?

I'm trying to figure out which ways are "the same". One metric I'd like to check is the angle between them: if two ways meet at a node at an angle pretty close to 180 degrees, that's an ...
user1454156's user avatar
0 votes
0 answers
26 views

OSM data - export only given tags

I am working with OSM through the Overpass API and/or the QuikcOSM plugin in QGIS. I am wondering if it is possible to select the tags to be downloaded as csv or GeoJSON or KML data. To make an ...
HyPhens's user avatar
  • 520
1 vote
1 answer
42 views

Query geolocation of an address with Overpass API

I would like to find the geolocation (lat/lon) of a given full address using OverpassAPI. [out:json]; ( node["addr:street"="Hauptstraße"]["addr:housenumber"="1&...
Saren Tasciyan's user avatar
0 votes
0 answers
53 views

Saving Overpass-turbo query results to GeoJSON file with Python - to work on with the dataset

Saving Overpass query results to GeoJSON file with Python want to create a leaflet - that shows the data of German schools background: I have just started to use Python and I would like to make a ...
zero's user avatar
  • 393
2 votes
0 answers
34 views

How to map all nodes of a Wikidata tag

I am trying to get all the elements of the following Wikidata tag: https://www.wikidata.org/wiki/Q31074657 As you can see, this tag corresponds to a Wikidata category of type Statements -> Part of, ...
Nil Aspinall's user avatar
1 vote
1 answer
25 views

How to get all the streets limited to containing a particular text name in Overpass

I would like to get all the streets limited to containing a particular text name, for all "place=city" in a particular country. I tried: [out:json][timeout:250]; area[name="Italia"]...
Nil Aspinall's user avatar
1 vote
1 answer
70 views

Trying to fetch points of interest using Overpass API but it throws an error

I'm relatively new to Overpass and Uber H3. I'm trying to find all the points of interests associated with hexagons within New York City. I'm able to find and generate all the hexagons within New York ...
Ibrahim's user avatar
  • 13
2 votes
1 answer
33 views

around command in overpass turbo not working

I want to create a google currentplace type api using open street map data. I have been trying to use othe around command in overpass ql but it always returns error or 0,0. [out:json]; ( node["...
Jos Joe's user avatar
  • 21
1 vote
1 answer
43 views

Overpy processed results into GeoJSON

I am using Overpass to obtain data about street/sidewalk elements, such as buildings locations. I was not able to filter unwanted data by refining my Overpass query, so I am doing this filter in ...
José Pedro Silveira Martinez's user avatar
0 votes
1 answer
71 views

Reliable method to get relations / boundaries for a US city/town/village from Overpass API

I'm trying to get the boundaries from Overpass API for all counties, cities, towns, villages or hamlets for specific US states. The problem I'm having is that I sometimes get "nodes" instead ...
HK1's user avatar
  • 101
1 vote
1 answer
21 views

Getting roads which are missing bike lanes using Overpass Turbo

I would like to extract roads which are missing bike lanes so that I can map them with Photo Mapping software. With my query below, I am able to fetch roads which are missing the cycleway tag. ...
Paradox's user avatar
  • 111
0 votes
0 answers
78 views

Google Maps analogue of QuickOSM / Overpass?

Is there a Google Maps analogue of QGIS's QuickOSM plugin? I would like to download data from Google Maps, similarly to how Overpass gets data from OSM, using a Google Maps API key.
Geremia's user avatar
  • 187
0 votes
1 answer
66 views

How to extract also a zip code with Overpass turbo?

I use this code in Overpass turbo: [out:csv(comune, ISTAT, name, highway, ::lat,::lon;false;";")][timeout:600]; //provincia da cui estrarre i dati area[boundary=administrative]["...
user236223's user avatar
0 votes
0 answers
61 views

Overpass API default output format

I installed local Overpass API from Docker container (https://github.com/wiktorn/Overpass-API). Everything works, server is accepting queries and is giving valid answers. What's the problem? I'm ...
stalker's user avatar
  • 89
1 vote
2 answers
195 views

Overpass Turbo query for all ocean entities

I'm looking for an overpass turbo query that gives me all (salt) water entities. Currently, this is my query (using the overpass web interface): [out:json][timeout:25]; ( node["place"=&...
Daniel's user avatar
  • 21
2 votes
1 answer
47 views

Download every nth node overpass turbo

I would like to download OSM Data of admin borders and highways for a very large area. This would produce a very large file and is way too much for the osm overpass (I used overpass turbo but am happy ...
RRR's user avatar
  • 21
0 votes
1 answer
94 views

Retrieve data about a place given its name and bbox

I'm given the following output from the Google Maps API regarding a specific place (Toronto, in this case): { "html_attributions": [], "result": { "...
user698515's user avatar
0 votes
1 answer
41 views

Getting an error for a polygon using Overpy, Overpass Turbo flashes an error but I cannot see what the problem is

I was wondering if anyone could help. I am running a Python program that has to check a couple of hundred polygons to see how many buildings they contain, 95% are polygons are processed fine and seem ...
David Graham's user avatar
1 vote
1 answer
164 views

Overpass Turbo query to fetch data given name and coordinates?

I have a list of tourist attractions, each with the name of the attraction, its address, and its coordinates (lat/long). How can I query Overpass Turbo to accurately return data about these ...
user698515's user avatar
1 vote
1 answer
346 views

Select more than one area using Overpass API

There are different ways to define search areas using Overpass API. For example: Geocode area [out:json][timeout:25]; {{geocodeArea:Bonn}}; node[tourism=hotel](area); out body; >; out skel qt; ...
winnewoerp's user avatar
  • 1,504
0 votes
1 answer
95 views

Use Overpass API to output different tag counts as CSV

I want to create CSV data with different OpenStreetMap tag counts for selected cities using Overpass API. Unfortunately, the "Counting Objects" section of the Overpass API Documentation is ...
winnewoerp's user avatar
  • 1,504
0 votes
0 answers
31 views

Overpass error: open64

Whenever I run any query using the OSM plugin via QGIS, I get the following error: Overpass error: open64: 2 No such file or directory /srv/overpass/db/area_tags_local.bin File_Blocks::File_Blocks::1 ...
Rebecca's user avatar
0 votes
0 answers
58 views

Districts' names with state names as CSV with Overpass API

I am looking district names of India with state names as CSV format. I tried to write an overpass query but it is not working. Please let me know what I am doing wrong. Is there any other simple query ...
Gagan's user avatar
  • 201
1 vote
1 answer
283 views

Overpass turbo OSM: how to combine and unite several filters? [duplicate]

I would like to request all service companies in specified area using the Overpass API. The following request delivers only the result of the first filter node[shop](area); and does not unify with the ...
Maus's user avatar
  • 141
3 votes
1 answer
84 views

Importing Overpass API response to PostGIS with ogr2ogr creates empty table

I need to import parking polygons from OSM to PostGIS. But when I import data from Overpass API using ogr2ogr it keeps creating an empty table (with the expected columns as to per osmconf.ini). Import ...
Christa Rohrbach's user avatar
1 vote
1 answer
99 views

Missing data when querying administrative regions in the Overpass API

I would like to get the administrative regions for Somalia. I tried two queries: area["ISO3166-2"~"SO-"]; rel[admin_level=5](area); out geom; and: rel["ISO3166-2"~"...
BritishSteel's user avatar
  • 6,647
1 vote
1 answer
40 views

How to intersect lists or specify AND condition using Overpass QL

I am trying to find residential buildings that are within 1km of a subway station, a gym, and a supermarket. No matter what I do, I get a union of those lists instead of an intersection. [out:json][...
AvImd's user avatar
  • 13
1 vote
0 answers
57 views

Filtering augmented diffs by type of tag change

I want to find all deletions of a certain tag. I'm trying to do this: [timeout:500][adiff:"2023-09-15T00:00:00Z","2023-09-18T00:00:00Z"]; node["name:ru"]({{bbox}}); (._;&...
deevroman's user avatar
0 votes
1 answer
228 views

Using Overpass Turbo output as GeoJSON input to leaflet.js [closed]

I'm trying to get GeoJSON using Overpass Turbo for a number of roads within a certain area. The input to Overpass below produces a map with the selected roads highlighted and what looks like JSON, ...
Chris's user avatar
  • 73
0 votes
1 answer
59 views

Select nodes with specific attribute from a relation

I am trying to build subway maps using overpass-turbo and output in JSON. I only want the routes (ways) and the stations (nodes) for each network. This is what I have so far: [out:json]; ( relation[&...
Adam T's user avatar
  • 9
1 vote
0 answers
80 views

How to query all the publicly accessible footways using Overpass API?

I'm working on an app which helps you meet other people. This app averages position between 2 people and then at that point in radius of 200 meters tries to find all cafes. But as a fallback if cafe ...
iljuhenson's user avatar
0 votes
0 answers
34 views

How to exclude "self" in Overpass queries? (when trying to find set of multiple same thing)

For example, I want to find all sets of "3 wind turbines within 500 meters of each other in Kanasa". The non-working snippet is: [out:json][timeout:60]; ( area["name:en"="...
jling's user avatar
  • 101
0 votes
1 answer
46 views

Getting a multipolygon from Overpass as a way

There's this Multipolygon that exists and I want to get the land area it covers so I can calculate surface area. https://www.openstreetmap.org/relation/12620768#map=18/42.34277/-71.12306 I have my ...
Devin Matté's user avatar
1 vote
1 answer
120 views

Ways with certain number of Nodes

Need an overpass-turbo query to highlight on a map [highways] in a certain city with a certain number of nodes. Tried something like [out:json]; area[name="New York City"]->.ny; way(area....
user228267's user avatar
2 votes
1 answer
72 views

Is it possible in Overpass to filter out the points that are in the nth position in the line?

I want to find all fixme=continue that are neither the last nor the first point of the line. Is it possible to filter in Overpass by position number in the list of line points?
deevroman's user avatar
1 vote
2 answers
226 views

Problem calling Overpass API with convert statement

I try to make an Overpass API call with restricted number of tags, to achieve this I incorporated convert statement. Here is working overpass turbo example of query for data I would like to fetch: [...
Jakub Błażejczyk's user avatar
0 votes
1 answer
17 views

Relations that don't belong to area are being added to the result set

I want to query all counties in Czech republic. I am using this query: [date:"2023-07-09T00:00:00Z"]; area["ISO3166-1"="CZ"]->.boundaryarea; ( rel(area.boundaryarea)...
Matt's user avatar
  • 1
3 votes
0 answers
106 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
56 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
1 answer
100 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
189 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
64 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
74 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
4 votes
1 answer
554 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
901 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
797 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
702 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
6 votes
2 answers
441 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
2 3 4 5
9