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.

34 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
783 views

Download OSM data with QuickOSM and QGIS Modeler

I've been using QuickOSM plugin for some time and I would like to create some model that allows me to automate OSM data dowload in order to make sure that I am always working with the most updated ...
2
votes
0answers
41 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
0answers
38 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 ...
2
votes
1answer
205 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 ...
2
votes
0answers
165 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 ...
2
votes
0answers
212 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 ...
2
votes
0answers
350 views

OpenStreetMap and Python recursively find all the bus routes in a city

I want to retrieve all the bus routes (as a collection of lines) from openstreetmap for a given city. I'm currently using the overpy module (v0.4) to access the Overpass API and this query: QUERY = "...
2
votes
0answers
778 views

Finding city area by city, region, country using overpass API

I am trying to define area for a particular city to find things in this area. I know about queries area[name="New York"]; node[...](area). The problem with such queries is that there can be many areas ...
1
vote
0answers
156 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 ...
1
vote
0answers
343 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
51 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"]; ...
1
vote
0answers
29 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
vote
0answers
30 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 ...
1
vote
0answers
105 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 ...
1
vote
1answer
239 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 ...
1
vote
0answers
61 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: [...
1
vote
0answers
86 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[...
1
vote
0answers
285 views

OSM City neighbors - distance matrix

I need to create distance matrix between cities in a country in Python. First step I did was to download nodes with place=city|town|village from OpenStreetMap, then I was able to download street ...
1
vote
0answers
57 views

Keep multiple OSM Imports up to date

I have multiple instances of my application for my users. Each user can specify an area which I want to load in my own PostgreSQL server, that make it's possible to render maps with my own mapnik ...
1
vote
0answers
195 views

Overpass api intersection

I have a lat-lon point, translated to a street name via nominatim, and I want to find the intersecting streets to retrieve the user something like this: 123rd St, between 456th Bv and 789th Rd ...
1
vote
0answers
302 views

Limiting search only for freight railway/road in overpass turbo?

The following Overpass Turbo query seems to work, but I want only railways and roads that can be used for freight transportation: <osm-script output="xml"> <id-query {{nominatimArea:Nürnberg}...
1
vote
0answers
339 views

Overpass install fails with a broken pipe error

I've installed a Ubuntu box which will be my one of many overpass api servers. Basically the installation is good, and I've imported many testing areas including andorra-latest.osm.bz2 and taiwan-...
1
vote
0answers
323 views

Overpass install fails with std::bad_alloc

I'm following the official HOWTO here: http://wiki.openstreetmap.org/wiki/Overpass_API/Installation I get to the database import step. I have osm.bz2 dumps downloaded from Geofabrik.de. init_osm3s....
1
vote
0answers
162 views

Is there a default limit on concurrency in overpass-api?

I have setup overpass-api in my local machine (16gb ram,32 core,2399Mhz). I send 100 threads each with one request like this: (data=[out:json];node(around:10000,13.0894,80.2428)['amenity'];out count;)...
1
vote
0answers
1k views

Setting up an own instance of Overpass API server

I need to use overpass-api server local, I found this link: Overpass-Api-Install but it says "Additional functionality like management of areas and the line diagram utils aren't covered yet",what ...
1
vote
1answer
69 views

around filter: at least x meters away from anything

With the around filter I can find things close to anything for example: way(around.golf_course:250)["natural"="beach"]; How can I form the opposite? I need things who are at least minimum x meters ...
0
votes
0answers
25 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
69 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
0answers
56 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"}}; {{...
0
votes
0answers
43 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
0answers
201 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 ...
0
votes
1answer
447 views

Downloading large data sets on overpass-turbo?

I'm trying to download historical data from overpass-turbo and I keep getting this error. Error: runtime error: open64: 0 Success /osm3s_v0.7.54_osm_base Dispatcher_Client::request_read_and_idx::...
0
votes
0answers
71 views

How to retrieve bus line including stop names?

I don't know much about OSM, OverpassTurbo, but would like to be able to query OSM about a given bus line, and retrieve the line and all the station names. Then, I'll export the data as GPX so I can ...
0
votes
1answer
108 views

How to merge waypoints or tracks into a single block?

When downloading routes from OverpassTurbo as KML files, I end up with two blocks: One is made of "<Placemark><LineString><coordinates>", and the other of "<Placemark><Point&...