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

Request buildings around and area osm android

I would like to perform a request to OSM Overpass Turbo API or Overpass API from and Android Application so i can get the buildings around and area using JSON. Something similar to http://overpass-turbo.eu/ with the query presented…
user2713459
  • 49
  • 2
  • 5
0
votes
1 answer

Getting the outer path of a region

I want to get the shapes of an area via overpass that is defined by the first two letters of the postal code. This query: rel["boundary"="postal_code"][postal_code~"32..."]; out geom; gets me a number of areas that I want to combine. I am…
0
votes
2 answers

Extracting nodes from highways

I am using overpass turbo to extract nodes from highways(=motorway). Below is the code that I am using. However, this code gives me all the nodes in the bounding box and does not filter the…
Manish
  • 71
  • 3
  • 10
0
votes
0 answers

Retrieving XML Attributes from OSM XML File || Android

I'm trying to retrieve speed limits using OSM/Overpass. The XML below is returned in a file called "interpreter" after querying the Overpass API. I cannot retrieve the "maxspeed" or "60" tag from this xml using Android. Could anyone offer any…
0
votes
0 answers

Using a rest API to query OSM data in Postgres DB

I have been trying to use a rest API to query my OSM data that I have already uploaded in my postgres DB. I have been trying to write a small javascript program, which makes use of a restful API (Like API 0.7 of OSM, XAPI, Overpass API - I do not…
0
votes
1 answer

Overpass API - URL fetching, not working on iPhone, working on mac

I've got this problem last time i did some coding in my project, and i just can't seem to find where the error should be located. When i try the URL in the browser on my mac, everything is working fine - and i get the json file displayed. My code is…
JMIT
  • 169
  • 2
  • 15
0
votes
1 answer

Overpass-API iOS EXAMPLE

I do not know how to add parameters to the post request to Overpass-API. To create request I am using AFNetworking. 1) at the beginning, i build query in overpass-turbo.eu than i export it to XML, so i get this
oscarr
  • 529
  • 5
  • 6
0
votes
1 answer

Overpass relation railway segments

I want to query the Overpass Api to find out the distance of special relations (railways). The request is fine, and returns me all relation, way and node objects I'm interested in. Example for Hamburg: [out:json];(rel(53.55224324163863,…
Rafael T
  • 15,401
  • 15
  • 83
  • 144
0
votes
3 answers

Getting building data at a coordinate

I would like to be able to click on a building on a map and get the polygon that comprises the building at the clicked coordinate. I looked into overpass api and tried the following:
Amelse Etomer
  • 1,253
  • 10
  • 28
0
votes
1 answer

How to query new/changed elements through Overpass API?

I'm trying to perform search by tag using the request like this: http://overpass.osm.rambler.ru/cgi/interpreter?data=[out:json];node[%22addr:postcode%22=20156];out; Is it possible to query only for nodes that has been added/modified after some…
Igor Bubelov
  • 5,154
  • 5
  • 25
  • 24
0
votes
2 answers

Openstreetmap: filter out data that have been edited after some timestamp

I want to get OSM data after some timestamp - in other words the last records after a certain timestamp. I have downloaded the osm file of the area. I went through the osmosis documentation but could not find a way to filter it by time. The result…
user3730786
  • 45
  • 1
  • 7
0
votes
1 answer

limit an overpassAPI request into a geographic border

In osm, is it possible to limit a overpassApi request into a geographic border ? For example, the following request is restricted into a polygon (line 3). What can i do to limit it in a osm relation (for example rel °62508 : Bonn) ?
user2866768
  • 3
  • 1
  • 2
0
votes
1 answer

Determining boundary box size in Openstreetmap routing algorithm

I'm developing a custom routing application using Openstreetmap. To do this I have to read (at least) the nodes and edges in a certain boundary box using an Openstreetmap API like Overpass. After that I will process the nodes and edges and apply my…
Blob911
  • 139
  • 2
  • 10
0
votes
2 answers

Is there a way to find the date when a certain key was added to an amenity in OpenStreetMaps?

As an example: I'd like to know, when was the Key "tourism" added (or last edited) of this amenities: http://overpass-turbo.eu/s/1N4 I tried with different APIs but didn't get very far. Is there a way over any API or do I have to get as SQL…
DanielW
  • 109
  • 9
0
votes
1 answer

Hot to get node by id in DomDocument?

I get this result from overpass api - this is streets. The data included in this document is from www.openstreetmap.org. The data is made available under…
Kin
  • 4,466
  • 13
  • 54
  • 106