Smart Mobility Live

TrackTheBus

A real-time public transit tracking platform providing live vehicle positions, schedules, and community features for Sofia's 2,500+ transit vehicles.

50K+
Daily Active Users
2,500+
Vehicles Tracked
1M+
Monthly API Requests
99.9%
System Uptime
Overview

The Challenge

Sofia's public transit system serves over 1.3 million residents with a network of buses, trams, trolleys, and metros. However, commuters had limited access to real-time information about vehicle locations and arrival times, leading to uncertainty and frustration.

In late 2025, SofiaTraffic made a pivotal decision to open their GTFS data to the public. This gave us the opportunity we had been waiting for—a chance to build something meaningful for the city we live in.

We rapidly built TrackTheBus to transform raw GTFS data into actionable information, helping riders make informed decisions about their daily commutes with real-time tracking and community features.

trackthebus.live

Real-time Map Interface

Interactive map showing live vehicle positions

Features

What we built

A comprehensive feature set designed to serve daily commuters with real-time, accurate transit information.

Real-time Vehicle Tracking

Sub-second updates via WebSocket connections showing live positions of all transit vehicles on an interactive map.

Schedule & Arrival Predictions

Complete timetable access with arrival time predictions that account for real-time delays and traffic conditions.

Favorite Stops

Save frequently used stops for quick access to departures from home, work, or other common locations.

Route Planning

Find optimal routes between any two points using the transit network with transfer suggestions.

Community Reports

Users can report issues, share observations, and engage in discussions about transit service quality.

Multi-city Support

Scalable architecture supporting any GTFS-compliant transit system. Currently serving Sofia with more cities planned.

Technology

Built with Modern Stack

We chose technologies that prioritize performance, developer experience, and cross-platform compatibility. The entire stack is designed for real-time data processing and seamless mobile deployment.

Frontend

Angular 20 Ionic 8 Capacitor MapLibre GL RxJS

Backend

Node.js Socket.IO Express Redis PostgreSQL

Data

GTFS GTFS-RT GeoJSON Protocol Buffers

Infrastructure

Docker Caddy GitHub Actions DigitalOcean

System Architecture

Client Layer
iOS
Android
Web
Real-time Layer
WebSocket REST API Redis Pub/Sub
Data Layer
PostgreSQL GTFS Feed GTFS-RT
Engineering

Challenges & Solutions

Technical obstacles we overcame during development and the approaches we took.

Challenge

Real-time Data at Scale

Processing thousands of vehicle position updates per second while maintaining low latency for all connected clients.

Solution

Implemented Redis pub/sub for message distribution and geographic clustering to reduce unnecessary updates based on user viewport.

Challenge

GTFS Data Complexity

Handling the complexity of transit schedules with service exceptions, calendar variations, and shape geometries.

Solution

Built a robust GTFS parser with preprocessing pipeline that normalizes data and pre-computes common queries.

Challenge

Cross-platform Consistency

Delivering a consistent user experience across web browsers, iOS, and Android with native-like performance.

Solution

Used Ionic with Capacitor to share a single Angular codebase while leveraging native APIs for geolocation and notifications.

Development

Project Timeline

From concept to production in 12 months.

Q4 2025

GTFS Data Opens

SofiaTraffic releases public GTFS feed, enabling real-time transit tracking.

Q4 2025

Rapid Prototyping

Built initial proof-of-concept with map integration and basic vehicle tracking.

Q1 2026

Public Beta

Launched beta version with WebSocket real-time updates and mobile apps.

Q1 2026

Community Features

Added user accounts, favorites, reporting, and discussion capabilities.

Q1 2026

Production Launch

Full production release with 99.9% uptime SLA and performance optimizations.

Ongoing

Expansion

Adding new cities and features based on user feedback and partnerships.

Want to build something similar?

Whether you're a transit authority, city government, or private operator, we can help you implement real-time tracking solutions for your network.