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

Is it possible at all or is it one way relationship only?

asked 25 Sep '10, 21:55

Kozuch's gravatar image

Kozuch
1.7k587285
accept rate: 8%


You can ask the OSM API with a special API call. Basically you do something like this: GET /api/0.6/[node|way|relation]/#id/relations . See the link for details. If you are using the planet file or some extract of it, there is no direct link from the member object to the relation. You have to go through all the relations and look at each member.

permanent link

answered 26 Sep '10, 08:10

Jochen%20Topf's gravatar image

Jochen Topf
5.2k55074
accept rate: 31%

The question did not seem to specify whether this is a programmatic or user level question. So, if you are using JOSM, for example, all relations the selected feature is member of will appear in the Properties/Memberships pane

permanent link

answered 26 Sep '10, 19:31

Richlv's gravatar image

Richlv
1.7k153142
accept rate: 22%

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:

×236
×205
×167

question asked: 25 Sep '10, 21:55

question was seen: 7,635 times

last updated: 26 Sep '10, 19:31

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