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
1answer
18 views

Query Overpass API with geocodeArea returns error

I am trying to send a simple request to https://overpass-api.de/api/interpreter but I am getting a parser error. {{geocodeArea:Oregon}}->.searchArea; ( nwr["waterway"="waterfall"](area....
0
votes
0answers
23 views

Filtering footprints to given bounding box

I'm trying to get footprints with landuse tag within sample bounding box with query below: [out:json][timeout:180]; ( way(poly:"50.859515 18.568600 50.859515 18.580753 50.862946 18.580753 50.862946 ...
1
vote
1answer
59 views

Getting date of creation for feature using osm_id [closed]

I have download some OpenStreetMap data from Geofabrik GmbH. https://download.geofabrik.de/asia/india.html I need to extract when was the first time each feature was created. E.g., for OSM_ID = ...
1
vote
1answer
37 views

Get objects (highways) without it's relations (bus_stops) using overpass turbo

I try to get a list of all streets/addresses for a single geocodeArea. E.g. {{geocodeArea:Heidelberg}}->.searchArea; ( nwr[highway=highway][name](area.searchArea); nwr[highway=living_street][name](...
1
vote
0answers
51 views

Limit API request to zoomed bbox

I am working on a forked OSM/leaflet/overpass API application which has its own max bounds declared var mapBounds = { south: 50.8025, west: 0.3724, north: 50.8785, east: 0.5290 }; var LBounds = L....
0
votes
0answers
24 views

Writing a query to select all camp grounds within a certain proximity of a water way in Overpass Turbo?

Totally new to Overpass Turbo (and GIS) query language. Basically I like to camp near water and would just to get a map of all campgrounds within say 20 meters of a river/stream/etc.
0
votes
0answers
20 views

Excluding school-areas using Overpass-Turbo

As an example see: http://overpass-turbo.eu/s/PV6 How do I exclude the gyms on school-property? I tried -relation["amenity"="school"] but I get parse error: Unknown type "-" static error: For the ...
1
vote
1answer
52 views

Received corrupt data from Overpass (incomplete polygon) with Overpass API Python wrapper

I'd like to collect forest data on overpass turbo. But my code isn't working properly. Here is the first version: import overpass api = overpass.API() res = api.get(""" area[name="Charente-...
0
votes
0answers
21 views

Overpass Python module query for a way, returns valid response but empty LineString coordinates field

I use the following query with Overpass Python module, for getting the features of a road in overpass turbo: [out:json] [timeout:25] ; ( node["name"="John F Foran Freeway"]; way["name"="John F ...
0
votes
0answers
16 views

OSM overpass API, query if a particular highway GPS location is at or close to exit ramp

I want to give OSM a GPS location of a coordinate on the highway and have the ability to know if there is an exit ramp in position or within radius of 50m for example. How can I do this in a ...
0
votes
2answers
40 views

Area size in OpenStreetMap

Given an area id, is there a way to get size of this area from Overpass API? For instance, I would like to know how many square kilometers New York has.
0
votes
0answers
27 views

Extracting OSM file from overpass turbo query

I'm working on SUMO project and I am trying to use only motorways. So I used http://overpass-turbo.eu/ to select it. I need to export an OSM file from the overpass query contaning just the motorways. ...
2
votes
2answers
38 views

Overpass API query: Get streets in city limited to a particular country

I am working with a self-installed version of the Overpass API. I need to be able to query all street names in a particular city, Inverness in the United Kingdom (GB). There is also a city called ...
0
votes
0answers
44 views

Get Overpass API subway lines, stations and color

I'm trying to find a way to efficiently query Overpass API and retrieve the following informations: the subway lines (the ways) the subway stations coordinates with their names the line official ...
0
votes
1answer
19 views

Nodes without addresses

I have searched for a while, but have not found a suitable answer yet. I have the following problem. When I execute the following query [1] via the overpass API, I get nodes as a result that don't ...
0
votes
1answer
39 views

Data imported into Overpass API lacks areas.bin?

I have installed Overpass locally following official instructions. I downloaded a small region data from slaskie-latest.osm.bz2 and imported them into Overpass DB bin/init_osm3s.sh slaskie-latest.osm....
1
vote
1answer
48 views

Overpass: find highways that go below a bridge

I am looking for a overpass turbo query to find 4-lane highways that go below a bridge, similar to Here is what I have so far [bbox:{{bbox}}]; way[lanes=4][highway=motorway]->.major; way[bridge=...
1
vote
2answers
54 views

How to get all the streets and their postal codes from a given state (New Hampshire) that has been loaded inside PostgreSQL

I downloaded .osm for state New Hampshire from here. I loaded it into PostgreSQL on Ubuntu 16.04 VB using osm2pgsql. When I use \dt on my db it shows this: However SELECT COUNT(*) FROM county; ...
1
vote
1answer
162 views

What is a correct overpass-turbo query for getting all streets in a city?

I want to get all streets in NYC using http://overpass-turbo.eu/. I tried this: [out:json]; area[name = "New York"]; (node(area)[highway=street]; ); out; However it returns { "version": 0.6, "...
1
vote
1answer
67 views

Get only street names from Overpass

Is it possible to get a list of street names (without house numbers) by bounding box with Overpass or Nominatim? I got this query, but it is with house numbers so the responce JSON is big [out:json][...
0
votes
0answers
30 views

Retrieve country for OSM elements

I'm using overpass to retrieve information about OSM ways around some coordinates. [out:json][timeout:25]; way["highway"](around:100,49.8385,24.0199); out meta; The default meta output is not ...
0
votes
0answers
46 views

Finding out if crossroad or 3-way-intersection

I'm trying to find out the type of a crossroad / intersection in overpass by given coordinates (simple 4-way-crossroad or 3-way-intersection aka Y/T intersection). Wanted to count the way-id's I'm ...
0
votes
0answers
27 views

How to get areas in an area in Overpass QL?

From documentation: Caveat: area(area); is currently not supported. How do I get all areas inside an area then? I would like to be able to recursively request admin level areas to avoid making a ...
1
vote
0answers
34 views

Using Overpass API in QGIS with osm file [closed]

I am trying to implement Overpass API for one of my projects and not able to apply the API. As there is some issue that queries are going to be implemented along the API and I am writing a python ...
3
votes
1answer
100 views

QGIS 3.8 - forest leaftype symbols

I'm pulling forest data from OSM through overpass API to QGIS 3.8. Then I have a new layer with a simple fill (filled with color). I would like to use the same symbols as in OSM instead of simple ...
3
votes
2answers
126 views

Updating Overpass-API database with local changes file

I have a local OSM server and its data is stored in openstreetmap PostgreSQL database. Also I have Overpass-API installed for the local OSM server (using this tutorial). The openstreetmap database is ...
0
votes
2answers
79 views

Get all city information (roads, buildings, ..etc) in OpenStreetMap via Overpass API

I want to draw a city (Avignon, France) with JavaFX and OpenStreetMap (via Overpass API). What is the QL request that I have to send to Overpass API to get this information?
1
vote
0answers
33 views

Extracting city information only from OpenStreetMap

I need to extract City as well as hierarchy of admin entities for selected countries. My understanding for now is that I'll have to get node primarily and find a clever filtering based on tags. And ...
1
vote
1answer
55 views

QuickOSM using Wild Cards / RegEx

Can someone explain to me how to use wild cards with QuickOSM? I'm trying to match all shops with a name starting with a specific word (e.g. Costco).
0
votes
0answers
25 views

Classifying if a coordinate lies on a building

I'm trying to classify if a given coordinate (latitude, longitude) lies within a building footprint, street or elsewhere. To accomplish this task, I'm using OSM data and the Overpass API. I wrote the ...
1
vote
1answer
49 views

Adding tags in Overpass QL

I am trying to add a custom tag to everything in my Overpass query. As far as I understand this can be achieved with convert. But so far, this kind of statement: convert way ::id=id(), :...
0
votes
1answer
54 views

Overpass query: 2 almost identical search queries - one works, one not. Why?

I'm using a tool called "Wikivoyage Districitifier" to visualize OSM boundary relations. The query below is supposed to get all relations with certain admin_level values within a defined bounding box ...
2
votes
2answers
53 views

Query OSM nodes not member of way in Overpass

How can I query OSM nodes that are not member of ways? I want to get the nodes which tagged with (traffic_calming=bump) and not member of any ways.
2
votes
0answers
83 views

Extracting highways from OSM

I am trying to extract all highway types for the world from OSM through Osmosis. My Osmosis command looks like below, however, after the extract, I find certain roads (especially, motorways and trunk ...
2
votes
1answer
70 views

Why are area queries in my own Overpass server returning different results from the official server?

Here's my query to collect all of the States within the US: [out:json]; area['admin_level'='2']['name'='United States']; (relation['admin_level'='4'](area);); out tags; My Overpass server returns ...
0
votes
1answer
63 views

Finding neighbouring countries using Overpass?

How can I find all countries that are neighbours (share a border point or line) of a given country (eg. germany) using Overpass?
0
votes
0answers
57 views

Getting all footways in a bounding box with Overpass API?

I am trying to use the Overpass Python API to find the all footways from OpenStreetMaps within a given bounding box. This is my first time using this API and am quite unsure how to write this query. ...
0
votes
1answer
101 views

Overpass API returns points instead of polygons

I'm able to retrieve geojson using the following call to the Overpass API for boroughs in London: import overpass api = overpass.API() response = api.get('relation(1811626);>;out;') However the ...
2
votes
2answers
44 views

Group results in JSON Query

I'm querying two different keys (to just make one API call) and would like to group them in the returned results. Is this possible or are the results always a per node list? Code: [out:json][timeout:...
1
vote
1answer
73 views

Finding intersections for interstates using Overpass API?

I found this query, which works for streets: way[highway][name="Mexico Road"];node(w)->.n1; way[highway][name="Bryan Road"];node(w)->.n2; node.n1.n2; out meta; I assumed it would work for ...
0
votes
1answer
64 views

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

I'm using the Overpass API of OpenStreetMap. I'm pretty new to this and I'm struggling to find a solution here since hours. I have two different sets of nodes, .a1 and .a2. I add a certain tag to ...
1
vote
1answer
61 views

Simplest way to export a data set out of OpenStreetMap's Overpass API

I would like to create a web map showing just one type of point of interest. They are made available via the Overpass API and count up to only few thousands for the whole world. I don't expect them ...
1
vote
1answer
59 views

Query nodes and attributes of parent ways

Does the Overpass API provide a way to query a list of nodes and some attributes of their parent ways, and return the data in CSV format? For example, the following will give me all motorway ...
1
vote
1answer
144 views

How to calculate the length of each way in a set in Overpass - use of foreach and sum(length())

I need help understanding the correct use of foreach and sum(length()) in an Overpass query. I've written a query for extracting all relations and ways of a given type within a bounding box, and then, ...
1
vote
1answer
56 views

How to work with overpass ways in Python?

I would like to calculate the distance of some points to the nearest motorway, for that i would obviously need a series of vectors/lines etc. to represent the motorway. On Overpass Turbo, the query ...
1
vote
1answer
56 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:...
2
votes
1answer
622 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?
1
vote
1answer
156 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
60 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
383 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 2 3 4 5 6