Seattle Dispatch Lab
A food-delivery dispatcher you can watch and tinker with. Simulated drivers, customers, and restaurants move on Seattle's real streets, slowed by real freeway traffic, while a dispatcher decides which driver gets which order.
What you can do
Press Start, and a Friday begins at 10:00. Change the speed, switch the dispatcher mid-day, or click a driver to follow them. To try a different day, restart with more drivers, more orders, another start hour, or more traffic. The same random seed gives the same day.
The full report shows every measure for the day so far, and Compare dispatchers replays the same day under all three, side by side. The page's address always describes the scenario that's running, so you can copy it, or use the copy-link button, to share that exact day.
Three dispatchers take turns:
- Nearest free driver: each order, oldest first, takes the closest free driver at once.
- Batched matching: every 30 seconds, it looks at all open orders and free drivers together and picks the pairs with the lowest total cost.
- Matching + just-in-time: the same, but it holds an order back until a driver sent now would arrive about when the food is ready.
Everything runs in your browser: the simulation runs in a background thread, and the map is drawn from the street data, with no map service. It's a learning project, not affiliated with any delivery company, and it uses no company's data.
Data and licences
- Streets and restaurant locations © OpenStreetMap contributors. The street network the simulator downloads (network.bin) is a database derived from OpenStreetMap, available under the Open Database License.
- Freeway speeds are derived from the Freeway Inductive Loop Detector Dataset for Network-wide Traffic Speed Prediction (UW STAR Lab, with data from WSDOT, zenodo.org/records/3258904), under CC BY 4.0.
- The code is rio-sanjuan/seattle-dispatch-lab, under the MIT license.