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

How to locate intersections of a specific city?

I am looking to find the longitude/latitude of all street intersections of Chicago. I happened to stumble upon overpass turbo, but I'm unfamiliar with how to code for it. I found this code below locates all intersections for an area in New York…
Bob
  • 115
  • 10
0
votes
1 answer

How to find nodes within ways in Overpass QL?

I have a query which returns a number of ways. I want to find nodes matching certain criteria which appear within those ways. Note that the nodes I'm interested in do not form part of the way itself, but do appear within the bounds of the way. Also,…
stripybadger
  • 4,539
  • 3
  • 19
  • 26
0
votes
1 answer

Filter Overpass API results to include results with tags

Starting out with the Overpass API. Trying to output only results that have information within the "tags" output. [out:json][timeout:25]; ( node(around:50,24.650260, 46.708768); way(around:50,24.650260, 46.708768); rel(around:50,24.650260,…
Wil Poole
  • 23
  • 3
0
votes
1 answer

Missing data for geojson

I made the following query in overpass-turbo [out:json][timeout:25]; // gather results ( // query part for: “amenity=hospital” node["amenity"="hospital"]({{bbox}}); way["amenity"="hospital"]({{bbox}}); …
asimkon
  • 915
  • 1
  • 14
  • 21
0
votes
1 answer

Displaying marker in middle of openstreetmap polygon (iOS)

I'm trying to create an application which will display children playground. I found that open street map actually has pretty good data for this. So I used the http://overpass-turbo.eu to extract the data. I then am using mapbox to display the…
otusweb
  • 1,638
  • 1
  • 19
  • 30
0
votes
1 answer

OSM - Find all optional routes in specific bounding-box

My goal is to get a list of all optional routes in certain area. I want to use OSM for achieving this data Route means pair or intersections that it's possible to drive from the first intersection to the second. In the case at the image: The…
erez
  • 399
  • 1
  • 6
  • 17
0
votes
1 answer

Sorted path in OpenStreetMap and overpass

Hithere, i have got a list of incident in Italian motorway and the kilometer where they happened. I should find lat and long of the event. I extracted all nodes from the motorway using this script: . [out:json][timeout:25]; //fetch area “Italy”…
Francesco
  • 41
  • 7
0
votes
1 answer

java.net.ConnectException: Failed to connect to overpass-api.de/178.63.48.217:80

Friends !!! I am new to Java & I have written my first following coding to get data thru Overpass API. Problem Statement But Overpass API server is not responding to Java_Servler_request (Hence Connection Timeout happens). My Trials I tried thru…
Amit Panasara
  • 600
  • 8
  • 16
0
votes
0 answers

OpenStreetMap Overpass query

Im having some issues querying the openstreetmap DB using overpass. What I want is to get all the nd nodes in a way, so my query is like so: [out:json][timeout:30]; (way(id:397466166);._;>;); out body center qt 15; This...sorta works. It gives me…
0
votes
1 answer

Nodes of a UK street by name of road AND town/city/county

Is it possible to get nodes of a particular street of a particular town/city/county/country? This is not enough. [out:json][timeout:25]; way["name"="Kennington Road"]; //all roads named such on the planet //how do I limit it further? // I know I can…
Hiwa
  • 587
  • 6
  • 21
0
votes
1 answer

Extract ids from OpenStreetMap Overpass API output (python list in dictionary)

I'm querying OpenStreetMaps' Overpass Turbo API (Link) with Python import requests import json lat='51.404924' lon='12.444895' overpass_url = "http://overpass-api.de/api/interpreter" overpass_query =…
0
votes
1 answer

Convert geojson polygons into points with node using query-overpass and turf.js

I use the node module "query-overpass" for a query to get farmshops from openstreetmaps. I would like to convert all polygons to points inside this script. I use turf.js to get the centroids of theese polygons, but I am not able to change the…
Stefan
  • 69
  • 7
0
votes
1 answer

OpenstreetMap Overpass API - Validate tag if present

I have this query [out:json]; ( way['addr:street'='Kurzenmoor']['addr:housenumber'='12']['addr:postcode'='25370']['addr:country'='DE']; node(around:700)['highway'='bus_stop'][!'ref']; ); out; This does not return a result due to the fact that…
TheNiceGuy
  • 3,462
  • 8
  • 34
  • 64
0
votes
1 answer

How get all ways without ND tags in Overpass Turbo

I have this query, area["name"="Greater London"]; way(area)["amenity"="restaurant"]->.all; ( .all; - ._; ); (._;); out geom; which return me this result
0
votes
1 answer

Does using the Overpass polygon query have a computational advantage over a bounding box?

For a project on geospatial data analytics, we are currently extracting road type and speed limit data of certain roads along a track by using Overpass' polygon query (where we define the roads by a buffer zone around them). The problem is that in…
M V
  • 3
  • 4