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

Filtering intersections to (4-way intersections, T-junctions, and other ) using Overpass API in a given bounding box

There is a script Here that can process the data from OSM to detect intersections in a given bounding box. It works by getting all the ways in a given bounding box and then finding other ways that share common nodes with these roads. Here is the…
Nebiyou Yismaw
  • 740
  • 4
  • 12
0
votes
1 answer

query to overpass api in java ... i want to specify the zoom in the query for the draw the response .. what i must add in my code for doing that?

I work in a project in java .. i want to specify the zoom in the overpass query ? because i want to draw the response (xml file) ?? public static Document getNodesViaOverpass(String query) throws IOException, ParserConfigurationException,…
Yasiz
  • 13
  • 4
0
votes
1 answer

can we used world update for France only server ? seems to make wrong query result

On my local overpass api server with only french data on which is applied hourly planet diff, some of the query responses are wrong. It's not doing it for each query : but something like once every 200 requests , sometime more ... for example :…
0
votes
1 answer

How to query Overpass Turbo through Java within an Android Native Activity to determine classification of highway?

I am trying to build a an android application that can determine the type of highway the user is on by latitude and longitude coordinates. Is there a way to query overpass turbo to retrieve the type or classification of highway ?(whether it is…
0
votes
1 answer

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 Baja California in the results for this query, even…
James Chevalier
  • 10,604
  • 5
  • 48
  • 74
0
votes
1 answer

How to find all ways in an administrative area

I would like to find all the streets in a suburb. I can find the boundary of the suburb with a query like: [out:json][timeout:25]; ( relation["boundary"="administrative"]["name"="Crows Nest"](around: 250,-33.8255609,151.1992762); ); out…
yarrichar
  • 423
  • 5
  • 17
0
votes
1 answer

Does the Overpas API installation's Area Creation process resume if stopped/started?

The Area Creation process can take up to 24 hours. If something happens during that time which causes the process to stop, will it resume when I run it again or does it start back over from the beginning? We can assume for this question that the…
James Chevalier
  • 10,604
  • 5
  • 48
  • 74
0
votes
0 answers

Find label of a city in OSM map

I would like to know if it is possible to find label of the beginning of a village, city or town? I mean if there is some difference in 2 points, one 100 meters before the mark and the other 100 meters after the mark so that I know which one is in…
0
votes
0 answers

Administrative places with openstreetmap

I'm having alot of problems understanding the queries of the overpass-turbo api I am trying to get all the provinces of every country in the world. Or all the provinces of 1 certain country. I think the province in this api is called an…
0
votes
2 answers

Upgrade an overpass layer code to use react-leaflet v2

The question Leaflet plugin only working when geolocation is enabled had a nice wrapping of the OverpassLayer OSM for react-leaflet. Unfortunately, it only works for react-leaflet v1. import { LayerGroup } from "react-leaflet"; import L from…
Matthieu Brucher
  • 21,634
  • 7
  • 38
  • 62
0
votes
0 answers

Trying to retrieve road speed limit from drivers current location

I am trying to retrieve current speed limit of a given road location data is passed to the Open Street Maps api every 2-3 seconds as the vehicle is in motion. I have tried the code below using [around] however it only outputs results when the radius…
user3939487
0
votes
0 answers

How to retrieve all airports around a given osm-ID

I want to retrieve all airports around a city (g.e. Leipzig) within a radius of 50km. I tried this [out:csv(::type,name, 'name', ::id; true; ";")]; ( relation["iata"~".*"](around: 50000, 51.3124404, 12.4131075); node["iata"~".*"](around: 50000,…
0
votes
0 answers

Workflow PostGIS-table for OSM-mapping

I use OSM-data for the development of an population disaggregation algorithm. In order to improve the results I want to add missing attributes to some of the buildings with an OSM-editor. I am identifying these buildings in PostGIS. As I want to…
Amaru
  • 11
  • 1
  • 2
0
votes
0 answers

overpass not returning some POIs

I am trying to get all POIs around a specified geom (Lat, Lon) but for some reason some POIs are missing in the response. For example node (around:75,54.071497,9.986973); out body; is not returning "Klatsch Palais" even tough its shown on the map…
hans2k6
  • 29
  • 5
0
votes
0 answers

Getting wrong coordinates for amenities using overpass API

I am using overpass API to get amenities around (within radius of 200 m) particular location. I am able to receive the results but for last 8 records (from 20 to 28), i get wrong coordinates. Can somebody help, is there something wrong with…
Northern Shadow
  • 303
  • 1
  • 4
  • 16