A real-time intelligent traffic management system that dynamically creates a Green Corridor for emergency vehicles (ambulance, fire brigade, etc.) by coordinating traffic signals along their route.
Built using React Native (Expo) and Firebase Realtime Database, the system ensures minimal delay and uninterrupted movement during critical emergencies.
In urban areas, emergency vehicles often face delays due to traffic congestion, resulting in a loss of critical response time.
This project solves that by:
- Automatically controlling traffic signals
- Prioritizing emergency vehicles
- Creating a synchronized green corridor in real time
- Driver selects a source and destination
- Route is generated dynamically
- Signals on the route switch to Green Corridor Active
- Non-route signals remain in a Neutral state
- Firebase ensures instant updates across all signals
- Signals display the distance of the approaching vehicle
- Monitor all active corridors
- View real-time signal states
- Drivers must be approved by an admin
- Prevents unauthorized access
- Select route
- Activate corridor
- Send real-time location
- Receives updates from Firebase
- Changes signal state dynamically
- Approves drivers
- Monitors system activity
-
Stores:
- Active vehicles
- Signal states
- Route data
-
Enables real-time communication
-
Driver selects source → destination
-
Route is calculated
-
Signals on the path → Green Corridor Active
-
As the vehicle approaches:
- Current signal → Green
- Others → Neutral
-
After the vehicle passes:
- Signals reset to Neutral
| Technology | Purpose |
|---|---|
| React Native (Expo) | Mobile app development |
| TypeScript | Type-safe development |
| Firebase Realtime Database | Real-time synchronization |
| Expo Router | Navigation system |
| React Native Maps | Route visualization |
git clone <your-repo-url>
cd green-corridor-appnpm installnpx expo startYou can run the app using:
- Expo Go (Android/iOS)
- Android Emulator
- iOS Simulator
green-corridor-app/
│
├── app/ # Screens (Driver, Signal, Admin)
├── components/ # Reusable UI components
├── utils/ # Core logic (routing, distance)
├── hooks/ # Custom hooks
├── assets/ # Images and icons
├── config/ # Config (ignored in repo)
└── package.json
Sensitive files such as:
- Firebase configuration
- API keys
are excluded using .gitignore to ensure secure public deployment.
- Purnima Dwivedi
- Ashita Singh
- Kanishka Singh
- Aditya Chauhan
This project is developed for academic and research purposes only.