This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Overpass: Is it possible to use it as an alternative to the API relation /full call?

2

(prompted by this question and this question)

Imagine that I'd like a .osm file containing every sub-relation, way and node that's part of relation 50288. I could do an API call to:

https://www.openstreetmap.org/api/0.6/relation/RELATION/full

But I don't really want the API taking the time to sort out that rather large result for me rather than processing time-critical requests for mappers.

Overpass looks like it can do things like this, but there doesn't seem to be an example of it on the wiki. Can anyone suggest an Overpass query that would return the same data as an API relation /full call? If not Overpass, is there anything else out there that can?

asked 01 Nov '12, 17:28

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%


2 Answers:

3

answered 01 Nov '12, 19:10

Roland%20Olbricht's gravatar image

Roland Olbricht
6.7k36489
accept rate: 36%

Excellent - thanks.

(01 Nov '12, 19:29) SomeoneElse ♦

3

If for any reasons you don't want to learn the overpass API syntax, or you use a tool that allready talk the API 0.6 syntax and don't want to/can't convert.

I wrote an API 0.6 to Overpass API converter that you can query here :

http://api.openstreetmap.fr/api/0.6/relation/RELATION ID/full

-> http://api.openstreetmap.fr/api/0.6/relation/50288/full

wiki doc : https://wiki.openstreetmap.org/wiki/Servers/api.openstreetmap.fr

answered 01 Nov '12, 21:44

sly's gravatar image

sly
290129
accept rate: 25%

Source code available on GitHub .