Home▸Computer Science▸Delivery Dispatch Matching Simulator — 2D City View

Delivery Dispatch Matching Simulator — 2D City View

Interactive 2D top-down simulator of a food-delivery dispatch algorithm: watch a real greedy minimum-cost bipartite matcher assign incoming orders to idle couriers by pickup+dropoff distance, with optional order batching. Drag to pan, scroll to zoom.

Computer Science2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-mobile-food-delivery ↗ Open standalone

Behind every food-delivery app's "your courier has been assigned" notification sits a small optimization problem, run over and over in real time: given a pool of idle couriers and a queue of freshly placed orders, which courier should pick up which order to keep total delivery time low? This simulator renders a live 2D top-down city with fixed restaurants, a fleet of couriers, and a steady stream of spawning orders, and runs a real greedy minimum-cost bipartite matcher — scoring every courier against every waiting order by pickup-plus-dropoff distance and assigning the cheapest pairs first — with an optional order-batching rule that lets one courier carry two same-restaurant orders when their drop points are close enough. Tune the order rate, fleet size, and batching radius and watch average delivery time, courier utilization, and courier-km per order respond live. Drag to pan and scroll to zoom around the map.

⚙ Under the hood

Interactive 2D top-down simulator of a food-delivery dispatch algorithm: watch a real greedy minimum-cost bipartite matcher assign incoming orders to idle couriers by pickup-plus-dropoff distance, with optional order batching, and track average delivery time and courier utilization live over a top-down city map.

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)