Pick two US airports and it finds the shortest route between them, or the one with the fewest flights, across 416 airports and 11,147 real routes. Then it replays the code that found the answer, line by line, beside the priority queue and hash table that code was using.
The routing is written in Java and compiled to WebAssembly with TeaVM. It runs in the browser with no server.
You need JDK 17 or newer, and Python to serve the files.
./gradlew sitepython -m http.server 8123 --directory build/siteOpen http://localhost:8123. ./gradlew test runs the tests.
- Flights come from the Bureau of Transportation Statistics' DB1B survey, a 10% sample of airline tickets, for
January to March 2018.
./gradlew buildData -Pdb1b=path/to/DB1BCoupon.csvcollapses a raw 123 MB file to the 174 KB the page loads. - Airport names and positions come from OurAirports, public domain.
- State outlines come from the US Census Bureau through us-atlas (ISC licence).

