Eli5: How does navigation software plot out the best route?

307 views

I’ve tried googling it and all I get is “Map starting point + map second point + MAGIC = best route”.

In: 1

2 Answers

Anonymous 0 Comments

A road map can be represented as a connected graph. Imagine a bunch of dots (nodes) representing intersections, and lines connecting them representing roads. Each line has some information associated with it i.e. the length of that road segment, the speed limit, etc.

Your map software stores these graphs. There are [algorithms](https://en.wikipedia.org/wiki/Shortest_path_problem#Algorithms) that will find quick routes between any two points on a connected graph. So it’s just a matter of finding the nodes closest to your starting location and ending location, and finding the quickest path between them.

You are viewing 1 out of 2 answers, click here to view all answers.