How does a map app pick a route across a city in milliseconds? Lessons, a lab and the engines that use it.