Tinker Finding the way

by Samy (Kondasamy Jayaraman)

Dijkstra: 28 of 30 junctions looked at.

Chapter 6 of 7

Whole-country maps

Larkspur’s town has 30 junctions. A country’s map has millions, and drivers want an answer at once.

This chapter: How does a map app answer fast on a map that big?

About this chapter

You will learn

  • Plain Dijkstra looks at too much
  • Shortcuts are worked out ahead of time
  • A route question then uses the shortcuts

Words you’ll meet

Shortcut
A made-up road between two junctions that stores the quickest minutes between them.
Contraction hierarchies
A method that adds shortcuts ahead of time, so a route question skips minor junctions.

Step 1 of 3

Dijkstra looked at 28 of our 30 junctions. Western Europe’s map has 18 million, and drivers want answers now.

Predict how map apps manage it.

Geisberger and colleagues (2008) tested on a Western Europe road map of about 18 million junctions: about 10 minutes of work ahead of time, then each route question in about 0.2 milliseconds. doi.org · checked 2026-10-30

How do map apps answer that fast on a whole country?