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>
151 lines
No EOL
4.1 KiB
JSON
151 lines
No EOL
4.1 KiB
JSON
{
|
|
"envelope": {
|
|
"id": "idaho_511:event:11488",
|
|
"source": "central.echo6.co",
|
|
"type": "central.closure.itd_511.v1",
|
|
"time": "2026-07-01T21:57:23+00:00",
|
|
"datacontenttype": "application/json",
|
|
"centralschemaversion": "1.0",
|
|
"centralcategory": "closure.itd_511",
|
|
"centralseverity": 3,
|
|
"specversion": "1.0",
|
|
"data": {
|
|
"id": "idaho_511:event:11488",
|
|
"adapter": "itd_511",
|
|
"category": "closure.itd_511",
|
|
"time": "2026-07-01T21:57:23Z",
|
|
"expires": "2026-07-04T20:00:00Z",
|
|
"severity": 3,
|
|
"geo": {
|
|
"centroid": [
|
|
-114.31901,
|
|
43.52443
|
|
],
|
|
"bbox": null,
|
|
"regions": [
|
|
"US-ID"
|
|
],
|
|
"primary_region": "US-ID",
|
|
"geometry": {
|
|
"type": "LineString",
|
|
"coordinates": [
|
|
[
|
|
-114.31901,
|
|
43.52443
|
|
],
|
|
[
|
|
-114.31862,
|
|
43.5239
|
|
],
|
|
[
|
|
-114.31828,
|
|
43.52348
|
|
],
|
|
[
|
|
-114.31755,
|
|
43.52253
|
|
],
|
|
[
|
|
-114.3168,
|
|
43.52155
|
|
],
|
|
[
|
|
-114.31608,
|
|
43.52059
|
|
],
|
|
[
|
|
-114.31573,
|
|
43.52013
|
|
],
|
|
[
|
|
-114.31536,
|
|
43.51965
|
|
],
|
|
[
|
|
-114.31461,
|
|
43.51867
|
|
],
|
|
[
|
|
-114.31316,
|
|
43.51676
|
|
],
|
|
[
|
|
-114.3131,
|
|
43.51669
|
|
],
|
|
[
|
|
-114.3128,
|
|
43.51629
|
|
],
|
|
[
|
|
-114.31242,
|
|
43.51579
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"data": {
|
|
"event_type_short": "closure",
|
|
"event_sub_type": "parade",
|
|
"roadway_name": "SH-75",
|
|
"direction": "Both",
|
|
"description": "Parade on SH-75 Both Directions from E Myrtle St to W Elm St. All lanes closed. 7/4/2026 11:00 AM to 7/4/2026 2:00 PM Sat: Active all day Activities: Consider Alternative Route, Look Out for Flagger, Use Caution.",
|
|
"lanes_affected": "All lanes closed",
|
|
"is_full_closure": true,
|
|
"itd_severity": "None",
|
|
"comment": "Annual 4th of July Parade on Main Street in Hailey, Starting at non and ending around 1:30pm.\nTraffic Control: Chief Steve England 208-309-1323, Hailey Police Dept. 208-788-3531, ITD- KC Marcroft, 986-200-9260.",
|
|
"cause": "specialEvents",
|
|
"organization": "ERS",
|
|
"recurrence_text": "<b>Sat:</b><br/>Active all day<br/><br/>",
|
|
"recurrence_schedules": [
|
|
{
|
|
"StartDate": "7/4/2026 11:00:00 AM-06:00:00",
|
|
"EndDate": "7/4/2026 2:00:00 PM-06:00:00",
|
|
"Times": [
|
|
{
|
|
"StartTime": "00:00:00-06:00:00",
|
|
"EndTime": "23:59:59-06:00:00"
|
|
}
|
|
],
|
|
"DaysOfWeek": [
|
|
"Saturday"
|
|
]
|
|
}
|
|
],
|
|
"restrictions": {
|
|
"Width": null,
|
|
"Height": null,
|
|
"Length": null,
|
|
"Weight": null,
|
|
"Speed": null
|
|
},
|
|
"detour_polyline": null,
|
|
"detour_instructions": null,
|
|
"encoded_polyline": "uzshGx|vxThBmArAcA|DqCbEuC~DoCzAeA~AiAbEuC|JaHLKnA{@bBkA",
|
|
"id_internal": 40283,
|
|
"source_id": "11488",
|
|
"reported_epoch": 1783184400,
|
|
"last_updated_epoch": 1782943043,
|
|
"start_epoch": 1783184400,
|
|
"planned_end_epoch": 1783195200,
|
|
"latitude": 43.5244347035805,
|
|
"longitude": -114.319013292506,
|
|
"_enriched": {
|
|
"geocoder": {
|
|
"name": null,
|
|
"city": "Hailey",
|
|
"county": "Blaine",
|
|
"state": "ID",
|
|
"country": "United States",
|
|
"postal_code": "83333",
|
|
"timezone": "America/Boise",
|
|
"landclass": null,
|
|
"elevation_m": 1625.5703125
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"subject": "central.traffic.closure.us.id",
|
|
"captured_epoch": 1783206522
|
|
} |