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 href="http://osm.org">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 href="mailto:chenshuyan0221@hotmail.com">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">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>