A full-featured traffic monitoring app with live incident alerts, flow data, and intelligent route suggestions.
Rendering mermaid diagram...
| File | Purpose |
|---|---|
main.ts | Hono server β API proxy + simulation fallback |
frontend/index.html | App shell, loads Leaflet + React |
frontend/style.css | Dark UI design system |
frontend/index.tsx | React entry point |
frontend/components/App.tsx | Root component, state management, data fetching |
frontend/components/MapView.tsx | Leaflet map β markers, routes, incident overlays |
frontend/components/Sidebar.tsx | Traffic Flow / Routes / Incidents panel |
TOMTOM_API_KEYWithout the key the app runs in Demo Mode with realistic simulated data.
| Color | Meaning |
|---|---|
| π’ Green | Free flow (β₯85% speed) |
| π‘ Yellow | Moderate (65β85%) |
| π Orange | Slow (45β65%) |
| π΄ Red | Stop & Go (<45%) |