Home▸AI & Machine Learning▸Microtransit Dispatch 2D — Cheapest-Insertion Routing

Microtransit Dispatch 2D — Cheapest-Insertion Routing

Interactive 2D top-down simulator of on-demand microtransit dispatch: a fleet of shared shuttles serves live pickup/dropoff requests using the cheapest-insertion heuristic for the dynamic dial-a-ride problem. Click the map to add your own ride request and watch the routing update live.

AI & Machine Learning2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-next-generation-intelligent-public-transportation-systems-solutions-co ↗ Open standalone

This 2D top-down companion keeps the exact dispatch model of the 3D version: rider requests (pickup and dropoff) arrive on a city grid and a dispatcher must instantly decide which shuttle should serve each one using the cheapest-insertion heuristic for the dynamic dial-a-ride problem — inserting each pickup and dropoff wherever it adds the least extra driving distance to a vehicle's current route, subject to seat capacity. Unlike the 3D version, here you can click directly on the map to drop your own pickup point and then a dropoff point, watching in real time which van and which slot in its route the greedy heuristic chooses. Live readouts track trips served, average rider wait time, the average detour ratio riders experience from being pooled, and how fully the fleet is utilized, so you can see the effect of adding vans, changing seat capacity, or driving up demand.

⚙ Under the hood

A 2D top-down companion to the 3D microtransit dispatch sim: a fleet of shared shuttles serves live pickup/dropoff requests with the cheapest-insertion heuristic, and you can click the map to drop your own pickup and dropoff and watch the routing update instantly.

microtransitdispatch algorithmdial-a-rideroute optimizationpublic transit2d

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

What did you find?

Add reproduction steps (optional)