Commit 7479f6e
committed
feat(transit-motis): structured TripUpdate + RT-aware departures + promote guard
- TripUpdate becomes a structured type ({tripId, expectedAt, delaySeconds,
canceled, platform}); getTripUpdate signature gains optional stopId.
- live-transit-motis derives structured deltas from MOTIS itineraries via
deltaFromItinerary(); recognises only MOTIS-prefixed trip ids so the
orchestrator can fall through cleanly.
- New integrations/transit/realtime.ts enriches getDepartures/getArrivals
with live deltas from registered RealtimeProviders covering the bbox.
- Orchestrator's resolveByPrefix is async + skips providers in cooldown so
unhealthy upstreams stop short-circuiting healthy fallbacks.
- MOTIS_URL env var threaded through transit-motis-local, live-transit-motis,
and geocoding-motis so one var reaches every local-MOTIS consumer.
- Promote stage requires config.yml plus either a data-manager-written
import-marker or a known sentinel file; the old "directory non-empty"
fallback that let partial/junk volumes pass is gone.
- gen-motis-config + gen-full-config honour MOTIS_INCREMENTAL_RT_UPDATE.
- @openmapx/mobility-core subpath renamed from /types to /shared-mobility
for clarity; bike/scooter/car-sharing + tsconfigs updated.1 parent 923ee22 commit 7479f6e
37 files changed
Lines changed: 1355 additions & 90 deletions
File tree
- apps/web
- integrations
- bike-sharing/providers
- car-sharing
- __tests__
- providers
- geocoding-motis
- live-transit-motis
- __tests__
- scooter-sharing/providers
- transit-motis
- transit
- __tests__
- packages
- cli
- core
- integration-framework/src/contracts
- mobility-core
- services/data-manager
- __tests__/transitous
- src/jobs/transitous
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments