Questions tagged [overpass-api]

The Overpass API (or OSM3S) is a read-only API that serves up custom selected parts of the OpenStreeetMap map data.

The Overpass API (or OSM3S) is a read-only API that serves up custom selected parts of the OpenStreeetMap map data (elements and tags) via a specifically crafted query language. 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.

Unlike OSM's main API, which is optimized for editing, Overpass API is optimized for data consumers that need a few elements within a glimpse or up to roughly 100 million elements in some minutes, both selected by search criteria like e.g. location, type of objects, tag properties, proximity, or combinations of them. It acts as a database backend for various services.

The overpass turbo frontend allows to interactively run Overpass API queries and analyze the resulting data on a map.

361 questions
12
votes
1 answer

Plotting streets with ggmap and geom_path

I like to plot streets with ggmap in a specific area. I got the data from osm via the overpass api. It works pretty good for most streets with geom_path. However, some streets are messed up. Any hints are appreciated. Please have a look at…
Birger
  • 1,111
  • 7
  • 17
9
votes
3 answers

Enabling CORS (Cross Origin Request) in Django

I'm trying to make use of the overpass API http://wiki.openstreetmap.org/wiki/Overpass_API with a JavaScript XMLHttpRequest in a project running on Django but I keep getting the Cross-Origin Request Blocked: The Same Origin Policy disallows reading…
Abendsen
  • 173
  • 2
  • 2
  • 5
9
votes
1 answer

How to search for multiple tags around one location?

I'm trying to figure out what's the best solution to find all nodes of certain types around a given GPS-Location. Let's say I want to get all cafes, pubs, restaurant and parks around a given point…
Willey
  • 161
  • 1
  • 9
8
votes
3 answers

TooManyRequests Overpass Error

I'm using overpy to query the Overpass API, and the nature of the data is such that I have a lot of queries to execute. I've run into the 429 OverpassTooManyRequests exception and I'm trying to play by the rules. I've tried introducing time.sleep…
Chris M.
  • 282
  • 3
  • 13
7
votes
2 answers

How to get a {{geocodeArea: xxx }} query to work in python using overpy?

I want to find all pubs in a specific area using the Overpass API and selecting the area with geocodeArea. Testing the following query on overpass-turbo.eu gives me the desired result: {{geocodeArea:berlin}}->.searchArea; ( …
rayon
  • 490
  • 7
  • 16
6
votes
4 answers

Retrieve cities list of a country

Which is the best api to retrieve all the cities in given country? I tried downloading from geonames. but it seems data is not reliable.` Is it possible to query city, along with state and country in overpass api? Can you please suggest a better way…
Kishore K
  • 2,425
  • 4
  • 18
  • 18
6
votes
0 answers

How to get parent administrative boundaries via OverPass API

Having an administrative boundary relation of certain level, what is the best way to get parent level boundaries? This works for Bratislava city part…
František Žiačik
  • 7,511
  • 1
  • 34
  • 59
6
votes
2 answers

How to get OSM data using Overpass API from jQuery?

I have the following code for requesting map data from OSM: $.ajax({ url: 'https://www.overpass-api.de/api/interpreter?' + '[out:json][timeout:60];' + 'area["boundary"~"administrative"]["name"~"Berlin"];' + …
Zelphir Kaltstahl
  • 5,722
  • 10
  • 57
  • 86
6
votes
2 answers

overpass-api ways query include coordinates

I'm trying to query Hotels in a specific area. Unfortunately I need to query nodes and ways, because some Hotels are only stored as way and some as…
Tom
  • 190
  • 3
  • 18
6
votes
1 answer

'Expected String or Unicode' when reading JSON with Pandas

I try to read an Openstreetmaps API output JSON string, which is valid. I am using following code: import pandas as pd import requests # Links unten minLat = 50.9549 minLon = 13.55232 # Rechts oben maxLat = 51.1390 maxLon = 13.89873 osmrequest =…
Balzer82
  • 999
  • 4
  • 10
  • 21
6
votes
1 answer

Overpass API dispatcher fails with Address already in use 98

I've followed the installation instructions on: http://wiki.openstreetmap.org/wiki/Overpass_API/install Initially everything worked flawless, but I would like to try and use my own custom map, BUT when I killed the dispatcher process nothing works.…
user809829
  • 1,179
  • 3
  • 14
  • 33
6
votes
1 answer

How to get point of interest near my point using overpass-api?

I am using Overpass API. I have an issue to find some points of interest (cafes, hospitals, schools) near (around in 100-200 miles) my point. I have only latitude and longitude. Overpass API gives opportunity to get POIs using your place name. But I…
5
votes
1 answer

How to extract street graph or network from OpenStreetMap?

How to extract street graph or network from OpenStreetMap ?
ethicnology
  • 474
  • 5
  • 13
5
votes
2 answers

R: How could I reduce runtime of osmdata to an igraph conversion

Is it possible to reduce the run time of the following code? My goal is to get an weighted igraph object from open street data area specified by a box boundary. Currently im trying to use the overpass api so to offload the memory load so I dont have…
Andreas
  • 397
  • 4
  • 18
  • 37
5
votes
3 answers

Choropleth map with OpenStreetMap data

My goal is to get a so-called "choropleth map" (I guess) of the zip code areas in Germany. I have found the python package "folium" but it seems like it takes a .json file as input: https://github.com/python-visualization/folium On OpenStreetMap I…
user3182532
  • 1,097
  • 5
  • 22
  • 37
1
2 3
24 25