Hi,<br><br>I don't know more about the tagging names.<br>You should find ii) in big cities.<br><br>Use <a href="http://wiki.openstreetmap.org/wiki/Bus">http://wiki.openstreetmap.org/wiki/Bus</a><br>and <a href="http://osmdoc.com/en/tags/">http://osmdoc.com/en/tags/</a><br>
<br>Jonathan<br><br><div class="gmail_quote">On Wed, Feb 10, 2010 at 2:04 PM, Shuyan Chen <span dir="ltr"><<a href="mailto:chenshuyan0221@hotmail.com">chenshuyan0221@hotmail.com</a>></span> 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 style="padding-right: 10px; padding-left: 10px; padding-top: 15px;" name="Compose message area">
<div><font face="Calibri">Hi, Jonathan</font></div>
<div><font face="Calibri"></font> </div>
<div><font face="Calibri">Thanks for your comments.</font></div><div class="im">
<div><font face="Calibri"></font> </div>
<div>>i) 1 bus stop = 1 node<br>>ii) 1 bus route from origin to 
destination = 1 relation containing : the origin->destination route way + the 
bus stops nodes for this route ; those stops may be a nodes of route way or 
nodes not contained in >the route way but close by enough.<br><br>>Are 
there already any similar or different implementations of i) / ii) on <a title="http://osm.org
CTRL + Click to follow link" href="http://osm.org/" target="_blank">osm.org</a> data ?<br></div>
</div><div><font face="Calibri">I just want to find a way to get ii) for a bus 
route in relations to implement path find algorithm.<img title="Smile emoticon" style="margin: 0px; float: none;" alt="Smile emoticon" src="cid:189451D4B1454EC098CD2777AD0A0820@lenovoefed3116"> </font></div>
<div><font face="Calibri"></font> </div>
<div><font face="Calibri">Regards,</font></div>
<div><font face="Calibri"></font> </div>
<div><font face="Calibri">Shuyan</font></div>
<div style="font-family: Tahoma; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<div><br></div>
<div style="background: rgb(245, 245, 245) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
<div><b>From:</b> <a title="mailto:jonathan.schroder@gmail.com
CTRL + Click to follow link" href="mailto:jonathan.schroder@gmail.com" target="_blank">Jonathan-David SCHRODER</a> </div>
<div><b>Sent:</b> Wednesday, February 10, 2010 1:52 PM</div>
<div><b>To:</b> <a title="mailto:chenshuyan0221@hotmail.com
CTRL + Click to follow link" href="mailto:chenshuyan0221@hotmail.com" target="_blank">Shuyan Chen</a> </div>
<div><b>Cc:</b> <a title="mailto:dev@openstreetmap.org
CTRL + Click to follow link" href="mailto:dev@openstreetmap.org" target="_blank">dev@openstreetmap.org</a> </div>
<div><b>Subject:</b> Re: [OSM-dev] How to get the order of bus stops in a bus 
route?</div></div></div><div><div></div><div class="h5">
<div><br></div>Hi,<br>I am designing aloud, what do you think of this : <br>i) 1 
bus stop = 1 node<br>ii) 1 bus route from origin to destination = 1 relation 
containing : the origin->destination route way + the bus stops nodes for this 
route ; those stops may be a nodes of route way or nodes not contained in the 
route way but close by enough.<br><br>Are there already any similar or different 
implementations of i) / ii) on <a title="http://osm.org
CTRL + Click to follow link" href="http://osm.org" target="_blank">osm.org</a> data ?<br><br>For ii) to work in path find 
algorithms, the latter should assume that an ii) node separate from the route 
that's being considered, can be replaced by the ii) node closest to the former 
separate ii) node.<br><br>For example, if we just want to display a polyline / 
sub-way of BR route from A to B...<br>...here's one idea for a very simple use 
case where a user wants to go from bus stop A to bus stop B, A & B on a 
same bus route BR. <br><br>1) starting node is A, destination node is B, 
directions steps is empty<br>   append A to directions 
nodes<br>   append B to directions nodes<br>2) directions finding, 
every following appending equals appending [A, [here,...] ,B], without touching 
A and B :<br>   if A is not part of BR's way, then make the directions 
finding algorithm origin point be the closest node to A on BR way that is also 
closest in route distance to B; end if<br>   same for B, make 
algorithm's destination point be the closest node to B on BR way that is also 
closest in route distance to A<br>3)   run directions algorithm's and 
append nodes if any.. calculate estimate travel duration<br>4) display polyline 
/ way made up of [A,...intermediate nodes..,B]<br><br>Jonathan<br><br>
<div class="gmail_quote">2010/2/10 Shuyan Chen <span dir="ltr"><<a title="mailto:chenshuyan0221@hotmail.com
CTRL + Click to follow link" href="mailto:chenshuyan0221@hotmail.com" target="_blank">chenshuyan0221@hotmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
  <div style="padding-right: 10px; padding-left: 10px; padding-top: 15px;" name="Compose message area">
  <div><font face="Calibri">Dear all,</font></div>
  <div><font face="Calibri"></font> </div>
  <div><font face="Calibri">I would like to get  the bus stops in 
  order in a route for bus transit service ,including the bus route 
  starting point and end point(bus station or terminus).</font></div>
  <div><font face="Calibri"></font> </div>
  <div><font face="Calibri">Can anybody provide any ideas on how to achieve it? 
  Thanks in advance.</font></div>
  <div><font face="Calibri"></font> </div>
  <div><font face="Calibri">Regards,</font></div>
  <div> </div>
  <div><font face="Calibri">Shuyan</font></div>
  <div><font face="Calibri"></font> </div>
  <div><font face="Calibri"></font> </div></div><br>_______________________________________________<br>dev 
  mailing list<br><a href="mailto:dev@openstreetmap.org" target="_blank">dev@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br>