In November 2022, Daniel Delling left Apple to join Google Maps as Distinguished Engineer. Delling is one of a small number of researchers whose work underpins essentially all modern route planning: he co-invented RAPTOR, the algorithm behind OpenTripPlanner and Navitia, and co-authored the Customizable Route Planning framework that enables fast hierarchical search on road networks. His move to Google, after eight years at Apple, likely went unnoticed outside of the routing community who could have foreseen its implications.
Eighteen months later, two papers appeared with Delling as co-author, both from Google Research. One, published at AISTATS 2024 by Alex Zhai, Dee Guo, Kostas Kollias, Sreenivas Gollapudi, and Delling, addresses alternative route generation. The other, published at NeurIPS 2024 by Eric Zhao, Pranjal Awasthi, Zhengdao Chen, Gollapudi, and Delling, proposes something more radical: replacing the routing algorithm itself with an autoregressive transformer that predicts paths edge by edge ("next edge prediction"), conditioned on natural language queries. Together they suggest a strategic direction at Google Maps that goes well beyond incremental improvement.
To understand why these papers matter, one needs some background on what they are departing from. The routing algorithms that power every major mapping service emerged from a specific research community, largely centred at the Karlsruhe Institute of Technology and Microsoft Research Silicon Valley, between roughly 2009 and 2015. Four algorithm families dominate: Transfer Patterns, which Google has used since 2010; RAPTOR, which became the open-source standard; the Connection Scan Algorithm; and Trip-Based Routing. These are beautiful pieces of engineering. They solve their target problems exactly, in milliseconds, on networks with hundreds of millions of connections.
That said, they share a limitation that has become harder to ignore. They optimise for objectives that can be stated precisely and evaluated efficiently: earliest arrival, fewest transfers, shortest distance. Real users increasingly want things these algorithms cannot express, like stopping off en route at a coffee shop/gym/supermarket, to avoid a particular tube line, or even plan a day trip to several places within a time budget. These requests either require bolting ad hoc extensions onto systems that were not designed for them, or they require something structurally different.
The two papers examined in this series represent two distinct responses to that limitation. The first stays close to the classical paradigm, using a neural network (BERT) to approximate an expensive quality metric that traditional heuristics handle poorly. The second departs from it more completely, framing routing as a sequence prediction problem amenable to the same autoregressive methods that power language models. They are not interchangeable ideas and they are at different stages of maturity.
This series has three parts. The first surveys the algorithmic foundations, with attention to the actual trade-offs practitioners face rather than textbook descriptions. The second examines the alternative route paper and its careful integration of learned components with the existing CRP infrastructure. The third analyses the semantic routing paper, which is more ambitious, more speculative, and more interesting in what it reveals about where Google thinks routing needs to go.
References
- Bast et al. 2010. Hannah Bast, Erik Carlsson, Arno Eigenwillig, Robert Geisberger, Chris Harrelson, Veselin Raychev, and Fabien Viger. "Fast Routing in Very Large Public Transportation Networks Using Transfer Patterns." ESA 2010, LNCS 6346, pp. 290–301.
- Delling, Pajor, and Werneck 2012. Daniel Delling, Thomas Pajor, and Renato F. Werneck. "Round-Based Public Transit Routing." ALENEX 2012, pp. 130–140.
- Delling et al. 2017. Daniel Delling, Andrew V. Goldberg, Thomas Pajor, and Renato F. Werneck. "Customizable Route Planning in Road Networks." Transportation Science 51(2):566–591, 2017.
- Dibbelt et al. 2013. Julian Dibbelt, Thomas Pajor, Ben Strasser, and Dorothea Wagner. "Intriguingly Simple and Fast Transit Routing." SEA 2013, LNCS 7933, pp. 43–54.
- Witt 2015. Sascha Witt. "Trip-Based Public Transit Routing." ESA 2015, LNCS 9294, pp. 1025–1036.
- Zhai et al. 2024. Alex Zhai, Dee Guo, Kostas Kollias, Sreenivas Gollapudi, and Daniel Delling. "Deep Learning-Based Alternative Route Computation." AISTATS 2024, PMLR 238.
- Zhao et al. 2024. Eric Zhao, Pranjal Awasthi, Zhengdao Chen, Sreenivas Gollapudi, and Daniel Delling. "Semantic Routing via Autoregressive Modeling." NeurIPS 2024.