Skip to content

purnima0806/Virtual-Green-Corridor

Repository files navigation

🚑 Virtual Green Corridor for Emergency Vehicles

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.


📌 Problem Statement

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

✨ Key Features

🚑 Emergency Vehicle Routing

  • Driver selects a source and destination
  • Route is generated dynamically

🚦 Intelligent Signal Control

  • Signals on the route switch to Green Corridor Active
  • Non-route signals remain in a Neutral state

📡 Real-Time Synchronization

  • Firebase ensures instant updates across all signals

📍 Live Vehicle Tracking

  • Signals display the distance of the approaching vehicle

👮 District Admin Dashboard

  • Monitor all active corridors
  • View real-time signal states

✔ Driver Authentication & Approval

  • Drivers must be approved by an admin
  • Prevents unauthorized access

🏗 System Architecture

1️⃣ Driver Module

  • Select route
  • Activate corridor
  • Send real-time location

2️⃣ Signal Module

  • Receives updates from Firebase
  • Changes signal state dynamically

3️⃣ Admin Module

  • Approves drivers
  • Monitors system activity

4️⃣ Backend (Firebase Realtime Database)

  • Stores:

    • Active vehicles
    • Signal states
    • Route data
  • Enables real-time communication


🔄 System Workflow

  1. Driver selects source → destination

  2. Route is calculated

  3. Signals on the path → Green Corridor Active

  4. As the vehicle approaches:

    • Current signal → Green
    • Others → Neutral
  5. After the vehicle passes:

    • Signals reset to Neutral

⚙️ Tech Stack

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

🚀 Installation & Setup

1️⃣ Clone the repository

git clone <your-repo-url>
cd green-corridor-app

2️⃣ Install dependencies

npm install

3️⃣ Start the development server

npx expo start

📱 Running the App

You can run the app using:

  • Expo Go (Android/iOS)
  • Android Emulator
  • iOS Simulator

📂 Project Structure

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

🔐 Security Note

Sensitive files such as:

  • Firebase configuration
  • API keys

are excluded using .gitignore to ensure secure public deployment.


👨‍💻 Team Members

  • Purnima Dwivedi
  • Ashita Singh
  • Kanishka Singh
  • Aditya Chauhan

📄 License

This project is developed for academic and research purposes only.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors