We are an engineering team developing a Real-Time Public Transport Tracking and ETA Prediction System for Sri Lanka’s expressway bus network. The system is designed to improve visibility, reliability, and decision-making in public transportation through real-time data processing and predictive analytics.
This platform delivers live bus tracking, estimated arrival times, and operational insights for multiple stakeholders including commuters, drivers, and transport schedulers.
The current implementation focuses on the Moratuwa–Kadawatha expressway corridor, serving as a model for scalable deployment across wider transport networks.
- Real-time bus location tracking on an interactive map
- Accurate ETA predictions using hybrid modeling techniques
- Bus occupancy visibility to assist boarding decisions
- Route and stop search functionality
- Minimal-interaction mobile interface optimized for safety
- Status updates (departure, arrival, completion)
- Incident reporting (e.g., breakdowns, traffic conditions)
- Live fleet monitoring across active routes
- Manual dispatch and assignment capabilities
- Real-time anomaly and disruption alerts
The system is built using a distributed, event-driven microservices architecture:
-
Edge Layer (G1) Embedded devices (ESP32 with GPS) stream real-time vehicle data via MQTT
-
Intelligence Layer (G2) Stream processing using Apache Kafka and Apache Flink ETA prediction using machine learning and deterministic models
-
Application Layer (G3) Web and mobile applications built with Next.js and Flutter Real-time updates delivered via WebSocket connections
-
Platform Layer (G4) Infrastructure managed with Kubernetes API Gateway (Kong) and Identity Management (Keycloak) Monitoring via Prometheus and Grafana
- GPS data is collected from edge devices at a 1 Hz frequency
- Data is transmitted via MQTT and ingested into Kafka
- Stream processing pipelines compute ETAs and detect anomalies
- Processed data is delivered to client applications via WebSockets
- User interfaces update dynamically with minimal latency
Target end-to-end latency: under 2 seconds
-
Dual-Model ETA Prediction Urban traffic-aware machine learning model Expressway model based on speed and distance calculations
-
Geo-Fencing Automatic detection of highway entry and exit conditions
-
Anomaly Detection Identification of disruptions such as potential breakdowns
- Streaming and Messaging: Apache Kafka, MQTT
- Processing: Apache Flink
- Frontend: Next.js, Flutter
- Backend: Node.js, Python (gRPC services)
- Databases: PostgreSQL with PostGIS, InfluxDB
- Infrastructure: Kubernetes, Istio
- OAuth 2.0 with PKCE for authentication (Keycloak)
- Role-based access control for different user types
- Secure service-to-service communication (mTLS)
- Target system availability of 99.5%
- ETA computation latency below 500 ms
- End-to-end GPS update latency below 2 seconds
- Support for 10,000+ concurrent users
- Fault-tolerant streaming with high data durability
- G1 – Edge Systems: Embedded systems and data acquisition
- G2 – Intelligence: Stream processing and predictive models
- G3 – Applications: Web and mobile interfaces
- G4 – Platform: Infrastructure, security, and DevOps
To develop a reliable and scalable public transport intelligence platform that enhances commuter experience and supports data-driven transport operations.
Active development as part of an academic project (2026/2027)
Internal and academic use only