Skip to content
stackdev-ashPublic

About

Low-bandwidth real-time public transport tracking platform with live bus locations, ETA prediction, offline trip planning, and route management for Tier-2 & Tier-3 cities.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🚌 LokBus

πŸ† Smart India Hackathon 2025 | Problem Statement SIH25013

Real-Time Public Transport Tracking Platform for Tier-2 & Tier-3 Cities

A low-bandwidth, scalable public transport platform that enables commuters to track buses in real time, view accurate arrival estimates, plan journeys, and receive live updatesβ€”even in areas with limited internet connectivity.

Node.js Express MongoDB Socket.IO Flutter JWT


πŸ“– Overview

Public transportation in many Tier-2 and Tier-3 cities lacks reliable real-time information. Commuters often wait without knowing when the next bus will arrive, while transport authorities have limited visibility into fleet operations.

LokBus bridges this gap by providing:

  • πŸ“ Live bus tracking
  • ⏱️ Real-time ETA prediction
  • πŸ—ΊοΈ Route & stop management
  • πŸ“Ά Low-bandwidth optimized communication
  • πŸ”„ Live updates using WebSockets
  • πŸ“± Mobile-first experience
  • 🌐 Offline-friendly trip planning

πŸ† Smart India Hackathon 2025

LokBus was developed as a solution for Smart India Hackathon (SIH) 2025 under the official problem statement:

Problem Statement ID: SIH25013

The project aims to improve the public transportation experience by providing passengers with real-time bus tracking, accurate arrival predictions, route information, and a seamless travel experience while ensuring efficient fleet monitoring for transport authorities.


πŸŽ–οΈ Internal Hackathon Recognition

The Algo Rangers team was shortlisted/waitlisted in the ABESIT Internal Hackathon for Smart India Hackathon 2025.

ABESIT Internal Hackathon Certificate - Smart India Hackathon 2025

Team: AlgoRangers
Institution: ABES Institute of Technology
Hackathon: Internal Hackathon @ ABESIT for Smart India Hackathon 2025


πŸ‘₯ Team

Member Role
Ashish Sharma Backend Development β€’ System Architecture
Utkarsh Gupta Flutter Development
Pakhi Tyagi UI/UX Design
Naman Singhal Research, Documentation & Testing

πŸŽ₯ Project Demo

πŸ“Ί YouTube Demo

https://www.youtube.com/watch?v=fAcRjDcGX7M

πŸ“‘ Project Presentation

https://canva.link/4eueokf1fdqem40


✨ Features

πŸ‘₯ Passenger Features

  • πŸ“ Live Bus Tracking
  • ⏱️ Accurate ETA Prediction
  • 🚌 Nearby Bus Stops
  • πŸ—ΊοΈ Route Search
  • 🚏 Trip Planning
  • πŸ“‘ Live Bus Status
  • 🌐 Offline Route Access
  • ⭐ Favorite Routes
  • πŸ“Ά Low Data Usage
  • πŸ“± Responsive Mobile UI

🚌 Driver Features

  • πŸ“ Live GPS Location Sharing
  • ▢️ Start & End Trips
  • πŸ›£οΈ Route Selection
  • πŸ”„ Trip Status Updates

πŸ› οΈ Admin Features

  • 🚌 Bus Management
  • πŸ—ΊοΈ Route Management
  • 🚏 Station Management
  • πŸ‘¨β€βœˆοΈ Driver Management
  • πŸ“ Live Fleet Monitoring
  • πŸ“Š Dashboard Analytics

πŸš€ Tech Stack

Frontend

  • Flutter
  • REST APIs
  • Socket.IO Client

Backend

  • Node.js
  • Express.js
  • MongoDB
  • Mongoose
  • Socket.IO
  • JWT Authentication
  • bcrypt

Services

  • OSRM Routing API
  • Cloudinary (Optional)
  • Render

πŸ—οΈ System Architecture

                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚   Flutter App    β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                             β”‚
                   REST + Socket.IO
                             β”‚
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚ Express Server  β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
          β”‚                  β”‚                  β”‚
     Authentication      Trip Service      Live Tracking
          β”‚                  β”‚                  β”‚
          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                             β”‚
                       MongoDB Database

πŸ”„ How Real-Time Tracking Works

  1. Driver starts a trip and begins sharing GPS coordinates.
  2. The backend receives location updates.
  3. Smart validation filters unnecessary updates.
  4. Important location changes are stored.
  5. Live locations are broadcast through Socket.IO.
  6. Connected passengers instantly receive updates.
  7. ETA is recalculated dynamically based on the latest location.

⚑ Low-Bandwidth Optimization

LokBus is specifically designed for regions with unstable or slow internet connectivity.

Optimizations

  • Smart location throttling
  • Distance-based database updates
  • Reduced network requests
  • Socket.IO instead of continuous polling
  • Compressed payloads
  • Cached route information
  • Offline trip planning
  • Efficient bandwidth utilization

πŸ“‘ API Modules

Authentication

  • Register
  • Login
  • JWT Authentication

Bus

  • Create Bus
  • Update Bus
  • Delete Bus
  • Get Bus Details

Routes

  • Route Management
  • Stops
  • Timings

Trips

  • Start Trip
  • End Trip
  • Current Trip
  • ETA Calculation

Live Tracking

  • Driver Location Updates
  • Passenger Tracking
  • Live ETA

πŸ”Œ Socket Events

Driver

location-update
trip-start
trip-end

Passenger

join-trip
leave-trip
live-location
eta-update

πŸš€ Getting Started

Clone Repository

git clone https://github.com/stackdev-ash/LokBus.git

Backend

cd backend
npm install
npm run dev

Frontend

cd frontend
flutter pub get
flutter run

🀝 Contributing

Contributions are always welcome.

  1. Fork the repository.

  2. Create a feature branch.

git checkout -b feature/NewFeature
  1. Commit your changes.
git commit -m "Add New Feature"
  1. Push to GitHub.
git push origin feature/NewFeature
  1. Open a Pull Request.

⭐ If you found this project helpful, consider giving it a star!

Built with ❀️ for Smart India Hackathon 2025 to make public transportation smarter, faster, and more accessible.

About

Low-bandwidth real-time public transport tracking platform with live bus locations, ETA prediction, offline trip planning, and route management for Tier-2 & Tier-3 cities.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages