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

How to load all Nodes from Relation via OverpassAPI

0

Hi there. Can anyone tell me how to get all nodes from a relation by rel-id?

asked 17 Jun '13, 08:39

Ogmios's gravatar image

Ogmios
766202639
accept rate: 25%

2

Do you mean nodes directly in the relation, or all nodes recursively (the nodes in ways and relations that are member of the relation you want to fetch).

(17 Jun '13, 09:47) emj
1

Nodes directly in the relation

(17 Jun '13, 22:09) Ogmios

One Answer:

5

Please try

rel(ID_OF_RELATION);node(r);out meta;

An example.

answered 18 Jun '13, 07:05

Roland%20Olbricht's gravatar image

Roland Olbricht
6.7k36489
accept rate: 36%

Source code available on GitHub .