(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: http://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 ♦ |
Yes, it is possible. Please use http://overpass-api.de/api/interpreter?data=(rel(RELATION);>;);out meta; The example from above: http://overpass-api.de/api/interpreter?data=(rel(50288);>;);out meta; answered 01 Nov '12, 19:10 Roland Olbricht Excellent - thanks.
(01 Nov '12, 19:29)
SomeoneElse ♦
|
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 : http://wiki.openstreetmap.org/wiki/Servers/api.openstreetmap.fr answered 01 Nov '12, 21:44 sly |