
Real-Time Bus Tracking System
Overview
This system allows users (students, commuters, etc.) to track the real-time location of buses on a specific route using GPS. It displays the Estimated Time of Arrival (ETA), current location, and route on a map interface, accessible via a mobile app or web interface.
Objective
To provide an efficient and real-time public transport tracking system that reduces wait time and improves convenience for users.
Technologies Used
Component | Technology |
---|---|
Mobile App (User) | Android (Java/Kotlin) |
Backend API | Firebase Realtime Database / Firestore |
Location Tracking | Google Maps SDK + GPS |
Admin Panel (Optional) | Firebase Console or Web Dashboard |
Notifications (ETA) | Firebase Cloud Messaging (FCM) |
Modules
1. User App (Passenger Side)
-
Login/Signup (optional)
-
Map Interface with real-time bus markers
-
Select Bus Route or Stop
-
Show ETA to nearest bus stop
-
Notification Alert when the bus is near
2. Driver App
-
Login Interface
-
Automatically sends GPS location to Firebase every few seconds
-
Background location tracking with battery optimization
3. Admin Panel (Optional)
-
Add/edit bus info, routes, stops
-
View location analytics of buses
System Architecture
-
The driver’s app updates the current location to Firebase.
-
The user’s app listens to this location in real-time and displays it on Google Maps.
Key Features
-
Real-time bus location tracking
-
Live ETA updates
-
Alerts for bus arrival
-
Google Maps integration
-
Firebase Auth (if login is required)
-
Usage analytics for admin (optional)
How to Test
-
Deploy the app on two Android devices:
-
One as a bus (driver) device.
-
One as a passenger device.
-
-
Move the driver phone physically or simulate location via emulator.
-
Verify location updates on the passenger app in real-time.
Project Deliverables
-
Android source code (User + Driver)
-
Firebase configuration files
-
Documentation (SRS, ER diagram, Use-case diagram, System architecture)
-
Optional: Admin panel (React.js or simple web dashboard)
Future Enhancements
-
Integration with IoT sensors for bus capacity monitoring
-
SMS support for non-smartphone users
-
AI-based ETA predictions using traffic data