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

asked 25 Sep '10, 21:55

Kozuch's gravatar image

Kozuch
1.6k567282
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
4.4k54664
accept rate: 34%

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.6k142936
accept rate: 29%

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:

×190
×156
×139

question asked: 25 Sep '10, 21:55

question was seen: 5,587 times

last updated: 26 Sep '10, 19:31

powered by OSQA