MARTA Live Transit Tracker

A live transit tracker for Atlanta's MARTA network. I built the backend and the SwiftUI app to make noisy public feeds feel fast and trustworthy.

RoleSolo project
ScopeSwiftUI app + FastAPI backend
DataGTFS-Realtime
Tests59 automated
575K+arrival observations logged
~200live vehicles tracked
15srefresh interval
2.4MGTFS rows joined for delays
Live data across the app
Live data across the app
Live system map
Live system map
Departures with bay guidance
Departures with bay guidance
Commute card, alerts and confidence
Commute card, alerts and confidence
Single-route live map
Single-route live map

Why I built it

Public transit data comes through the GTFS and GTFS-Realtime standards, but the raw feeds are messy: vehicle positions drift, delay fields go missing, and the live feed often diverges from the docs. I wanted an app that felt instant and trustworthy, so the ingestion layer had to absorb those problems instead of passing them on to the rider.

How the data flows

A FastAPI backend with SQLite polls MARTA's GTFS-Realtime bus and rail feeds around the clock, normalizing and storing the data before the app ever reads it.

Fixing the feeds

Most of the work was in the gap between the spec and reality. Bus delays were often missing, so I reconstructed them with trip-to-schedule joins against 2.4M GTFS rows. The standard parsers mishandled some protobuf payloads, so I hand-wrote a decoder and checked it byte-for-byte against the reference parser. 59 automated tests keep the pipeline honest as the feeds change.

Next project → Contour