Why not ask your question on the new 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

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
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

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



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:


question asked: 25 Sep '10, 21:55

question was seen: 7,435 times

last updated: 26 Sep '10, 19:31

powered by OSQA