next up previous contents
Next: Link travel times Up: Route planner Previous: Introduction   Contents


Fastest Path

The typical method to obtain routes is to calculate fastest paths. This is achieved via a standard shortest path algorithm by using link travel time as link cost. These algorithms typically go from node to node, which means that we have to translate our starting and ending locations to the corresponding nodes. Such an algorithm (Dijkstra algorithm, see e.g. ()) then can proceed as follows:

One can stop when the destination node is about to be expanded. Note that one cannot stop when the end node is touched for the first time (i.e. when its time is set from infinity to some finite value) since some better time can be found later. The full path can now be found by taking the end node, and following the pointers back to the start node.


next up previous contents
Next: Link travel times Up: Route planner Previous: Introduction   Contents
2004-02-02