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>
222 lines
No EOL
5.3 KiB
JSON
222 lines
No EOL
5.3 KiB
JSON
{
|
|
"envelope": {
|
|
"id": "ID:tomtom:TTI-4ee2bdba-b112-4223-894d-2b10d1a81de0-TTR14772874384078000",
|
|
"source": "central.echo6.co",
|
|
"type": "central.incident.tomtom_incidents.v1",
|
|
"time": "2026-06-27T23:22:30+00:00",
|
|
"datacontenttype": "application/json",
|
|
"centralschemaversion": "1.0",
|
|
"centralcategory": "incident.tomtom_incidents",
|
|
"centralseverity": 4,
|
|
"specversion": "1.0",
|
|
"data": {
|
|
"id": "ID:tomtom:TTI-4ee2bdba-b112-4223-894d-2b10d1a81de0-TTR14772874384078000",
|
|
"adapter": "tomtom_incidents",
|
|
"category": "incident.tomtom_incidents",
|
|
"time": "2026-06-27T23:22:30Z",
|
|
"expires": null,
|
|
"severity": 4,
|
|
"geo": {
|
|
"centroid": [
|
|
-116.3962975834,
|
|
43.6954298706
|
|
],
|
|
"bbox": null,
|
|
"regions": [
|
|
"US-ID"
|
|
],
|
|
"primary_region": "US-ID",
|
|
"geometry": {
|
|
"type": "LineString",
|
|
"coordinates": [
|
|
[
|
|
-116.3962975834,
|
|
43.6954298706
|
|
],
|
|
[
|
|
-116.396292219,
|
|
43.6952904229
|
|
],
|
|
[
|
|
-116.3962814902,
|
|
43.6950289197
|
|
],
|
|
[
|
|
-116.3962332104,
|
|
43.6938313233
|
|
],
|
|
[
|
|
-116.3962305282,
|
|
43.6937736277
|
|
],
|
|
[
|
|
-116.3962305282,
|
|
43.6937561735
|
|
],
|
|
[
|
|
-116.3962265049,
|
|
43.6936730238
|
|
],
|
|
[
|
|
-116.3962466215,
|
|
43.693506724
|
|
],
|
|
[
|
|
-116.3964665626,
|
|
43.6928375202
|
|
],
|
|
[
|
|
-116.3964947258,
|
|
43.6927517026
|
|
],
|
|
[
|
|
-116.3965175246,
|
|
43.6926122486
|
|
],
|
|
[
|
|
-116.3965081369,
|
|
43.6924741277
|
|
],
|
|
[
|
|
-116.3964638804,
|
|
43.6923534004
|
|
],
|
|
[
|
|
-116.3963646387,
|
|
43.6922246728
|
|
],
|
|
[
|
|
-116.3962707614,
|
|
43.6921347936
|
|
],
|
|
[
|
|
-116.3962063883,
|
|
43.692090551
|
|
],
|
|
[
|
|
-116.3961446975,
|
|
43.6920543084
|
|
],
|
|
[
|
|
-116.3960186337,
|
|
43.6919980049
|
|
],
|
|
[
|
|
-116.3957329785,
|
|
43.69187061
|
|
],
|
|
[
|
|
-116.3950034176,
|
|
43.6915460606
|
|
],
|
|
[
|
|
-116.3944455181,
|
|
43.6912711469
|
|
],
|
|
[
|
|
-116.3937977646,
|
|
43.6909519278
|
|
],
|
|
[
|
|
-116.3937883769,
|
|
43.6909465943
|
|
],
|
|
[
|
|
-116.3937709426,
|
|
43.6909385335
|
|
],
|
|
[
|
|
-116.3937159573,
|
|
43.6909116843
|
|
],
|
|
[
|
|
-116.3936207389,
|
|
43.690864774
|
|
],
|
|
[
|
|
-116.393455783,
|
|
43.6907829537
|
|
],
|
|
[
|
|
-116.3934517597,
|
|
43.6907802869
|
|
],
|
|
[
|
|
-116.3932586406,
|
|
43.6906837387
|
|
],
|
|
[
|
|
-116.3932438885,
|
|
43.6906756779
|
|
],
|
|
[
|
|
-116.3931111191,
|
|
43.6905885238
|
|
],
|
|
[
|
|
-116.3930091952,
|
|
43.6904986422
|
|
],
|
|
[
|
|
-116.3929354344,
|
|
43.690407427
|
|
],
|
|
[
|
|
-116.3929193412,
|
|
43.6903793049
|
|
],
|
|
[
|
|
-116.3928764258,
|
|
43.6903095449
|
|
],
|
|
[
|
|
-116.3928281461,
|
|
43.6901768128
|
|
],
|
|
[
|
|
-116.3928133939,
|
|
43.6900372922
|
|
],
|
|
[
|
|
-116.3927973007,
|
|
43.6888638401
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"data": {
|
|
"description": "Closed",
|
|
"event_code": 401,
|
|
"from": "West State Street / North Fisher Park Way",
|
|
"to": "West Hatchery Road",
|
|
"magnitude_of_delay": 4,
|
|
"icon_category": 8,
|
|
"length": 879.0725350843,
|
|
"delay": null,
|
|
"road_numbers": [],
|
|
"start_time": "2026-06-27T23:22:30Z",
|
|
"end_time": null,
|
|
"time_validity": "present",
|
|
"state_code": "ID",
|
|
"bbox_name": "treasure_valley_ext",
|
|
"latitude": 43.6954298706,
|
|
"longitude": -116.3962975834,
|
|
"_enriched": {
|
|
"geocoder": {
|
|
"name": "West State Street",
|
|
"city": "Eagle",
|
|
"county": "Ada",
|
|
"state": "Idaho",
|
|
"country": "United States",
|
|
"postal_code": "83616",
|
|
"timezone": "America/Boise",
|
|
"landclass": null,
|
|
"elevation_m": 773.0625
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"subject": "central.traffic.incident.id",
|
|
"captured_epoch": 1783206527
|
|
} |