Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does route finding software work?

I'm asking at a pretty high, language independent, level.

How does route finding (as found in Google Maps 'Get directions' or a GPS) work? I can't believe it tries every conceivable route and chooses the shortest/fastest etc. There must be some logical way of finding the best route given a start and end point.

Any sort of explanation would be great.

like image 702
Chuckatron Avatar asked Feb 26 '23 10:02

Chuckatron


1 Answers

You should read up on the shortest path problem and Dijkstra's algorithm. Both these are used to determine the path to take between two points. Google Maps (and other mapping applications) add additional features (such as rerouting, etc), but these two concepts are the basic premise of how the problem is solved.

like image 162
JasCav Avatar answered Mar 04 '23 07:03

JasCav