NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Is it possible with the Overpass API to get every way in a relation where their role is forward.

For example relation 2418275 returns multiple ways. I wanted to retrieve only the node coordinates for the tram line (and not the platforms)

asked 16 Mar '14, 22:55

Kyro's gravatar image

Kyro
1216713
accept rate: 0%

edited 16 Mar '14, 22:55


Yes, it is possible to select members of a relation by their respective role: <recurse type="relation-way" role="forward" />.

Example: http://overpass-turbo.eu/s/2MU

permanent link

answered 17 Mar '14, 08:22

tyr_asd's gravatar image

tyr_asd
1.2k51927
accept rate: 64%

1

Exactly what I was looking for, Thx !

(17 Mar '14, 09:23) Kyro

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:

×483

question asked: 16 Mar '14, 22:55

question was seen: 4,541 times

last updated: 17 Mar '14, 09:23

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum