
π Railways & Public Transport Β· Data Flow
How a city bus app shows live bus positions and arrival times: GPS devices on buses, a prediction model and updates to apps and stop displays.
Drawing diagramβ¦
Live bus tracking data flow: GPS devices on buses send location every 10 seconds over 4G to a tracking server. It matches positions to the route and stop sequence from the schedule database. An ETA model uses live speeds and historical travel times to predict arrivals at upcoming stops. Predictions go to the passenger app, electronic display boards at stops, and the depot control dashboard. The data is archived for service planning.
flowchart LR GPS[Bus GPS Devices] -->|Location every 10 s| TS[Tracking Server] SCH[(Routes and Schedules)] -->|Route and stop sequence| TS TS -->|Matched positions| ETA[ETA Prediction] HIST[(Historical Travel Times)] -->|Typical times| ETA ETA -->|Arrival predictions| APP[Passenger App] ETA -->|Arrival predictions| PIS[Stop Display Boards] TS -->|Live fleet view| DEP[Depot Dashboard] TS -->|Trip data| ARC[(Archive for Planning)]
A railway reservation system in the style of IRCTC: seat inventory per train and class, waitlists, Tatkal quota, payments and e-tickets.
The states of a train ticket from booking to journey, including RAC and waitlist confirmation and cancellation.
How a metro fare is charged with a smart card or bank card: tap in at the entry gate, tap out at the exit, fare by distance and balance update.
How a modern railway signalling network is connected: interlocking at stations, track circuits, train control radio and the central traffic control centre.
A journey planner that combines metro, bus, suburban train and last-mile options into one trip plan with a single ticket.
Tables for train operations: trains, routes, stations, scheduled stops, coaches and daily running with actual times.