BACK TO WORK
WORK / 001/2025/Completed Personal Project

TRACK MY BUS

Smart Public Transport & Fleet Tracking Ecosystem

My Role & Contribution

Engineered the Next.js frontend with live Google Maps tracking, developed the Laravel REST API backend, and configured Redis in-memory caching to stream bus locations smoothly.

Business Value

Allows passengers to track approaching buses in real time, view available seating before boarding, and purchase digital QR tickets without waiting in cash queues.

ROLE

Full-Stack Developer & UI/UX Designer

CATEGORY

Full-Stack Web App

YEAR

2025

TECH STACK

Next.js · TypeScript · Laravel · MySQL

TRACK MY BUS - Smart Public Transport & Fleet Tracking Ecosystem user interface screenshot
APPLICATION SCREENSHOT
01 — OVERVIEW

Project Overview

Track My Bus solves a major everyday problem for daily commuters: unpredictable bus arrivals and slow manual cash ticketing. By combining real-time GPS tracking on Google Maps with an interactive seat reservation system and instant QR ticket generation, the application gives passengers certainty and reduces boarding congestion.

02 — THE PROBLEM

The Problem

Commuters frequently wait at bus stops with no visibility into when the next bus will arrive or whether it has empty seats. At the same time, manual cash collections slow down boarding times at every stop.

03 — TARGET USERS

Who It's For

Daily urban commuters, private bus operators, route dispatchers, and bus conductors with QR verification devices.

04 — PRODUCT GOALS

Project Goals

  • Show live bus locations on interactive Google Maps with smooth marker movement.
  • Provide an interactive seat selection layout with instant locking to prevent double-booking.
  • Generate digital QR tickets that can be scanned for verification in under two seconds.
05 — RESEARCH & INSIGHTS

Spoke with local public transit commuters in Sri Lanka who consistently reported that knowing the exact bus location and seat availability would significantly reduce their daily travel stress.

06 — USER FLOW

Search Route → View Buses on Live GPS Map → Select Bus & Pick Seat → Confirm Payment → Receive Instant QR Ticket → Show Ticket on Boarding.

07 — BACKEND ARCHITECTURE & ENGINE

Architecture & Challenges

The Next.js client renders responsive map layers and seat grids. It communicates with a Laravel backend API, which uses Redis for high-frequency GPS coordinate caching and MySQL for transactional ticket records.

Challenge & Solution

Challenge: Updating bus GPS coordinates continuously for dozens of active vehicles without making the user's map lag or overloading the backend database.

Solution: Used Redis in-memory storage to cache incoming GPS coordinates and throttled client map updates to smooth 3-second batches with interpolated movement.

08 — RESULT & OUTCOME

Result & Outcome

Built a fully functional real-time transit booking web application with verified frontend and backend GitHub repositories.