Transit
Orb2Byte's own product
A free public transport app for the Barcelona area. It brings real-time arrivals, timetables and service disruptions for the metro, TMB and AMB buses, TRAM, FGC and Rodalies together in one place.
- My role
- Architecture, development with AI agents, code review and deployment.
- Status
- Public API in production; app in beta on TestFlight.
- Stack
Go · PostgreSQL 16 + PostGIS · Flutter · Docker · Caddy · GitHub Actions
The problem
Every operator has its own app and its own alerts, and disruptions arrive as loose text: “service suspended between such-and-such stops.” To find out whether your line is running normally, you have to read between the lines and guess.
How it's built
A Go backend with no frameworks, made up of four programs in a single image: one pulls real-time data from the operators every 30–60 seconds, another loads timetables and route shapes into PostGIS every night, a third serves the public API the app uses, and the last one generates a data quality report.
What I like most about this project
Disruptions show up on the map, not just as text. Each alert is turned into the affected stretch of the line, between the first and last stops it mentions. And the “until further notice” alerts that operators leave in the feed for years don't count when deciding whether a network is running well or not.
The system knows when its data can't be trusted. If real-time data is more than 5 minutes old, the app flags it. If the TMB source fails, it falls back to ATM's or to the timetable. And if a source hasn't changed in 15 minutes, I get a Telegram alert; at night, alerts are batched into a 7 a.m. digest.
Only what changes gets stored. Each download is compared by its content, and if it matches the previous one, nothing is written. On top of that, a raw copy is kept every hour for 14 days, so metrics can be recalculated later.
A search that understands Catalan. It ignores case and accents, and treats “l·l”, “ŀl” and “ll” as the same.
What users can do
See the status of every network at a glance.
Check upcoming real-time arrivals and the timetable for any stop.
Search for lines and stops, and see them on the map with their route.
See active disruptions on the map.
Get notifications for their favorite stops and lines.