mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-06-10 17:04:45 +02:00
First per-adapter content formatter in the meshai-side central_normalizer library (per Central response to schema-divergence + nearest-town reports). state_511_atis (94% of Idaho 511 work-zone traffic) now produces clean wire strings like "🚧 SH-55, near McCall: both directions, emergency repairs" instead of the previous "🚧 ROADS: Work Zone, US-ID. routine -- roadwork". Implementation: nearest_town(lat, lon) calls Photon directly at 100.64.0.24:2322/reverse with osm_tag=place + client-side filter for city/town/village/hamlet (Navi passthrough route documented in Central response does not exist on current Navi instance). H3-cell-7 LRU cache. Town fallback chain: _enriched.geocoder.city -> nearest_town(coords) -> drop segment. Composer bypass via event.data["_meshai_precomposed"] flag -- renderer owns full wire string for normalized events. SB->S route normalization. distance<1mi -> "near X". Tests: 535 passed (was 511, +24 net). Synthetic probe over 25 bucket-B + 8 fixture envelopes confirmed 23/25 + 8/8 produce clean output; 2/25 fell back to None (drop segment) on Photon index gaps near Boise/Cascade. Matt eyeballed and approved. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
60 lines
No EOL
2 KiB
JSON
60 lines
No EOL
2 KiB
JSON
{
|
|
"id": "ID:Construction:33281",
|
|
"source": "central.echo6.co",
|
|
"type": "central.work_zone.state_511_atis.v1",
|
|
"time": "2026-05-29T08:03:00+00:00",
|
|
"datacontenttype": "application/json",
|
|
"centralschemaversion": "1.0",
|
|
"centralcategory": "work_zone.state_511_atis",
|
|
"centralseverity": 1,
|
|
"specversion": "1.0",
|
|
"data": {
|
|
"id": "ID:Construction:33281",
|
|
"adapter": "state_511_atis",
|
|
"category": "work_zone.state_511_atis",
|
|
"time": "2026-05-29T08:03:00Z",
|
|
"expires": "2026-06-03T17:00:00Z",
|
|
"severity": 1,
|
|
"geo": {
|
|
"centroid": [
|
|
-112.388532253628,
|
|
43.1524044098836
|
|
],
|
|
"bbox": null,
|
|
"regions": [
|
|
"US-ID"
|
|
],
|
|
"primary_region": "US-ID",
|
|
"geometry": null
|
|
},
|
|
"data": {
|
|
"roadway_name": "I-15",
|
|
"description": "Bridge construction on I-15 Northbound from MM (89) to MM (93). 1 Right lane closed. 6/1/2026 7:00 AM to 6/3/2026 5:00 PM Mon: Paused all day, Tue, Wed: 7:00 AM - 5:00 PM Speed Restriction: 65mph Activities: Mandatory Speed Limit in Force, Use Caution.<div class='cellSpacer'><i><b>Comments:</b></i> North Bound right lane closed with speed reduction to 65 mph.\n</div>",
|
|
"event_sub_type": "bridgeConstruction",
|
|
"direction": "North",
|
|
"location_description": "I-15-BL | Snake River",
|
|
"county": "Bingham",
|
|
"state": "Idaho",
|
|
"start_date": "6/1/26, 7:00 AM",
|
|
"last_updated": "5/29/26, 8:03 AM",
|
|
"is_full_closure": false,
|
|
"layer": "Construction",
|
|
"state_code": "ID",
|
|
"latitude": 43.1524044098836,
|
|
"longitude": -112.388532253628,
|
|
"_enriched": {
|
|
"geocoder": {
|
|
"name": "North Treaty Highway",
|
|
"city": null,
|
|
"county": "Bingham",
|
|
"state": "Idaho",
|
|
"country": "United States",
|
|
"postal_code": null,
|
|
"timezone": "America/Boise",
|
|
"landclass": "Fort Hall Reservation",
|
|
"elevation_m": 1367.98828125
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |