Matrix-Based Traffic Flow
Analysis — Indore

Real-time Origin-Destination matrix visualization, congestion heatmaps, and predictive analytics for 12 major zones across Indore city.

12 Zones 66 Corridors Live Simulation OD Matrix
Total Vehicles / hr
12% from yesterday
Avg Speed (km/h)
8% slower
Congested Corridors
5 critical
Matrix Density
92% cells active
Interactive Traffic Map — Indore

Controls

Flow Lines
Heatmap
Zone Labels

Legend

Free Flow (<40%)
Moderate (40-70%)
Heavy (70-90%)
Gridlock (>90%)

Selected Corridor

Click a flow line on the map to see details.
Origin-Destination Matrix (vehicles / hour)

Hover over any cell to highlight its origin→destination flow on the map. Diagonal = intra-zone trips.

Traffic Analytics

Hourly Traffic Volume

Top 10 Busiest Corridors

Zone-wise Outflow

Zone-wise Inflow

Zone Status Table
ZoneOutflowInflowNetCongestionStatus
What Is Matrix-Based Traffic Flow Analysis?

The OD Matrix

An Origin-Destination (OD) Matrix is a 2-D table where entry M[i][j] represents the number of vehicle-trips starting at zone i and ending at zone j during a time period. The diagonal M[i][i] captures intra-zone trips.

  • Rows = Origins (where trips start)
  • Columns = Destinations (where trips end)
  • Row sum = total outflow of a zone
  • Column sum = total inflow to a zone

How It Works

The city is divided into traffic analysis zones (TAZs). Vehicle counts from sensors, GPS data, or surveys populate the matrix. We then:

  • Map each cell to a road corridor on the network
  • Assign colors by congestion ratio (volume / capacity)
  • Render animated flow lines proportional to volume
  • Generate heatmaps for spatial congestion view

Technologies Used

  • Leaflet.js — Interactive tiled map (OpenStreetMap)
  • Leaflet.heat — Canvas-based heatmap layer
  • Chart.js — Bar / doughnut / radar charts
  • Vanilla JS — OD matrix generation, animation, simulation
  • CSS3 — Glassmorphism, grid, dark-mode UI

Use Cases

  • Urban traffic planning & signal optimization
  • Identifying bottleneck corridors
  • Predicting congestion before it happens
  • Evaluating impact of new roads or metro lines
  • Emergency evacuation route planning
  • Public-transit demand estimation