fix(cctv): read TranStar dir as the camera's side of the road, at low confidence

TranStar's `dir` field is the side of the freeway a camera sits on, not
the way it faces. TranStar's own map script (translateCameraDirection)
shows it as "Traffic closest to the camera is traveling": South is
eastbound, North westbound, West southbound and anything else
northbound. The live catalog agrees: I-10 cameras are North/South and
I-45 cameras East/West.

Treating `dir` as a high-confidence facing pointed most Houston cameras
across or away from the road they watch, and dropped the "estimated"
marking. Map it to the travel direction instead (S 90, N 270, W 180,
E 0) as a low-confidence prior with the low-confidence pose, and keep
the id-hash fallback for None or unknown values.
This commit is contained in:
Sameh Khamis committed 2026-11-03 15:02:30 -08:00
1 parent 09bdc314d0
commit 8cd0cc82f5
5 files changed
+66 -23

No files matched your search

+7 -2
View File
@@ -1448,8 +1448,13 @@ alongside the other live packs. The server reads the keyless camera list at
keeps cameras with a numeric snapshot id inside the metro bounding box. Frame
URLs are built from each camera id under
`https://www.houstontranstar.org/snapshots/cctv/<id>.jpg`; they are never taken
from the payload. Dedicated `dir` values become high-confidence headings;
`None` uses the shared id-hash fallback at low confidence.
from the payload. TranStar's `dir` is the side of the freeway the camera sits
on, not the way it faces; TranStar's own map reads it as the direction of the
nearest traffic (South → eastbound, North → westbound, West → southbound,
East → northbound). That travel direction seeds a low-confidence heading with
the low-confidence pose, and `None` or an unknown value uses the shared id-hash
fallback; both stay marked as estimated.
Gate: `src/data/cctvHouston.test.mjs`.
TranStar's disclaimer prohibits redistribution and external framing of specific
images without TxDOT's written permission, so the pack is off unless