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

Overpass API : Every way in relation with role forward ?

1

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


One Answer:

3

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

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

Source code available on GitHub .