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