mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
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:
1 parent
14db73f201
commit
830c080803
114 files changed
+26639
-26
No files matched your search
@@ -32,6 +32,7 @@ export const LAYER_NAME_KEYS = Object.freeze({
|
||||
'local-adsb': msg('Local ADS-B'),
|
||||
'osm-places': msg('OSM Places'),
|
||||
transit: msg('Transit'),
|
||||
rail: msg('Rail'),
|
||||
'recent-imagery': msg('Recent Imagery'),
|
||||
'fire-perimeters': msg('Fire Perimeters'),
|
||||
'gnss-integrity': msg('GNSS Integrity'),
|
||||
|
||||
@@ -53,6 +53,7 @@ const PANEL_GROUPS = [
|
||||
'ais-live-vessels',
|
||||
'traffic',
|
||||
'transit',
|
||||
'rail',
|
||||
'bikeshare',
|
||||
],
|
||||
},
|
||||
|
||||
@@ -4,7 +4,7 @@ import assert from 'node:assert/strict';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { runInNewContext } from 'node:vm';
|
||||
|
||||
test('panel presentation places Transit between Street Traffic and Bike Share in Movement', () => {
|
||||
test('panel presentation places Transit and Rail between Street Traffic and Bike Share in Movement', () => {
|
||||
const source = readFileSync(
|
||||
new URL('./layerPanel.js', import.meta.url),
|
||||
'utf8',
|
||||
@@ -28,10 +28,12 @@ test('panel presentation places Transit between Street Traffic and Bike Share in
|
||||
'ais-live-vessels',
|
||||
'traffic',
|
||||
'transit',
|
||||
'rail',
|
||||
'bikeshare',
|
||||
],
|
||||
);
|
||||
assert.equal(order.filter(({ id }) => id === 'transit').length, 1);
|
||||
assert.equal(order.filter(({ id }) => id === 'rail').length, 1);
|
||||
});
|
||||
|
||||
test('Wildlife follows Events and precedes Weather', () => {
|
||||
|
||||
Reference in new issue
Block a user