BusTracker Telemetry Loop
Real-time GPS synchronization and client freshness resolution
Pause Loop
Prev State
Next State
Reset
watchPosition
SQL UPDATE
POLL / GET
SSE / WS STREAM
DRIVER PHONE
GPS: UNKNOWN
Client-side loop
FLASK BACKEND
/api/telemetry
Ingest API Endpoint
LIVE_LOCATION DB
updated_at: --
PostgreSQL Table
STUDENT DASH
FRESHNESS: IDLE
Client Resolution
ADMIN PANEL
Live Stream View
Secondary Consumer
Initializing Telemetry Loop...
Step 1 of 4