KUKPS Talai
Real-time GPS tracking and fleet management for the “Talai” campus shuttle buses (รถตะไล) at Kasetsart University, Kamphaeng Saen. Computes live stop ETAs and coordinates routes, drivers, and shift schedules.
Overview
KUKPS Talai is a real-time campus transit and fleet management platform built for the “Talai” shuttle buses (รถตะไล) at Kasetsart University, Kamphaeng Saen Campus. It pairs a public-facing live shuttle tracker for students and staff with an administrative operations dashboard for managing vehicles, routes, stops, and driver shifts.
Challenge
Campus commuters previously had no reliable way to know where shuttle buses were located along a route or when the next bus would arrive at a stop. On the operational side, transport coordinators needed centralized control over active vehicles, route sequences, expected segment travel times, and admin access without relying on manual spreadsheets.
Solution & Architecture
The system connects live vehicle telemetry with structured route management and role-based administrative workflows:
- Live GPS & Map Visualization: An MQTT subscriber ingests real-time vehicle coordinates and surfaces live bus locations and signal-loss/offline alerts on an interactive Leaflet map.
- Route, Station & ETA Modeling: Administrators configure ordered stations and standard segment travel times (
A → B) so the platform can compute live stop ETAs along active routes. - Fleet & Shift Coordination: Vehicles can be bound to specific routes and toggled across
Active,Inactive, andMaintenancestates alongside driver shift schedules. - Hardened Admin Auth & RBAC: Supports
Super AdminandAdminroles backed by HTTP-only JWT cookies, automatic refresh-token rotation stored in Upstash Redis (30-day session TTL), immediate session revocation (“kick-out”), and single-use 15-minute invitation links for onboarding new administrators.
Technical Stack
- Web & Dashboard: React, React Router, TypeScript, Tailwind CSS, Leaflet (
react-leaflet) - Database & State: PostgreSQL (Supabase), Upstash Redis (sessions & one-time invite tokens)
- Telemetry: MQTT real-time GPS ingestion