mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-08-26 17:31:34 +00:00
Behavior-preserving relocation (byte-identical goldens), behind the staged-
cutover gate.
- formatters/nws.py + gating/nws.py: move _render + all CAP parsing (HTML-strip,
_parse_nws_description, motion/hail/wind, county scoping, short-expiry) and the
gating (3h re-alert window, Update/Cancel/Expire tombstone, first-sighting,
warning->immediate severity). Native env/nws.py stops truncating description +
carries parameters/eventCode/certainty/msgType/references/geocoder. Registers
weather_warning + weather_statement.
- formatters/incident.py + gating/incident.py: absorb the incident _render AND
the work_zone renderer, reconciling the two sub_type vocabularies; traffic_events
change-detection gating. Native env/{traffic,roads511}.py emit canonical data.
Registers work_zone/road_incident/road_closure/traffic_congestion.
- formatters/_anchor.py: shared town/distance/bearing resolver (consolidates WFIGS
_location_anchor + incident nearest_town; WFIGS fire reuses in Phase 3).
- Fixtures captured: nws x37, traffic x46.
Tier-a byte-identical goldens for all fixtures. Tests: +~150; 0 new failures
(34 baseline, 1539 passed).
Co-authored-by: Matt Johnson <mj@k7zvx.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
234 lines
No EOL
5.6 KiB
JSON
234 lines
No EOL
5.6 KiB
JSON
{
|
|
"envelope": {
|
|
"id": "ID:tomtom:TTI-4ee2bdba-b112-4223-894d-2b10d1a81de0-TTL14813270316028000",
|
|
"source": "central.echo6.co",
|
|
"type": "central.incident.tomtom_incidents.v1",
|
|
"time": "2026-06-27T23:41:05+00:00",
|
|
"datacontenttype": "application/json",
|
|
"centralschemaversion": "1.0",
|
|
"centralcategory": "incident.tomtom_incidents",
|
|
"centralseverity": 2,
|
|
"specversion": "1.0",
|
|
"data": {
|
|
"id": "ID:tomtom:TTI-4ee2bdba-b112-4223-894d-2b10d1a81de0-TTL14813270316028000",
|
|
"adapter": "tomtom_incidents",
|
|
"category": "incident.tomtom_incidents",
|
|
"time": "2026-06-27T23:41:05Z",
|
|
"expires": "2026-06-28T00:03:00Z",
|
|
"severity": 2,
|
|
"geo": {
|
|
"centroid": [
|
|
-116.2744770144,
|
|
43.6495547551
|
|
],
|
|
"bbox": null,
|
|
"regions": [
|
|
"US-ID"
|
|
],
|
|
"primary_region": "US-ID",
|
|
"geometry": {
|
|
"type": "LineString",
|
|
"coordinates": [
|
|
[
|
|
-116.2744770144,
|
|
43.6495547551
|
|
],
|
|
[
|
|
-116.2744770144,
|
|
43.6496539774
|
|
],
|
|
[
|
|
-116.2744783555,
|
|
43.6501716166
|
|
],
|
|
[
|
|
-116.2744783555,
|
|
43.6502226222
|
|
],
|
|
[
|
|
-116.2744796966,
|
|
43.650296371
|
|
],
|
|
[
|
|
-116.2744796966,
|
|
43.6503017081
|
|
],
|
|
[
|
|
-116.2744823788,
|
|
43.6506369727
|
|
],
|
|
[
|
|
-116.2745024954,
|
|
43.6507308561
|
|
],
|
|
[
|
|
-116.2745024954,
|
|
43.6507362538
|
|
],
|
|
[
|
|
-116.2745172475,
|
|
43.6507630603
|
|
],
|
|
[
|
|
-116.274549434,
|
|
43.6508194024
|
|
],
|
|
[
|
|
-116.2745883261,
|
|
43.6508891477
|
|
],
|
|
[
|
|
-116.2746741567,
|
|
43.650989702
|
|
],
|
|
[
|
|
-116.2747814451,
|
|
43.6510755187
|
|
],
|
|
[
|
|
-116.2749262844,
|
|
43.6511519956
|
|
],
|
|
[
|
|
-116.2750349139,
|
|
43.6511922051
|
|
],
|
|
[
|
|
-116.2750657593,
|
|
43.6512042739
|
|
],
|
|
[
|
|
-116.2751596366,
|
|
43.6512257432
|
|
],
|
|
[
|
|
-116.2751757298,
|
|
43.651229746
|
|
],
|
|
[
|
|
-116.2752629016,
|
|
43.6512364779
|
|
],
|
|
[
|
|
-116.2753366624,
|
|
43.6512378121
|
|
],
|
|
[
|
|
-116.2755136882,
|
|
43.6512378121
|
|
],
|
|
[
|
|
-116.2756705974,
|
|
43.6512378121
|
|
],
|
|
[
|
|
-116.2758409177,
|
|
43.6512391464
|
|
],
|
|
[
|
|
-116.2760166024,
|
|
43.6512391464
|
|
],
|
|
[
|
|
-116.2760313545,
|
|
43.6512391464
|
|
],
|
|
[
|
|
-116.2761118208,
|
|
43.6512391464
|
|
],
|
|
[
|
|
-116.276589254,
|
|
43.6512404806
|
|
],
|
|
[
|
|
-116.2770412062,
|
|
43.6512418149
|
|
],
|
|
[
|
|
-116.2771404479,
|
|
43.6512418149
|
|
],
|
|
[
|
|
-116.2772343252,
|
|
43.6512418149
|
|
],
|
|
[
|
|
-116.2773670946,
|
|
43.6512418149
|
|
],
|
|
[
|
|
-116.2783179377,
|
|
43.651244544
|
|
],
|
|
[
|
|
-116.2786196862,
|
|
43.6512458783
|
|
],
|
|
[
|
|
-116.2787028347,
|
|
43.6512458783
|
|
],
|
|
[
|
|
-116.2788570617,
|
|
43.6512458783
|
|
],
|
|
[
|
|
-116.27919502,
|
|
43.6512472125
|
|
],
|
|
[
|
|
-116.279220501,
|
|
43.6512472125
|
|
],
|
|
[
|
|
-116.2794659232,
|
|
43.6512472125
|
|
],
|
|
[
|
|
-116.2795329784,
|
|
43.6512472125
|
|
],
|
|
[
|
|
-116.2797341441,
|
|
43.6512485468
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"data": {
|
|
"description": "Queuing traffic",
|
|
"event_code": 108,
|
|
"from": "North Alworth Street / Fairpark Lane",
|
|
"to": "North Glenwood Street",
|
|
"magnitude_of_delay": 2,
|
|
"icon_category": 6,
|
|
"length": 579.0122767146,
|
|
"delay": 145,
|
|
"road_numbers": [],
|
|
"start_time": "2026-06-27T23:41:05Z",
|
|
"end_time": "2026-06-28T00:03:00Z",
|
|
"time_validity": "present",
|
|
"state_code": "ID",
|
|
"bbox_name": "treasure_valley_ext",
|
|
"latitude": 43.6495547551,
|
|
"longitude": -116.2744770144,
|
|
"_enriched": {
|
|
"geocoder": {
|
|
"name": "North Kent Lane",
|
|
"city": null,
|
|
"county": "Ada",
|
|
"state": "Idaho",
|
|
"country": "United States",
|
|
"postal_code": "83704",
|
|
"timezone": "America/Boise",
|
|
"landclass": "Expo Idaho",
|
|
"elevation_m": 799.53125
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"subject": "central.traffic.incident.id",
|
|
"captured_epoch": 1783206527
|
|
} |