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

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

Please try

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

An example.

permanent link

answered 18 Jun '13, 07:05

Roland%20Olbricht's gravatar image

Roland Olbricht
6.7k36489
accept rate: 36%

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:

×483
×128

question asked: 17 Jun '13, 08:39

question was seen: 4,578 times

last updated: 18 Jun '13, 07:05

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