fix(incident): remove TomTom road fallback to from field

Let road stay None when road_numbers is absent so the renderer
uses the from → to segment format instead of clobbering it with
the raw from string.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Matt Johnson (via Claude) 2026-06-08 03:49:12 +00:00
commit b60ea5c5db

View file

@ -303,7 +303,7 @@ def _parse_tomtom_incident(envelope: dict, now: int) -> Optional[dict]:
"source": "tomtom_incidents",
"external_id": external_id,
"category_kind": "incident",
"road": _tomtom_road_label(d) or (d.get("from") or "road"),
"road": _tomtom_road_label(d),
"direction": _tomtom_direction_from_description(d.get("description")),
"mile_start": None,
"mile_end": None,