(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's gravatar image

SomeoneElse ♦
31.7k63324734
accept rate: 15%


permanent link

answered 01 Nov '12, 19:10

Roland%20Olbricht's gravatar image

Roland Olbricht
6.2k35684
accept rate: 36%

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

permanent link

answered 01 Nov '12, 21:44

sly's gravatar image

sly
275128
accept rate: 25%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×335
×228
×97
×32
×3

question asked: 01 Nov '12, 17:28

question was seen: 6,590 times

last updated: 01 Nov '12, 21:44

powered by OSQA