fix(phase26): geocode pre-caching (BUG-09) + gate trips on OBD presence (BUG-10)

This commit is contained in:
Mathieu Moran
2026-08-11 02:38:00 -04:00
parent a709517973
commit 7e913558f6
4 changed files with 107 additions and 3 deletions
+6
View File
@@ -81,6 +81,12 @@ def build_trip_summaries(raw_rows):
if len(rows) < 2:
return []
# Don't generate trips from GPS drift when the car was never connected.
# Without OBD, GPS jitter can produce false motion events on the bench.
from modules import app_obd
if not app_obd.was_car_ever_connected():
return []
obd_motion = []
gps_motion = []
for index in range(1, len(rows)):