My attempts to analyze, debug and provide scoped solutions to solve Chandigarh's traffic problems
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.




This is my attempt to analyze, debug and provide scoped solutions to solve Chandigarh's traffic problems.


In December 2018 I went back to my home city of Chandigarh, which has perhaps the most consistent grid layout in the country. Yet I noticed a sharp increase in traffic congestion at traffic lights and intersections. Inspite of having an unrestricted traffic flow inbetween the lights, the existence of congestion and slowdowns made me think about how I can fix this with a proposal (real-life PR?) to the city adminstration with least amount of infrastructure and organizational changes.


I am using p5.js (wut?) for visualizing the traffic, plan to use a yet undecided Computer Vision solution to get real-time traffic (or at least simulate), create some scenarios of how traffic should be managed (including existing implementation by Chandigarh UT administration) and propose solutions to make traffic flow intelligent (e.g., making traffic lights intelligent and not have fixed countdowns)


WIP: 5%

Please check back later when I have committed enough stuff to care about.

Dev Setup


  1. Create a visual mapping tool (current)
    1. Learn and create a p5.js canvas with map overlay
    2. Learn to draw shapes and persist according to map zoom levels/tiles of only Chandigarh
    3. Persistent storage for shapes and tiles
    4. Simple on-screen toolbar for annotations
    5. Maybe automate the annotations based on road coordinates (how to get these coordinates for Chandigarh?)
  2. Simulate traffic using traffic data source from somewhere and assume there is a CV system in real-life to get the count of cars at each traffic light
  3. Maybe try to create a simple version of the CV tool
  4. Use the mapping tool to create different traffic systems including the current one in Chandigarh
  5. Propose solutions for each scenario
  6. Draw comparisons and prepare economic and infrastructure feasibility report for Chandigarh UT administration

Progress Screenshot

This is what it looks like now

Alt text


  4. Chandigarh 2031 Master Plan