01
Jun 2026 — Present
Traintopia - Live NYC Transit
Real-time NYC transit tracking on Android and the web: every live subway train, bus, NYC Ferry, LIRR, Metro-North, and NJ Transit vehicle drawn in 3D on one map, plus service alerts, trip planning, and home-screen widgets. The feeds only update every 15–30 seconds and there are ~3,000 vehicles in play, so the work is in moving that much data cheaply and drawing it smoothly.
- Engineered a Redis and BullMQ polling pipeline that ingests GTFS-Realtime and SIRI feeds from five agencies every 15–30 seconds, processing ~3,000 vehicles per cycle and fanning updates out over WebSockets.
- Cut per-client bandwidth by ~74% by sending each client only the routes and transit modes it subscribes to, with each payload serialized once per broadcast rather than once per client.
- Built a 3D map renderer on deck.gl and MapLibre that switches each vehicle between detailed models, simpler models, and flat icons depending on how big it appears on screen, redrawing the fleet at 30 FPS while the followed vehicle animates at full refresh rate.
- Designed crowdsourced crowding reports aggregated with exponential time decay (5-minute half-life) and median-based outlier rejection, holding back a reading until at least three devices have reported.
Private repository