News for hackers. Stuff that matters.
Re:Routing on OpenStreetMap.org by teraflop on Monday February 16, 2015 @10:08PM (#9060470)
The algorithm behind OSRM is actually fairly new, and quite clever. By generating some expensive lookup tables up front, it's possible to do exact shortest-path route finding on huge near-planar graphs (like, say, all the roads in the USA) in a matter of milliseconds, or even microseconds.

It's a great example of how theoretical CS research can have a huge impact on practical applications.

http://en.wikipedia.org/wiki/Contraction_hierarchies

http://algo2.iti.kit.edu/documents/routeplanning/geisberger_... (PDF)

Re:Routing on OpenStreetMap.org by karussell on Tuesday February 17, 2015 @02:03AM (#9061015)
It is not a lookup table - think more of some additional shortcuts you introduce for a certain mode. This way you get lots of speed but loose flexibility. In GraphHopper you can enable and disable it, the code is here https://github.com/graphhopper/graphhopper/blob/master/core/...
Re:Routing on OpenStreetMap.org by lorenzhs on Tuesday February 17, 2015 @04:45AM (#9061380)
If you are interested in further details on algorithms for route planning, check out http://i11www.iti.uni-karlsruhe.de/teaching/sommer2014/route... for a whole lecture on them (slides are in English). Each chapter also contains a list of relevant publications.
Re:Routing on OpenStreetMap.org by frik on Tuesday February 17, 2015 @12:43AM (#9060843)
Can you point to the actual code?
Re:Routing on OpenStreetMap.org by dbaupp on Tuesday February 17, 2015 @12:49AM (#9060853)
Looks like it might be https://github.com/Project-OSRM/osrm-backend/tree/master/con... , but I don't know for sure.