CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
πŸŒ™β˜€οΈ
Log inStart free
Home/Templates/Railways & Public Transport

πŸš† Railways & Public Transport Β· Data Flow

Live Bus Tracking and Arrival Times

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.

More Railways & Public Transport templates

Opening a template is free and never counts toward your daily diagrams. Asking the AI to change it counts as one.

Drawing diagram…

What this diagram shows

  • Buses report GPS every 10 seconds
  • Arrival times are predicted from live speed and history
  • Stop display boards and the app get the same predictions

Prompt used

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.

Mermaid code
flowchart LR
subgraph EXT ["External entities"]
bus["Bus GPS Devices"]
pax["Passenger App"]
boards["Stop Display Boards"]
depot["Depot Control"]
planners["Service Planners"]
end
subgraph PROC ["Processes"]
p1("1.0 Receive and match positions to routes")
p2("2.0 Predict arrival times")
p3("3.0 Publish predictions")
p4("4.0 Archive trips")
p5("5.0 Report for service planning")
end
subgraph STORE ["Data stores"]
d1[("D1 Routes and Schedules")]
d2[("D2 Historical Travel Times")]
d3[("D3 Trip Archive")]
end
bus -->|"Location every 10 s over 4G"| p1
d1 -->|"Route and stop sequence"| p1
p1 -->|"Matched positions and live speeds"| p2
d2 -->|"Typical travel times"| p2
p2 -->|"Arrival predictions"| p3
p3 -->|"Arrival times"| pax
p3 -->|"Arrival times"| boards
p1 -->|"Live fleet view"| depot
p1 -->|"Trip data"| p4
p4 -->|"Completed trips"| d3
p4 -->|"Actual travel times"| d2
d3 -->|"Trip history"| p5
p5 -->|"Service reports"| planners

Inside this diagram

A data flow diagram with 10 processes and outside parties, 3 data stores and 13 data flows.

Processes and outside parties

  • Bus GPS Devices
  • Passenger App
  • Stop Display Boards
  • Depot Control
  • Service Planners
  • 1.0 Receive and match positions to routes
  • 2.0 Predict arrival times
  • 3.0 Publish predictions
  • 4.0 Archive trips
  • 5.0 Report for service planning

Data stores

  • D1 Routes and Schedules
  • D2 Historical Travel Times
  • D3 Trip Archive

Data flows

  • Bus GPS Devices β†’ 1.0 Receive and match positions to routes: Location every 10 s over 4G
  • D1 Routes and Schedules β†’ 1.0 Receive and match positions to routes: Route and stop sequence
  • 1.0 Receive and match positions to routes β†’ 2.0 Predict arrival times: Matched positions and live speeds
  • D2 Historical Travel Times β†’ 2.0 Predict arrival times: Typical travel times
  • 2.0 Predict arrival times β†’ 3.0 Publish predictions: Arrival predictions
  • 3.0 Publish predictions β†’ Passenger App: Arrival times
  • 3.0 Publish predictions β†’ Stop Display Boards: Arrival times
  • 1.0 Receive and match positions to routes β†’ Depot Control: Live fleet view
  • 1.0 Receive and match positions to routes β†’ 4.0 Archive trips: Trip data
  • 4.0 Archive trips β†’ D3 Trip Archive: Completed trips
  • 4.0 Archive trips β†’ D2 Historical Travel Times: Actual travel times
  • D3 Trip Archive β†’ 5.0 Report for service planning: Trip history
  • 5.0 Report for service planning β†’ Service Planners: Service reports

Boundaries

  • External entities: Bus GPS Devices, Passenger App, Stop Display Boards, Depot Control and Service Planners
  • Processes: 1.0 Receive and match positions to routes, 2.0 Predict arrival times, 3.0 Publish predictions, 4.0 Archive trips and 5.0 Report for service planning
  • Data stores: D1 Routes and Schedules, D2 Historical Travel Times and D3 Trip Archive

Make your own diagram like this

Describe your own system in plain English and CloudSketch AI draws it in seconds. See all AI diagram generators.

Related templates

C4 ArchitectureProRailways & Public Transport

Train Ticket Reservation System

A railway reservation system in the style of IRCTC: seat inventory per train and class, waitlists, Tatkal quota, payments and e-tickets.

State MachineRailways & Public Transport

Train Ticket (PNR) Status

The states of a train ticket from booking to journey, including RAC and waitlist confirmation and cancellation.

SequenceRailways & Public Transport

Metro Smart Card Fare Collection

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.

NetworkRailways & Public Transport

Railway Signalling and Train Control Network

How a modern railway signalling network is connected: interlocking at stations, track circuits, train control radio and the central traffic control centre.

C4 ArchitectureProRailways & Public Transport

Multimodal Journey Planner

A journey planner that combines metro, bus, suburban train and last-mile options into one trip plan with a single ticket.

Database ERDRailways & Public Transport

Train Operations Database Schema

Tables for train operations: trains, routes, stations, scheduled stops, coaches and daily running with actual times.