feat(rail): add a Rail layer with keyless live trains

Live trains from 30 keyless operator feeds: GPS positions from 29 and
Irish Rail's station reports, shown as the operators publish them. 28
work out of the box; Renfe long and medium distance and KTMB appear once
their pack is built, because their vehicles name no route.

Packs are opt-in (scripts/build-rail-paths.mjs): the operator's own
route lines, stop names, next stops and trip-update delays for live
trains. Nothing downloads when the app starts, no train is placed from a
timetable, and no request carries a deployer's key.
This commit is contained in:
Denis Groshev committed 2026-11-11 16:06:22 +01:00
1 parent 14db73f201
commit 830c080803
114 files changed
+26639 -26

No files matched your search

+13
View File
@@ -313,6 +313,13 @@ const OPTION_GROUPS = Object.freeze({
high: 'h',
}),
]),
rail: Object.freeze([
booleanOption('transit', 't', true),
booleanOption('local', 'l', true),
booleanOption('regional', 'r', true),
booleanOption('national', 'n', true),
booleanOption('international', 'i', true),
]),
'wildlife-sightings': Object.freeze([
booleanOption('confirmed', 'c', false),
enumOption(
@@ -700,6 +707,12 @@ export const LAYER_STATE_REGISTRY = Object.freeze([
disposition: 'enabled+options',
optionOwner: 'radio',
}),
Object.freeze({
id: 'rail',
token: '02',
disposition: 'enabled+options',
optionOwner: 'rail',
}),
Object.freeze({
id: 'recent-imagery',
token: '1',