How ClearPath Works
Real-time train tracking, camera-based freight detection, and community reporting — all in one place.
From Train to Alert in 5 Steps
- 01Data sourceAmtrak Data
We poll amtraker.com every 30 seconds for the live GPS position, speed, and bearing of Amtrak trains on the Illinois corridor. This is publicly available data — no scraping.
- 02MathETA Math
Haversine distance from the train's current position to each monitored crossing, divided by the train's reported speed, gives estimated arrival in minutes. ETAs update every poll cycle.
- 03AlertingAlert Threshold
When a train is within 10 miles AND less than 20 minutes out, the crossing flips to APPROACHING. That window is enough to stage apparatus on the correct side or reroute a response.
- 04Computer visionFreight Camera
A YOLO model watches the public Steel Highway railcam and writes CLEAR or BLOCKED every 30 seconds. BNSF doesn't publish live positions — this is best-effort supplemental data.
- 05Community layerCommunity Reports
Anyone can report a blocked crossing. Reports include crossing, time, railroad, and duration. They surface on the map immediately and notify dispatch.
The Freight Data Gap
BNSF does not publish live train positions. Their data is proprietary and there is no federal mandate to share it. Unlike Amtrak — which exposes real-time GPS through its public API — freight railroads operate as a black box.
ClearPath bridges that gap with computer vision: a YOLO model watches the public Steel Highway railcam and writes a CLEAR or BLOCKED status every 30 seconds.
Data Freshness
| Source | Update interval | Status |
|---|---|---|
| Amtrak positions | Every 30–60 seconds | Live |
| Freight camera (YOLO) | Every 30 seconds | Live |
| Community reports | Real-time on submit | Live |
The Stack
Common Questions
- Does ClearPath work for freight trains?
- Limited. We use camera AI on a public railcam, not real-time BNSF data. BNSF does not publish live positions. Treat freight status as supplemental — never authoritative.
- How accurate are the ETAs?
- Within a few minutes for Amtrak trains. ETAs assume constant speed — actual arrival varies based on signal holds, grade, and crew rest. Use for staging decisions, not precision timing.
- Is ClearPath official?
- No. ClearPath is an independent, open-source, community project. Always follow official dispatch protocols. This tool is situational awareness — not a replacement for dispatch communication.