Skip to content

Commit ade6c6e

Browse files
committed
feat(roads): extend declarative mapping and add six regional feeds
The generic GeoJSON mapping gains validity dates, a record filter and start/end coordinate fields, so three sources become descriptor entries rather than parser work. Québec's existing chantiers feed is retrofitted with its debut/fin — without them every Québec work zone read as active. New coverage: - Québec MTQ warnings (ms:evenements), with a crosswalk for the French obstruction phrasings the layer publishes. - Iceland's line-incident layer: every feature ships a null geometry beside WGS84 start/end columns, and four fifths of it is a passable baseline the filter drops. - Ohio OHGO construction + incidents, a new point-event parser beside the existing travel-delay flow reader. The envelope is read in either casing — the host is geo-restricted, and guessing wrong would yield zero records rather than an error. - Victoria planned + unplanned disruptions, sharing the Freeway feed's key. Recurrences map to the canonical Melbourne-local schedule; a response reporting more pages warns rather than truncating silently. - Ontario + New York road/winter conditions, via a second IBI 511 parser. Segments reporting a clear road are skipped, so an empty result outside the season is the normal state. - Croatia's events publication beside the existing roadworks feed, plus taxonomy mappings for the two record classes it leans on. WZDx 3.1 feeds now parse: v3 puts the core fields directly on properties, which the v4 mapping read as no event type at all, so Québec City's work zones all landed as `other`. The resolver admits 3.1 rows accordingly. DATEX records dropped for want of coordinates are counted per source and surfaced in GET /feeds/status, so a feed losing its records to Alert-C-only encoding no longer looks like a healthy, quiet one. Credential metadata no longer depends on feed ordering: a feed that shares an existing key without declaring a setup guide previously overwrote the guide an earlier feed contributed.
1 parent c9c5076 commit ade6c6e

50 files changed

Lines changed: 3028 additions & 31 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/road-feed-credentials.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
| Live Traffic NSW (New South Wales) | `AU_NSW_LIVETRAFFIC_API_KEY` | CC-BY-4.0 | [Register at Transport NSW Open Data](https://opendata.transport.nsw.gov.au/data/user/register) |
1010
| QLDTraffic (Queensland) | `AU_QLD_TRAFFIC_API_KEY` | CC-BY-4.0 | [QLDTraffic](https://www.qldtraffic.qld.gov.au/) |
1111
| Freeway Travel Time (Victoria) | `AU_VIC_VICROADS_API_KEY` | CC-BY-4.0 | [Transport Victoria Open Data Portal](https://opendata.transport.vic.gov.au/) |
12+
| Planned road disruptions (Victoria) | `AU_VIC_VICROADS_API_KEY` | CC-BY-4.0 | |
13+
| Unplanned road disruptions (Victoria) | `AU_VIC_VICROADS_API_KEY` | CC-BY-4.0 | |
1214
| LVZ.NRW (Nordrhein-Westfalen) via Mobilithek | `MOBILITHEK_CERT`, `MOBILITHEK_KEY`, `DE_NW_VERKEHR_SUBSCRIPTION_ID` | dl-de/zero-2-0 | [Mobilithek registration](https://mobilithek.info/registration-request) |
1315
| NRW municipalities (Düsseldorf, Köln, Kreis Unna) via Mobilithek | `MOBILITHEK_CERT`, `MOBILITHEK_KEY`, `DE_NW_MOBILITHEK_KOMMUNAL_SUBSCRIPTION_ID` | dl-de/zero-2-0 | [Mobilithek registration](https://mobilithek.info/registration-request) |
1416
| NRW.Mobidrom bundled roadworks via Mobilithek | `MOBILITHEK_CERT`, `MOBILITHEK_KEY`, `DE_NW_MOBILITHEK_MOBIDROM_SUBSCRIPTION_ID` | CC-BY-SA-4.0 | [Mobilithek registration](https://mobilithek.info/registration-request) |
@@ -36,6 +38,7 @@
3638
| Tark Tee (Estonia) | `EE_TARKTEE_API_KEY` | CC-BY-4.0 | [Register at Tark Tee](https://tarktee.transpordiamet.ee/#/en/datex-registration) |
3739
| National Highways NTIS (England) | `GB_NATIONALHIGHWAYS_API_KEY` | OGL-UK-3.0 | [National Highways developer portal](https://developer.data.nationalhighways.co.uk/signin) |
3840
| Hrvatske ceste roadworks (Croatia) | `HR_HC_USERNAME`, `HR_HC_PASSWORD` | OD-HR | [Hrvatske ceste](https://www.hrvatske-ceste.hr/) |
41+
| Hrvatske ceste traffic events (Croatia) | `HR_HC_USERNAME`, `HR_HC_PASSWORD` | OD-HR | [Hrvatske ceste](https://www.hrvatske-ceste.hr/) |
3942
| Statens vegvesen (Norway) | `NO_VEGVESEN_USERNAME`, `NO_VEGVESEN_PASSWORD` | NLOD-2.0 | [Statens vegvesen — get DATEX access](https://www.vegvesen.no/en/fag/technology/open-data/a-selection-of-open-data/what-is-datex/get-access/) |
4043
| Statens vegvesen traffic speed (Norway) | `NO_VEGVESEN_USERNAME`, `NO_VEGVESEN_PASSWORD` | NLOD-2.0 | [Statens vegvesen — get DATEX access](https://www.vegvesen.no/en/fag/technology/open-data/a-selection-of-open-data/what-is-datex/get-access/) |
4144
| Trafikverket (Sweden) | `SE_TRAFIKVERKET_API_KEY` | CC0-1.0 | [Sign up at Trafikverket](https://data.trafikverket.se/oauth2/Account/register) |
@@ -44,4 +47,7 @@
4447
| LTA DataMall Traffic Speed Bands (Singapore) | `SG_LTA_ACCOUNT_KEY` | Singapore-ODL-1.0 | [Request LTA API access](https://datamall.lta.gov.sg/content/datamall/en/request-for-api.html) |
4548
| NAP Slovenia (promet.si) | `SI_NAP_USERNAME`, `SI_NAP_PASSWORD` | CC-BY-SA-4.0 | [Register at NAP Slovenia](https://www.nap.si/en/registration) |
4649
| 511NY (New York) | `US_NY_511_API_KEY` | 511NY-DAA | [Create a 511NY account](https://511ny.org/my511/register) |
50+
| 511NY winter road conditions (New York) | `US_NY_511_API_KEY` | 511NY-DAA | |
4751
| OHGO travel delays (Ohio) | `US_OH_OHGO_API_KEY` | US-Gov-Public-Domain | [OHGO developer registration](https://ohgo.com/developer) |
52+
| OHGO construction (Ohio) | `US_OH_OHGO_API_KEY` | US-Gov-Public-Domain | |
53+
| OHGO incidents (Ohio) | `US_OH_OHGO_API_KEY` | US-Gov-Public-Domain | |

packages/core/src/model.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ export type SourceFormat =
4242
| "webtris"
4343
| "nyc-dot"
4444
| "ohgo"
45+
| "ohgo-events"
46+
| "vic-disruptions"
47+
| "ibi511-conditions"
4548
| "trafikverket-flow"
4649
| "bonn"
4750
| "informo"

0 commit comments

Comments
 (0)