In urban traffic, ambulances often get delayed because surrounding vehicles are unaware of their route or unable to react in time.
This lack of coordination can lead to critical delays in emergency response.
RoadClear is a real-time traffic coordination system that allows ambulances to broadcast their route and notify nearby vehicles.
Cars receiving this signal automatically adjust their route to clear the path, enabling faster emergency response.
-
π Ambulance Mode
- Select and broadcast route
- Trigger emergency mode in real-time
-
π Car Mode
- Receives emergency alerts
- Dynamically reroutes to avoid ambulance path
-
π Google Maps Integration
- Route visualization
- Live polyline rendering
-
π Realtime Sync (Firebase)
- Instant communication between devices
- Event-based triggering system
-
β‘ Emergency Toggle System
- Switch between normal and emergency states
- Immediate UI and route updates
- Flutter β Cross-platform mobile development
- Firebase Realtime Database β Live data synchronization
- Google Maps API β Routing and map visualization
-
Ambulance selects a source and destination
-
Route is generated and stored in Firebase
-
Cars connect to the same session
-
When emergency is triggered:
- Cars receive signal
- Cars reroute dynamically to avoid ambulance path




- Current rerouting logic uses a simple detour approach.
- In some scenarios, Google Maps may return the same optimal route instead of an alternative path.
- Does not yet use live traffic density or predictive rerouting.
- Clone the repository:
git clone https://github.com/YOUR_USERNAME/roadclear.git
cd roadclear- Install dependencies:
flutter pub get- Run the app with your API key:
flutter run --dart-define=GOOGLE_API_KEY=YOUR_API_KEY- π§ Intelligent rerouting using traffic data
- π‘ Vehicle-to-vehicle communication (V2V simulation)
- π Push notifications for nearby drivers
- π AI-based congestion prediction
- Google API keys are not included for security reasons
- Firebase configuration required for full functionality
Developed as a hackathon project to explore real-time traffic optimization and emergency response systems.
Give it a star β and feel free to contribute!