That link is broken. Try:<br><br><a href="http://wiki.openstreetmap.org/index.php/Relations">http://wiki.openstreetmap.org/index.php/Relations</a><br>and<br><a href="http://wiki.openstreetmap.org/index.php/OSM_Protocol_Version_0.5">http://wiki.openstreetmap.org/index.php/OSM_Protocol_Version_0.5</a><br>
<br><div class="gmail_quote">On Thu, Apr 24, 2008 at 9:19 PM, Dave Stubbs <<a href="mailto:osm.list@randomjunk.co.uk">osm.list@randomjunk.co.uk</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Thu, Apr 24, 2008 at 12:22 PM, Lester Caine <<a href="mailto:lester@lsces.co.uk">lester@lsces.co.uk</a>> wrote:<br>
> Jeffrey Martin wrote:<br>
>  > I've made a decision for what I am going<br>
>  > to do.<br>
>  ><br>
>  > If I wait until there is some standard way<br>
>  > it will be a hassle to find all these stops<br>
>  > later instead of putting them in now<br>
>  > with all the other data, and I might loose<br>
>  > my little scraps of paper.<br>
>  ><br>
>  > Here's my plan of action. I'm going to put<br>
>  > a node on the exact location of each<br>
>  > bus stop offset from the way. I don't want<br>
>  > to loose that location data until I'm sure we<br>
>  > want to throw it out. Putting a node on the<br>
>  > way instead would essentially erase the location<br>
>  > of the stops and shelters.<br>
>  ><br>
>  > If someone wants to come along later and put<br>
>  > a node on the way or make some kind of association<br>
>  > they can do that.<br>
><br>
>  That does seem to be the sensible way of doing it, in the absence of any other<br>
>  guidelines. What of cause is missing is some means of relating it easily to<br>
>  the way that then are actually linked to ?<br>
><br>
>  A nice 'is_in' link to the 'unique_id' of the way so that one can actually<br>
>  find all the bus stops on a route ;) Looking at the way things have developed,<br>
>  is there any reason we can't set a tag for is_in, and then select a way, so<br>
>  that the key becomes is_in=#xxxxxxxx ?<br>
><br>
>  I don't think Relations has the necessary structure yet to be useful here?<br>
<br>
</div></div>If you want to link two nodes together, then the easiest most obvious<br>
way of doing it is to use a way. A way is an object that links two or<br>
more nodes afterall.<br>
If you want to link a node and a way, the a relation is your tool.<br>
This is exactly what relations do, they link and relate objects -- the<br>
advantage over putting IDs in tags is that any editor that supports<br>
relations in general will know about the connection as will the API,<br>
and the DB can maintain referential integrity so you don't end up with<br>
hanging links.<br>
<br>
You can do nice things with the API such as<br>
<a href="http://api.openstreetmap.org/api/0.5/way/" target="_blank">http://api.openstreetmap.org/api/0.5/way/</a><way_id>/relations -- which<br>
tells you what relations the way belongs to.<br>
<font color="#888888"><br>
Dave<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
talk mailing list<br>
<a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk" target="_blank">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://bowlad.com">http://bowlad.com</a>