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
0
votes
0 answers

OSM get all roads for a given US county as a shapefile

I am working on a project where I need to get a shapefile of all roads in a given US county from open streetmap data, add some information to the county roads, then merge the individual county road shape files into a larger single shapefile using…
0
votes
1 answer

Inconsistent Overpass API rate-limiting between local machine and server?

Once a minute, I run the following Overpass query (incrementing the minutes accordingly): [adiff:"2020-06-16T17:56:00Z","2020-06-16T17:57:00Z"]; nwr(changed:"2020-06-16T17:56:00Z","2020-06-16T17:57:00Z"); out meta geom; During testing, I was…
Mike Davlantes
  • 1,038
  • 14
  • 16
0
votes
0 answers

How convert OSM relation to GeoJSON with LineString?

I want to get the data for a relation from the overpass turbo API, convert it to GeoJSON and get the LineString. What script/library should I use? I am using the query below to get the data. [out:json][timeout:300]; ( relation(19763); <; ); out…
Dimitar
  • 18
  • 1
  • 4
0
votes
1 answer

Extract parameter "maxspeed" from JSON generated with OverpassAPI in python

This is my JSON: { "version": 0.6, "generator": "Overpass API 0.7.56.1004 6cd3eaec", "osm3s": { "timestamp_osm_base": "2020-05-01T10:56:02Z", "copyright": "The data included in this document is from www.openstreetmap.org. The data is…
Wout VC
  • 327
  • 1
  • 4
  • 8
0
votes
1 answer

Reverse geocode latitude/longitude coordinates to retrieve landuse data (eg. residential area, highway, etc.)

I would like to analyse the locations of electric vehicle charging stations for Germany, Italy and France. Those three countries, because they differ quite a lot in regard to their respective incentive programmes for public charging station…
kemon
  • 3
  • 1
0
votes
0 answers

Return polygon locations for the districts of a city

This query returns district boundaries and admin_center-s too, I wonder if there is a way to exclude admin_center-s using the api. https://overpass-turbo.eu/s/RWJ
Gopid
  • 83
  • 8
0
votes
0 answers

How do I count the total number of times a node appears is a collection of ways?

This query returns all of the vehicle roadways in a certain bounding box (bbox): """ nwr["highway"="(motorway|trunk|primary|secondary|tertiary|(motorway|trunk|primary|secondary)_link)"]({{bbox}});out geom; """ Each Way is a collection of nodes. I…
David Bernat
  • 324
  • 2
  • 11
0
votes
1 answer

Overpass API find all boundaries that contain a list of nodes

I would like to return a unique list of all boundaries that contain a set of specific nodes (I have that working), But I also want the results to tell me which of my listed nodes are found in which area. This gives me all the areas that contain my…
0
votes
1 answer

Overpasser library using

Ok, I'm trying to use overpasser library https://github.com/zsoltk/overpasser, and for some reason when I'm trying to use default example from github page it return nothing as OverpassQueryResult, tried putting different data, and google a lot - no…
0
votes
1 answer

Overpy returning attribute error upon import

I've been testing some code utilizing overpy before christmas and now it's giving me an attribute error. Is anyone else having this issue? Or is my console corrupted? Code: from geopy.geocoders import Nominatim import overpy api =…
Pat
  • 41
  • 6
0
votes
1 answer

Ways in relations not found when importing data to Overpass API

When importing region data into my local instance of Overpass API DB bin/init_osm3s.sh slaskie-latest.osm.bz2 "db/" "binaries/" --meta I got a ton of warnings like compute_geometry: Way 539932453 used in relation 10072392 not found. Although the…
dzieciou
  • 4,049
  • 8
  • 41
  • 85
0
votes
0 answers

Error while importing osm.bz2 to existing openstreetmap db

When I installed Overpass API 2 years ago (http://overpass-api.de/full_installation.html), I used the following commands to import it: wget -O france-latest.osm.bz2 "http://download.geofabrik.de/europe/france-latest.osm.bz2" bin/init_osm3s.sh…
0
votes
0 answers

Missing data into my OpenStreetMap database (with Overpass API)

I try to use Overpass API over europe osm data. I want to get all European country (+ their islands). Example, for France : Metropole + Corsica + Guadeloupe + Martinique... To do it, I downloaded europe OSM datafile from geofabrik :…
Chris
  • 234
  • 3
  • 16
0
votes
1 answer

is there any relationship between zoom level and latitude longitude in OVERPASS API?

I am working on project : I need to get data as xml document using Overpass Api and Draw Map using JAVAFX.... so based on this java Example From OpenStreetMap Documentation: https://wiki.openstreetmap.org/wiki/Java_Access_Example I can get data…
0
votes
1 answer

Overpass QL: Possibility to set "around" globally like bounding box (bbox)

I'm trying to use the Overpass Api to get information from OpenStreetMap around my current position via Get. Using a Bounding Box it…
mjd
  • 109
  • 1
  • 1
  • 11