About Daloy
A free, browser-based microsimulation of Philippine road traffic. No login, no install, runs entirely on your device.
How it works
Each vehicle is an agent that follows the Intelligent Driver Model (IDM) for car-following. At every time step it decides its acceleration based on (a) the gap to the vehicle ahead, (b) the speed difference with that vehicle, and (c) its own desired speed. Signals are state machines — fixed-time by default, with an optional adaptive mode that grants green to the approach with the longest queue.
The simulation runs at ~30 Hz on the main thread; the renderer draws roads as ribbons and vehicles as small rectangles colored by type (car, jeepney, tricycle, motorcycle, truck, bus). Each vehicle type has distinct length, max acceleration, desired speed, and time headway.
Philippine flavor
- Default vehicle mix biases motorcycles and jeepneys higher than typical Western models.
- Time-of-day presets (AM Rush, PM Rush, Rainy) scale flow rates and reduce desired speed / increase headway.
- Hand-built corridors approximate EDSA, C5, Commonwealth, Osmeña Blvd, and the Mactan Bridge approach.
Honest limitations
- Road geometry is schematic — built from real corridor characteristics, not from OSM tracing.
- No pedestrians, no PUV stops on a route, no lane-filtering for motorcycles yet.
- Adaptive signals are a simple max-pressure heuristic, not SCATS/SCOOT.
- Don't use this to plan real intersections. Use it to build intuition.
Credits & references
- IDM and MOBIL: Treiber, Hennecke & Helbing (2000).
- Inspiration: traffic-simulation.de by Martin Treiber, and volkhin/RoadTrafficSimulator.
- Future work: load real road networks via OpenStreetMap Overpass API for any Philippine area.