SIH25013 by Techusic

Bus Tracking System - Where's My Bus

A real-time bus tracking solution for public transportation management, built for Smart India Hackathon 2025 Problem Statement SIH25013.

Overview

The system provides real-time tracking with a mobile app for drivers and a web dashboard for monitoring. It is optimized for low-bandwidth environments and designed to remain reliable under unstable network conditions.

Update Rate

GPS every 10 seconds

Latency

Sub-100ms response target

Key Features

Mobile App (Driver)

  • Real-time GPS tracking every 10s
  • Battery-optimized background updates
  • Enroute or Stopped status with issue reporting
  • Auto-reconnect WebSocket support
  • Offline queue for unstable network areas

Web Dashboard

  • Leaflet map with live bus positions
  • Multi-bus and single-bus monitor modes
  • Center on Me and Center on Bus actions
  • Issue and status monitoring
  • Responsive interface for mobile and desktop

Backend Server

  • WebSocket-first real-time communication
  • Node.js and Express.js backend
  • MongoDB TTL indexes for 24h cleanup
  • Gzip compression for bandwidth savings
  • Cloud-ready scaling architecture

Technology Stack

  • Mobile: React Native with Expo Location
  • Dashboard: React.js with Leaflet
  • Communication: WebSocket (ws)
  • Backend: Node.js with Express.js
  • Database: MongoDB with TTL indexes

Bandwidth Efficiency

  • 150 to 200 bytes per mobile update
  • About 1 to 2 MB per driver for a full day
  • Compressed streaming for dashboard updates
  • Designed to perform on 2G and 3G networks

Backend Architecture

  1. 1. Mobile App sends live location via WebSocket to server.
  2. 2. Server forwards updates to web dashboard clients.
  3. 3. MongoDB stores short-term history with 24h TTL cleanup.
  4. 4. Caching and filtering reduce redundant updates.

Performance Metrics

  • Mobile updates every 10 seconds
  • Dashboard refresh cadence around 5 seconds
  • Reconnect speed typically under 5 seconds
  • 100+ concurrent server connections supported

SIH25013 Alignment

  • Real-time WebSocket fleet tracking
  • Multi-bus monitoring and visibility
  • Auto-reconnect and fallback reliability
  • Low-cost open-source stack
  • Cloud-ready deployment model
  • Low-bandwidth Indian network optimization