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.
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.
- The backend has logged 575K+ arrival observations across 78 routes and 6,200+ stops.
- The SwiftUI app tracks about 200 live vehicles at a 15-second refresh, with a WidgetKit widget for quick arrivals.
- OpenTripPlanner handles delay-aware, multi-leg trip planning on top of the live data.
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



