Skip to content

feat(metro-north): add live Metro-North rail coverage - #24

Merged
joncrangle merged 1 commit into
mainfrom
feat/metro-north-transit
Nov 13, 2026
Merged

joncrangle merged 1 commit into
mainfrom
feat/metro-north-transit

Conversation

@joncrangle

Copy link
Copy Markdown
Owner

Summary

Add Metro-North Railroad with six East-of-Hudson routes, 113 served stops and an original 35-station schematic. Port Jervis and Pascack Valley remain outside this agency's live departure coverage.

MTA static GTFS + complete realtime trip calls
  → actual destinations, direction and final-call filtering
  → station departures + compound-entity vehicle tracking
  → Metro-North map and registered partner connections

Core gains two explicit feed options for complete trip updates and vehicle identity from the same entity's trip update. Ordinary feeds keep their existing interpretation. The Rust relay accepts the upstream legacy version string and preserves wire bytes.

Closes #13.

Evidence

  • Before: Metro-North was absent. Its realtime trip IDs did not match static trips, and vehicle messages omitted route identities.
    After: Fresh MTA captures produce GPS positions and departures in both directions, including actual short-turn destinations. Stamford through trains retain Grand Central as their destination instead of being rewritten as branch departures.
  • Verified live station boards and healthy advisory snapshots through both Worker and self-hosted paths. Forced upstream failures remain failures. Compared MTA website notices with the advisory feed.
  • Seeded SQLite and local D1. All 113 served stops fall inside coverage; Automatic selection remains unchanged at 146,430 existing regional stop points.
  • Generated interchanges stabilized with zero changed placements and no new conflicts on NYC, LIRR or Metro-North maps. Existing unrelated maps retain 149 placement conflicts. Grand Central walking nodes open the correct facility card and support switching to LIRR.
  • Inspected desktop and mobile map rendering, branch endpoints and walking connections. Independent Terra Standards and Spec reviews found no actionable issues.
  • Passed 4,534 unit tests, 107 integration tests and 112 Rust tests; TypeScript, lint, formatting, production build, Clippy, Rust formatting, agency, docs, attribution, alert identity and coverage geography checks.

Sources checked November 13, 2026: MTA developer feeds, official railroad map, MTA advisories, Metro-North static GTFS.

Merge Danger

Door: Two-way

No schema migration. Metro-North has only been seeded locally. After review and deployment, seed the agency into production transit storage.

Blast Radius: Realtime

Shared GTFS decoding now resolves entity fields independently of wire order. Complete-trip destination and vehicle-identity behavior is opt-in. Fictional regression fixtures cover both directions, through boarding, final calls, partial feeds, explicit conflicting vehicle routes and Rust relay parity.

@joncrangle
joncrangle marked this pull request as ready for review November 13, 2026 22:27
@joncrangle
joncrangle merged commit 107ab86 into main Nov 13, 2026
4 checks passed
@joncrangle
joncrangle deleted the feat/metro-north-transit branch November 13, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Metro-North Railroad as an experimental rail agency

1 participant