Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4be16f44bd | |||
| 7480caad6f | |||
| 5c81b54ca1 | |||
| 1add69b0eb | |||
| 0fc2c0177b | |||
| 06861f4037 | |||
| 11ec2574f0 | |||
| 904942e078 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,6 +4,7 @@ node_modules
|
|||||||
/static/mapFiles/json/
|
/static/mapFiles/json/
|
||||||
/static/map-index.json
|
/static/map-index.json
|
||||||
/src/lib/assets/route/*.json
|
/src/lib/assets/route/*.json
|
||||||
|
/src/lib/assets/station/*.json
|
||||||
|
|
||||||
# Output
|
# Output
|
||||||
.output
|
.output
|
||||||
|
|||||||
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"yaml.schemas": {
|
"yaml.schemas": {
|
||||||
"./static/mapFiles/yaml/mapFiles.schema.json": "static/mapFiles/yaml/*.yaml"
|
"./static/mapFiles/yaml/mapFiles.schema.json": "static/mapFiles/yaml/*.yaml",
|
||||||
|
"./static/stations/stationFiles.schema.json": "static/stations/*.yaml"
|
||||||
},
|
},
|
||||||
"yaml.format.enable": true,
|
"yaml.format.enable": true,
|
||||||
"yaml.validate": true,
|
"yaml.validate": true,
|
||||||
|
|||||||
608
package-lock.json
generated
608
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -3,7 +3,9 @@ import fs from 'fs';
|
|||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
const inputDir = './static/mapFiles/yaml';
|
const inputDir = './static/mapFiles/yaml';
|
||||||
|
const stationInputDir = './static/stations';
|
||||||
const outputDir = './src/lib/assets/route';
|
const outputDir = './src/lib/assets/route';
|
||||||
|
const stationOutputDir = './src/lib/assets/station';
|
||||||
const indexFile = './static/map-index.json';
|
const indexFile = './static/map-index.json';
|
||||||
|
|
||||||
const noiseRegex = /\s+(single line|junction|jn|junc|jct|gf|north|south|east|west)\.?$/i;
|
const noiseRegex = /\s+(single line|junction|jn|junc|jct|gf|north|south|east|west)\.?$/i;
|
||||||
@@ -11,6 +13,23 @@ const noiseRegex = /\s+(single line|junction|jn|junc|jct|gf|north|south|east|wes
|
|||||||
if (!fs.existsSync(outputDir)) fs.mkdirSync(outputDir, { recursive: true });
|
if (!fs.existsSync(outputDir)) fs.mkdirSync(outputDir, { recursive: true });
|
||||||
|
|
||||||
const mapList = [];
|
const mapList = [];
|
||||||
|
const stationList = [];
|
||||||
|
|
||||||
|
fs.readdirSync(stationInputDir).forEach((file) => {
|
||||||
|
if (file.endsWith('.yaml')) {
|
||||||
|
const fullPath = path.join(stationInputDir, file);
|
||||||
|
const content = yaml.load(fs.readFileSync(fullPath, 'utf8'));
|
||||||
|
|
||||||
|
if (content.crs) {
|
||||||
|
stationList.push(content.crs);
|
||||||
|
}
|
||||||
|
|
||||||
|
const fileName = file.replace('.yaml', '.json');
|
||||||
|
fs.writeFileSync(path.join(stationOutputDir, fileName), JSON.stringify(content));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
console.log(`Found station declarations for the following: ${JSON.stringify(stationList)}`);
|
||||||
|
|
||||||
fs.readdirSync(inputDir).forEach((file) => {
|
fs.readdirSync(inputDir).forEach((file) => {
|
||||||
if (file.endsWith('.yaml')) {
|
if (file.endsWith('.yaml')) {
|
||||||
@@ -18,12 +37,18 @@ fs.readdirSync(inputDir).forEach((file) => {
|
|||||||
const content = yaml.load(fs.readFileSync(fullPath, 'utf8'));
|
const content = yaml.load(fs.readFileSync(fullPath, 'utf8'));
|
||||||
|
|
||||||
const fileName = file.replace('.yaml', '.json');
|
const fileName = file.replace('.yaml', '.json');
|
||||||
fs.writeFileSync(path.join(outputDir, fileName), JSON.stringify(content));
|
|
||||||
|
|
||||||
const contentSet = new Set();
|
const contentSet = new Set();
|
||||||
|
|
||||||
|
// Use this loop to add a 'link' to each station if its CRS exists in 'stationList'
|
||||||
if (Array.isArray(content.routeDetail)) {
|
if (Array.isArray(content.routeDetail)) {
|
||||||
content.routeDetail.forEach((item) => {
|
content.routeDetail.forEach((item) => {
|
||||||
|
if (item.type === 'station' && item.crs) {
|
||||||
|
// Edit the item if item.crs exists in 'stationList' - maybe a `linkable: true`?
|
||||||
|
if (stationList.includes(item.crs)) {
|
||||||
|
item.stationInfo = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
if ((item.type === 'junction' || item.type === 'station') && item.name) {
|
if ((item.type === 'junction' || item.type === 'station') && item.name) {
|
||||||
let cleanName = item.name;
|
let cleanName = item.name;
|
||||||
|
|
||||||
@@ -44,6 +69,8 @@ fs.readdirSync(inputDir).forEach((file) => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fs.writeFileSync(path.join(outputDir, fileName), JSON.stringify(content));
|
||||||
|
|
||||||
mapList.push({
|
mapList.push({
|
||||||
routeId: content.routeId || null,
|
routeId: content.routeId || null,
|
||||||
routeStart: content.routeStart || null,
|
routeStart: content.routeStart || null,
|
||||||
|
|||||||
10
src/app.html
10
src/app.html
@@ -7,8 +7,14 @@
|
|||||||
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"
|
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"
|
||||||
/>
|
/>
|
||||||
<link rel="manifest" href="/manifest.webmanifest" />
|
<link rel="manifest" href="/manifest.webmanifest" />
|
||||||
<meta name="title" content="OwlBoard Maps | Railway route schematics to assist with learning & refreshing routes" />
|
<meta
|
||||||
<meta name="description" content="Schematic route diagrams showing stations, junctions, crossings, bridges and more" />
|
name="title"
|
||||||
|
content="OwlBoard Maps | Railway route schematics to assist with learning & refreshing routes"
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Schematic route diagrams showing stations, junctions, crossings, bridges and more"
|
||||||
|
/>
|
||||||
<meta name="theme-color" content="#4fd1d1" />
|
<meta name="theme-color" content="#4fd1d1" />
|
||||||
<link rel="canonical" href="https://maps.owlboard.info" />
|
<link rel="canonical" href="https://maps.owlboard.info" />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
|
|||||||
@@ -16,6 +16,18 @@
|
|||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
[id] {
|
:root {
|
||||||
scroll-margin-top: 100px;
|
/* Brand Colours */
|
||||||
|
--color-brand: #4fd1d1;
|
||||||
|
--color-brand-light: #5af5f5;
|
||||||
|
--color-accent: #3c6f79;
|
||||||
|
--color-accent-light: #5094a2;
|
||||||
|
--color-title: #ebebeb;
|
||||||
|
--color-bg-light: #404c55;
|
||||||
|
--color-bg-dark: #2b343c;
|
||||||
|
|
||||||
|
/* Shadows */
|
||||||
|
--color-shadow: hsla(210, 20%, 5%, 0.35);
|
||||||
|
--shadow-std: 0 4px 12px var(--color-shadow);
|
||||||
|
--shadow-up: 0 -4px 12px var(--color-shadow);
|
||||||
}
|
}
|
||||||
|
|||||||
0
src/lib/assets/station/blank.txt
Normal file
0
src/lib/assets/station/blank.txt
Normal file
@@ -1,18 +1,53 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { components } from '$lib/mapRegistry';
|
import { components } from '$lib/mapRegistry';
|
||||||
import type { ElecType } from '$lib/railStyles';
|
import type { ElecType } from '$lib/railStyles';
|
||||||
import { IconArrowNarrowRight } from '@tabler/icons-svelte';
|
import { IconArrowNarrowRight, IconInfoCircle } from '@tabler/icons-svelte';
|
||||||
|
import StationInfo from '$lib/components/StationInfo.svelte';
|
||||||
|
|
||||||
type featureType = "station" | "junction" | "crossovers" | "siteof" | "bridge" | "minorBridge" | "crossover" | "crossing" | "loop" | "loops" | "signallerChange" | "electrificationChange" | "default" | "tunnel";
|
type featureType =
|
||||||
export let feature: {name: string; type: featureType; goto?: string; entryPoint?: string; miles: number; chains: number; description?: string}; // Raw Object
|
| 'station'
|
||||||
export let activeElec: ElecType; // Active Electrification Type
|
| 'junction'
|
||||||
export let reversed: boolean = false;
|
| 'crossovers'
|
||||||
|
| 'siteof'
|
||||||
|
| 'bridge'
|
||||||
|
| 'minorBridge'
|
||||||
|
| 'crossover'
|
||||||
|
| 'crossing'
|
||||||
|
| 'loop'
|
||||||
|
| 'loops'
|
||||||
|
| 'signallerChange'
|
||||||
|
| 'electrificationChange'
|
||||||
|
| 'default'
|
||||||
|
| 'tunnel';
|
||||||
|
|
||||||
$: Icon = components[feature.type] || components.default;
|
let {
|
||||||
|
feature,
|
||||||
|
activeElec,
|
||||||
|
reversed = false,
|
||||||
|
onShowInfo
|
||||||
|
}: {
|
||||||
|
feature: {
|
||||||
|
name: string;
|
||||||
|
type: featureType;
|
||||||
|
goto?: string;
|
||||||
|
entryPoint?: string;
|
||||||
|
miles: number;
|
||||||
|
chains: number;
|
||||||
|
description?: string;
|
||||||
|
stationInfo?: boolean;
|
||||||
|
crs?: string;
|
||||||
|
};
|
||||||
|
activeElec: ElecType;
|
||||||
|
reversed?: boolean;
|
||||||
|
onShowInfo: (crs: string) => void;
|
||||||
|
} = $props();
|
||||||
|
|
||||||
|
let Icon = $derived(components[feature.type] || components.default);
|
||||||
|
|
||||||
// Linking Logic
|
// Linking Logic
|
||||||
$: isLinkable = !!(feature.goto && feature.entryPoint);
|
let isLinkable = $derived(!!(feature?.goto && feature?.entryPoint));
|
||||||
$: href = `/map/${feature.goto}#${feature.entryPoint}`;
|
let href = $derived(`/map/${feature.goto}#${feature.entryPoint}`);
|
||||||
|
let stationInfo = $derived(feature.type === 'station' && feature.stationInfo && feature.crs);
|
||||||
|
|
||||||
const slugify = (str?: string) =>
|
const slugify = (str?: string) =>
|
||||||
str?.toLocaleLowerCase().trim().replace(/\s+/g, '-') ?? 'unknown';
|
str?.toLocaleLowerCase().trim().replace(/\s+/g, '-') ?? 'unknown';
|
||||||
@@ -25,10 +60,14 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="icon-col">
|
<div class="icon-col">
|
||||||
<svelte:component this={Icon} feature={feature as any} {activeElec} {reversed} />
|
<svelte:component this={Icon} {feature} {activeElec} {reversed} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<svelte:element this={isLinkable ? 'a' : 'div'} {...(isLinkable ? { href } : {})} class="link-wrapper">
|
<svelte:element
|
||||||
|
this={isLinkable ? 'a' : 'div'}
|
||||||
|
{...isLinkable ? { href } : {}}
|
||||||
|
class="link-wrapper"
|
||||||
|
>
|
||||||
<div class="label-col">
|
<div class="label-col">
|
||||||
{#if feature.name}
|
{#if feature.name}
|
||||||
<div class="feature-name">{feature.name}</div>
|
<div class="feature-name">{feature.name}</div>
|
||||||
@@ -37,14 +76,19 @@
|
|||||||
<div class="feature-desc">{feature.description}</div>
|
<div class="feature-desc">{feature.description}</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if isLinkable}
|
{#if isLinkable}
|
||||||
<div class="link-indicator">
|
<div class="link-indicator">
|
||||||
<IconArrowNarrowRight />
|
<IconArrowNarrowRight />
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
{#if stationInfo}
|
||||||
|
<div class="info-indicator" onclick={() => onShowInfo(feature.crs)}>
|
||||||
|
<IconInfoCircle />
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
</svelte:element>
|
</svelte:element>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@@ -62,6 +106,7 @@ a {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
scroll-padding: 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mileage-col {
|
.mileage-col {
|
||||||
@@ -83,7 +128,6 @@ a {
|
|||||||
font-size: 0.7rem;
|
font-size: 0.7rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.icon-col {
|
.icon-col {
|
||||||
width: 64px;
|
width: 64px;
|
||||||
height: 64px;
|
height: 64px;
|
||||||
@@ -93,7 +137,6 @@ a {
|
|||||||
overflow: visible;
|
overflow: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.link-wrapper {
|
.link-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
@@ -125,6 +168,24 @@ a {
|
|||||||
transform: rotate(-45deg);
|
transform: rotate(-45deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.info-indicator {
|
||||||
|
position: relative;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-indicator::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
width: 44px;
|
||||||
|
height: 44px;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
}
|
||||||
|
|
||||||
.label-col {
|
.label-col {
|
||||||
padding-left: 16px;
|
padding-left: 16px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
403
src/lib/components/StationInfo.svelte
Normal file
403
src/lib/components/StationInfo.svelte
Normal file
@@ -0,0 +1,403 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
/*
|
||||||
|
Loads and displayes a 'Station Info' Modal
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { fade, fly } from 'svelte/transition';
|
||||||
|
import { quintOut } from 'svelte/easing';
|
||||||
|
|
||||||
|
import { IconDisabled, IconUserCheck, IconTrafficLights } from '@tabler/icons-svelte';
|
||||||
|
|
||||||
|
let { crs, onclose }: { crs: string; onclose: () => void } = $props();
|
||||||
|
|
||||||
|
let dialogRef = $state<HTMLDialogElement>();
|
||||||
|
|
||||||
|
$effect(() => {
|
||||||
|
if (dialogRef) {
|
||||||
|
dialogRef.showModal();
|
||||||
|
console.log('Modal Diaplayes');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const allStations = import.meta.glob('$lib/assets/station/*.json', { query: '?json' });
|
||||||
|
|
||||||
|
let stationData = $state<any>(null);
|
||||||
|
let error = $state<string | null>(null);
|
||||||
|
|
||||||
|
$effect(() => {
|
||||||
|
stationData = null;
|
||||||
|
error = null;
|
||||||
|
|
||||||
|
const path = `/src/lib/assets/station/${crs.toLowerCase()}.json`;
|
||||||
|
|
||||||
|
if (path in allStations) {
|
||||||
|
allStations[path]()
|
||||||
|
.then((mod: any) => {
|
||||||
|
stationData = mod.default;
|
||||||
|
console.log('Modal is present in page...');
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
error = `Could not parse data for ${crs}`;
|
||||||
|
console.error(err);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
error = `Station ${crs} not found in database`;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function parsePlatform(id: string) {
|
||||||
|
id = String(id || '');
|
||||||
|
const match = id.match(/^(.*?)(Up|Dn)$/);
|
||||||
|
if (match) {
|
||||||
|
return { plat: match[1], direction: match[2] };
|
||||||
|
}
|
||||||
|
return { plat: id, direction: null };
|
||||||
|
}
|
||||||
|
|
||||||
|
const getTrainLayout = (pattern: any) => {
|
||||||
|
let coachCount = 0;
|
||||||
|
if (pattern.kind === 'IET5') coachCount = 5;
|
||||||
|
else if (pattern.kind === 'IET9') coachCount = 9;
|
||||||
|
else if (pattern.kind === 'IET10') coachCount = 10;
|
||||||
|
else if (pattern.kind === 'DMU') coachCount = pattern['max-car'] || 0;
|
||||||
|
|
||||||
|
const [startDoor, endDoor] = pattern.doors || [1, coachCount * 2];
|
||||||
|
|
||||||
|
return Array.from({ length: coachCount }, (_, i) => {
|
||||||
|
const coachNum = i + 1;
|
||||||
|
const doorA = i * 2 + 1;
|
||||||
|
const doorB = i * 2 + 2;
|
||||||
|
|
||||||
|
return {
|
||||||
|
label: coachNum,
|
||||||
|
doorAOpen: doorA >= startDoor && doorA <= endDoor,
|
||||||
|
doorBOpen: doorB >= startDoor && doorB <= endDoor
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<dialog bind:this={dialogRef} {onclose} onclick={(e) => e.target === dialogRef && onclose()}>
|
||||||
|
{#if stationData || error}
|
||||||
|
<div class="modal-wrapper" in:fly={{ y: 20, duration: 400, easing: quintOut }}>
|
||||||
|
<header>
|
||||||
|
<div class="title-group">
|
||||||
|
<span class="crs-badge">{crs.toUpperCase()}</span>
|
||||||
|
<h2>{stationData?.name || 'Loading...'}</h2>
|
||||||
|
</div>
|
||||||
|
<button class="close-icon" onclick={onclose} aria-label="Close">×</button>
|
||||||
|
</header>
|
||||||
|
</div>
|
||||||
|
<div class="content">
|
||||||
|
{#if error}
|
||||||
|
<div class="error-box">{error}</div>
|
||||||
|
{:else if stationData}
|
||||||
|
<div class="platform-data">
|
||||||
|
{#each stationData['platforms'] ?? [] as platform}
|
||||||
|
{@const { plat, direction } = parsePlatform(platform.platformId)}
|
||||||
|
<div class="platform-card">
|
||||||
|
<div class="platform-main">
|
||||||
|
<span class="platform-label">Platform</span>
|
||||||
|
<span class="platform-number">{plat}</span>
|
||||||
|
{#if direction}
|
||||||
|
<span class="platform-direction">({direction})</span>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
<span class="length-tag">{platform.platformLength}m</span>
|
||||||
|
<div class="platform-meta">
|
||||||
|
{#if platform.stepFree}
|
||||||
|
<span class="icon-tag" title="Step-free access"
|
||||||
|
><IconDisabled color="#2563eb" /></span
|
||||||
|
>
|
||||||
|
{/if}
|
||||||
|
{#if platform.dispatch}
|
||||||
|
<span class="icon-tag" title="Dispatch staff present"
|
||||||
|
><IconUserCheck color="#ea580c" /></span
|
||||||
|
>
|
||||||
|
{/if}
|
||||||
|
{#if platform.signal}
|
||||||
|
<span class="icon-tag" title="Starting Signal"
|
||||||
|
><IconTrafficLights color="#dc2626" /></span
|
||||||
|
>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
{#if platform.dispatchNote}
|
||||||
|
<span class="platform-note">{platform.dispatchNote}</span>
|
||||||
|
{/if}
|
||||||
|
{#if platform.stepFreeNote}
|
||||||
|
<span class="platform-note">{platform.stepFreeNote}</span>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<div class="train-visualiser">
|
||||||
|
{#each platform.doorPattern as pattern}
|
||||||
|
<div class="train-row">
|
||||||
|
<span class="door-pattern-kind">{pattern.kind}</span>
|
||||||
|
<div class="coach-row">
|
||||||
|
{#each getTrainLayout(pattern) as coach}
|
||||||
|
<div class="coach-unit">
|
||||||
|
<div class="coach-body">{coach.label}</div>
|
||||||
|
<div class="door-status">
|
||||||
|
<span class="dot" class:open={coach.doorAOpen}></span>
|
||||||
|
<span class="dot" class:open={coach.doorBOpen}></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{/each}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{/each}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{/each}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
</dialog>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
dialog {
|
||||||
|
border: none;
|
||||||
|
border-radius: 16px;
|
||||||
|
padding: 0;
|
||||||
|
max-width: 500px;
|
||||||
|
width: 90%;
|
||||||
|
box-shadow:
|
||||||
|
0 20px 25px -5px rgba(0, 0, 0, 0.1),
|
||||||
|
0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
||||||
|
overflow: hidden;
|
||||||
|
background: white;
|
||||||
|
max-height: 80vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
dialog::backdrop {
|
||||||
|
background: rgba(15, 23, 42, 0.5);
|
||||||
|
backdrop-filter: blur(4px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-wrapper {
|
||||||
|
display: flex;
|
||||||
|
flex: 1;
|
||||||
|
flex-direction: column;
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
background: var(--color-accent);
|
||||||
|
padding: 1rem 1.5rem;
|
||||||
|
margin-bottom: 50px;
|
||||||
|
border-bottom: 1px solid #e2e8f0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
z-index: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-group {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.crs-badge {
|
||||||
|
background: var(--color-bg-light);
|
||||||
|
color: var(--color-title);
|
||||||
|
font-family: monospace;
|
||||||
|
font-weight: bold;
|
||||||
|
padding: 0.2rem 0.5rem;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 1.1rem;
|
||||||
|
color: var(--color-title);
|
||||||
|
}
|
||||||
|
|
||||||
|
.close-icon {
|
||||||
|
background: var(--color-brand);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
line-height: 0;
|
||||||
|
border-radius: 50%;
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
padding: 0;
|
||||||
|
border: none;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
cursor: pointer;
|
||||||
|
color: var(--color-bg-light);
|
||||||
|
transition: all 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close-icon:hover {
|
||||||
|
background: var(--color-brand-light);
|
||||||
|
transform: scale(1.05);
|
||||||
|
transform: rotate(90deg);
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
padding: 1.5rem;
|
||||||
|
overflow-y: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 100%;
|
||||||
|
word-wrap: break-word;
|
||||||
|
flex: 1;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content::-webkit-scrollbar {
|
||||||
|
width: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content::-webkit-scrollbar-thumb {
|
||||||
|
background: #cbd5e1;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-card:first-child {
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-card {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
background: #ffffff;
|
||||||
|
border: 1px solid #e2e8f0;
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 0.75rem 1.25rem;
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
||||||
|
transition: transform 0.15s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-main {
|
||||||
|
display: flex;
|
||||||
|
align-items: baseline;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-label {
|
||||||
|
font-size: 0.7rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-number {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #0f172a;
|
||||||
|
line-height: 1;
|
||||||
|
font-family: sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-direction {
|
||||||
|
font-size: 1rem;
|
||||||
|
color: #475569;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.platform-meta {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.length-tag {
|
||||||
|
font-family: 'JetBrains Mono', 'Fira Code', monospace;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
background: var(--color-bg-light);
|
||||||
|
color: var(--color-title);
|
||||||
|
padding: 0.25rem 0.6rem;
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid #e2e8f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-tag {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.train-visualiser {
|
||||||
|
margin-top: 1.25rem;
|
||||||
|
width: 100%;
|
||||||
|
padding: 1rem;
|
||||||
|
background: #f8fafc;
|
||||||
|
border-radius: 6px;
|
||||||
|
border: 1px solid #e2e8f0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.train-row {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.door-pattern-kind {
|
||||||
|
font-size: 0.7rem;
|
||||||
|
font-weight: 800;
|
||||||
|
color: #101316;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.05em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.coach-row {
|
||||||
|
display: flex;
|
||||||
|
gap: 4px;
|
||||||
|
overflow-x: auto;
|
||||||
|
padding-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.coach-unit {
|
||||||
|
flex: 0 0 32px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.coach-body {
|
||||||
|
height: 20px;
|
||||||
|
background: var(--color-accent-light);
|
||||||
|
color: #f8fafc;
|
||||||
|
font-size: 0.65rem;
|
||||||
|
font-weight: 700;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.coach-unit:first-child .coach-body {
|
||||||
|
border-top-left-radius: 8px;
|
||||||
|
border-bottom-left-radius: 8px;
|
||||||
|
background: var(--color-accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.door-status {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
padding: 0 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dot {
|
||||||
|
width: 6px;
|
||||||
|
height: 6px;
|
||||||
|
background: #b65151;
|
||||||
|
border-radius: 50%;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dot.open {
|
||||||
|
background: #22c55e;
|
||||||
|
box-shadow: 0 0 5px #22c55e;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 0.05em;
|
letter-spacing: 0.05em;
|
||||||
font-family: "urwgothic";
|
font-family: 'urwgothic';
|
||||||
color: #64748b;
|
color: #64748b;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.main-text {
|
.main-text {
|
||||||
font-family: "urwgothic";
|
font-family: 'urwgothic';
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
color: #0f172a;
|
color: #0f172a;
|
||||||
|
|||||||
@@ -13,7 +13,8 @@
|
|||||||
const portalColour = '#475569'; // Slate grey
|
const portalColour = '#475569'; // Slate grey
|
||||||
|
|
||||||
$: effectiveType = (() => {
|
$: effectiveType = (() => {
|
||||||
if (!reversed || feature.tunnelType === 'whole' || feature.tunnelType === 'mid') return feature.tunnelType;
|
if (!reversed || feature.tunnelType === 'whole' || feature.tunnelType === 'mid')
|
||||||
|
return feature.tunnelType;
|
||||||
return feature.tunnelType === 'start' ? 'end' : 'start';
|
return feature.tunnelType === 'start' ? 'end' : 'start';
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -57,7 +57,12 @@
|
|||||||
<div class="list-container">
|
<div class="list-container">
|
||||||
<a href="https://owlboard.info" class="button-link">Go to OwlBoard Live Departures & PIS</a>
|
<a href="https://owlboard.info" class="button-link">Go to OwlBoard Live Departures & PIS</a>
|
||||||
|
|
||||||
<input type="text" bind:value={searchTerm} placeholder="Search Station/Jn" class="search-input" />
|
<input
|
||||||
|
type="text"
|
||||||
|
bind:value={searchTerm}
|
||||||
|
placeholder="Search Station/Jn"
|
||||||
|
class="search-input"
|
||||||
|
/>
|
||||||
{#each filteredMaps as map (map.routeId)}
|
{#each filteredMaps as map (map.routeId)}
|
||||||
<a
|
<a
|
||||||
href={resolve(`/map/${map.routeId.toString().padStart(4, '0')}`)}
|
href={resolve(`/map/${map.routeId.toString().padStart(4, '0')}`)}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import RouteRow from '$lib/components/RouteRow.svelte';
|
import RouteRow from '$lib/components/RouteRow.svelte';
|
||||||
import RouteEndLink from '$lib/components/mapIcons/RouteEndLink.svelte';
|
import RouteEndLink from '$lib/components/mapIcons/RouteEndLink.svelte';
|
||||||
|
import StationInfo from '$lib/components/StationInfo.svelte';
|
||||||
import { slide } from 'svelte/transition';
|
import { slide } from 'svelte/transition';
|
||||||
import { resolve } from '$app/paths';
|
import { resolve } from '$app/paths';
|
||||||
|
|
||||||
@@ -8,11 +9,22 @@
|
|||||||
import { IconArrowsExchange, IconSettings } from '@tabler/icons-svelte';
|
import { IconArrowsExchange, IconSettings } from '@tabler/icons-svelte';
|
||||||
|
|
||||||
// data.route contains: routeStart, routeEnd, routeId, elecStart, elecEnd, routeDetail[]
|
// data.route contains: routeStart, routeEnd, routeId, elecStart, elecEnd, routeDetail[]
|
||||||
export let data;
|
let { data } = $props();
|
||||||
|
|
||||||
let reversed = false; // Reverses Array, and passes value down to children
|
let activeCrs = $state<string | null>(null);
|
||||||
|
let isModalOpen = $derived(activeCrs !== null);
|
||||||
|
|
||||||
let visibleTypes = {
|
function openStationModal(crs: string) {
|
||||||
|
activeCrs = crs;
|
||||||
|
}
|
||||||
|
|
||||||
|
function closeStationModal() {
|
||||||
|
activeCrs = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
let reversed = $state(false); // Reverses Array, and passes value down to children
|
||||||
|
|
||||||
|
let visibleTypes = $state({
|
||||||
station: true,
|
station: true,
|
||||||
minorBridge: false,
|
minorBridge: false,
|
||||||
bridge: true,
|
bridge: true,
|
||||||
@@ -23,10 +35,10 @@
|
|||||||
siteof: true,
|
siteof: true,
|
||||||
junction: true,
|
junction: true,
|
||||||
tunnel: true,
|
tunnel: true,
|
||||||
crossing: true,
|
crossing: true
|
||||||
};
|
});
|
||||||
|
|
||||||
let showFilters = false;
|
let showFilters = $state(false);
|
||||||
|
|
||||||
// Toggle feature types
|
// Toggle feature types
|
||||||
const toggleFilter = (type: string) => {
|
const toggleFilter = (type: string) => {
|
||||||
@@ -38,31 +50,29 @@
|
|||||||
const formatLabel = (str: string) =>
|
const formatLabel = (str: string) =>
|
||||||
str.replace(/([A-Z])/g, ' $1').replace(/^./, (s) => s.toUpperCase());
|
str.replace(/([A-Z])/g, ' $1').replace(/^./, (s) => s.toUpperCase());
|
||||||
|
|
||||||
$: processedFeatures = (() => {
|
const processedFeatures = $derived.by(() => {
|
||||||
const list = reversed ? [...data.route.routeDetail].reverse() : [...data.route.routeDetail];
|
const list = reversed ? [...data.route.routeDetail].reverse() : [...data.route.routeDetail];
|
||||||
|
|
||||||
// Seed currentElec from the YAML header boundary
|
|
||||||
let currentElec = reversed ? data.route.elecEnd.elec : data.route.elecStart.elec;
|
let currentElec = reversed ? data.route.elecEnd.elec : data.route.elecStart.elec;
|
||||||
|
|
||||||
return list.map((f) => {
|
return list.map((f) => {
|
||||||
if (f.type === 'electrificationChange') {
|
if (f.type === 'electrificationChange') {
|
||||||
// Transition state: this tile and everything after it
|
|
||||||
// adopts the new electrification.
|
|
||||||
currentElec = reversed ? f.from.elec : f.to.elec;
|
currentElec = reversed ? f.from.elec : f.to.elec;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...f,
|
...f,
|
||||||
activeElec: currentElec
|
activeElec: currentElec
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
})();
|
|
||||||
|
|
||||||
$: filteredFeatures = processedFeatures.filter((f) => {
|
|
||||||
return visibleTypes[f.type] ?? true;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const filteredFeatures = $derived(processedFeatures.filter((f) => visibleTypes[f.type] ?? true));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
{#if isModalOpen && activeCrs}
|
||||||
|
<StationInfo crs={activeCrs} onclose={closeStationModal} />
|
||||||
|
{/if}
|
||||||
|
|
||||||
<div class="map-layout">
|
<div class="map-layout">
|
||||||
<header class="top-nav">
|
<header class="top-nav">
|
||||||
<div class="nav-cluster">
|
<div class="nav-cluster">
|
||||||
@@ -76,8 +86,8 @@
|
|||||||
{reversed ? data.route.routeEnd : data.route.routeStart}
|
{reversed ? data.route.routeEnd : data.route.routeStart}
|
||||||
</h1>
|
</h1>
|
||||||
<span class="secondary-station">
|
<span class="secondary-station">
|
||||||
<span class="route-stack-to">
|
<span class="route-stack-to"> to</span>
|
||||||
to</span> {reversed ? data.route.routeStart : data.route.routeEnd}
|
{reversed ? data.route.routeStart : data.route.routeEnd}
|
||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
@@ -87,7 +97,9 @@
|
|||||||
<button class="icon-btn" onclick={() => (reversed = !reversed)}>
|
<button class="icon-btn" onclick={() => (reversed = !reversed)}>
|
||||||
<IconArrowsExchange />
|
<IconArrowsExchange />
|
||||||
</button>
|
</button>
|
||||||
<button class="icon-btn" onclick={() => (showFilters = !showFilters)}> <IconSettings /> </button>
|
<button class="icon-btn" onclick={() => (showFilters = !showFilters)}>
|
||||||
|
<IconSettings />
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
@@ -139,7 +151,12 @@
|
|||||||
{#if f.type === 'continues'}
|
{#if f.type === 'continues'}
|
||||||
<RouteEndLink feature={f} />
|
<RouteEndLink feature={f} />
|
||||||
{:else}
|
{:else}
|
||||||
<RouteRow feature={f} activeElec={f.activeElec} {reversed} />
|
<RouteRow
|
||||||
|
feature={f}
|
||||||
|
activeElec={f.activeElec}
|
||||||
|
{reversed}
|
||||||
|
onShowInfo={openStationModal}
|
||||||
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
@@ -212,7 +229,7 @@
|
|||||||
|
|
||||||
.route-stack {
|
.route-stack {
|
||||||
display: flex;
|
display: flex;
|
||||||
font-family: "urwgothic";
|
font-family: 'urwgothic';
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
|
|||||||
@@ -20,9 +20,8 @@ export const load: PageLoad = async ({ params }) => {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
route: rawData,
|
route: rawData,
|
||||||
slug: slug,
|
slug: slug
|
||||||
};
|
};
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(`Error loading map ${slug}: `, err);
|
console.error(`Error loading map ${slug}: `, err);
|
||||||
throw error(500, {
|
throw error(500, {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
routeStart: Paddington
|
routeStart: Paddington
|
||||||
routeEnd: Reading
|
routeEnd: Reading
|
||||||
routeId: "0001"
|
routeId: '0001'
|
||||||
updated: 2026-02-09
|
updated: 2026-02-09
|
||||||
checked: 2026-02-09
|
checked: 2026-02-09
|
||||||
signallerStart: TVSC Paddington WS
|
signallerStart: TVSC Paddington WS
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
routeStart: Reading
|
routeStart: Reading
|
||||||
routeEnd: Bristol TM
|
routeEnd: Bristol TM
|
||||||
routeId: "0002"
|
routeId: '0002'
|
||||||
updated: 2026-02-04
|
updated: 2026-02-04
|
||||||
checked: 2026-03-01
|
checked: 2026-03-01
|
||||||
signallerStart: TVSC Reading WS
|
signallerStart: TVSC Reading WS
|
||||||
@@ -33,8 +33,8 @@ routeDetail:
|
|||||||
direction: down
|
direction: down
|
||||||
name: Westbury Line Jn
|
name: Westbury Line Jn
|
||||||
description: to Oxford Road Jn
|
description: to Oxford Road Jn
|
||||||
goto: "0210"
|
goto: '0210'
|
||||||
entryPoint: "westbury-line-jn"
|
entryPoint: 'westbury-line-jn'
|
||||||
miles: 36
|
miles: 36
|
||||||
chains: 17
|
chains: 17
|
||||||
|
|
||||||
@@ -43,8 +43,8 @@ routeDetail:
|
|||||||
direction: down
|
direction: down
|
||||||
name: Caversham Road Jn
|
name: Caversham Road Jn
|
||||||
description: Reading Feeder Main/Relief diverge and pass under Reading Viaduct to Oxford Rd Jn
|
description: Reading Feeder Main/Relief diverge and pass under Reading Viaduct to Oxford Rd Jn
|
||||||
goto: "0210"
|
goto: '0210'
|
||||||
entryPoint: "oxford-road-jn"
|
entryPoint: 'oxford-road-jn'
|
||||||
miles: 36
|
miles: 36
|
||||||
chains: 22
|
chains: 22
|
||||||
|
|
||||||
@@ -65,8 +65,8 @@ routeDetail:
|
|||||||
direction: up
|
direction: up
|
||||||
name: Reading West Jn
|
name: Reading West Jn
|
||||||
description: to Oxford Road Junction (From relief lines only)
|
description: to Oxford Road Junction (From relief lines only)
|
||||||
goto: "0210"
|
goto: '0210'
|
||||||
entryPoint: "oxford-road-jn"
|
entryPoint: 'oxford-road-jn'
|
||||||
miles: 37
|
miles: 37
|
||||||
chains: 17
|
chains: 17
|
||||||
|
|
||||||
@@ -316,7 +316,7 @@ routeDetail:
|
|||||||
diverges: left
|
diverges: left
|
||||||
direction: down
|
direction: down
|
||||||
description: Up/Dn Kemble towards Gloucester
|
description: Up/Dn Kemble towards Gloucester
|
||||||
goto: "0230"
|
goto: '0230'
|
||||||
entryPoint: swindon-jn
|
entryPoint: swindon-jn
|
||||||
miles: 77
|
miles: 77
|
||||||
chains: 36
|
chains: 36
|
||||||
@@ -351,7 +351,7 @@ routeDetail:
|
|||||||
diverges: left
|
diverges: left
|
||||||
direction: down
|
direction: down
|
||||||
description: Up/Dn Badminton to Bristol PW
|
description: Up/Dn Badminton to Bristol PW
|
||||||
goto: "0240"
|
goto: '0240'
|
||||||
entryPoint: wootton-bassett-jn
|
entryPoint: wootton-bassett-jn
|
||||||
miles: 83
|
miles: 83
|
||||||
chains: 7
|
chains: 7
|
||||||
@@ -408,7 +408,7 @@ routeDetail:
|
|||||||
diverges: right
|
diverges: right
|
||||||
direction: down
|
direction: down
|
||||||
description: to Melksham & Trowbridge
|
description: to Melksham & Trowbridge
|
||||||
goto: "0250"
|
goto: '0250'
|
||||||
entryPoint: thingley-jn
|
entryPoint: thingley-jn
|
||||||
miles: 96
|
miles: 96
|
||||||
chains: 10
|
chains: 10
|
||||||
@@ -445,7 +445,7 @@ routeDetail:
|
|||||||
diverges: right
|
diverges: right
|
||||||
direction: up
|
direction: up
|
||||||
description: Up/Dn Trowbridge towards Westbury
|
description: Up/Dn Trowbridge towards Westbury
|
||||||
goto: "0260"
|
goto: '0260'
|
||||||
entryPoint: bathampton-jn
|
entryPoint: bathampton-jn
|
||||||
miles: 104
|
miles: 104
|
||||||
chains: 45
|
chains: 45
|
||||||
@@ -596,7 +596,7 @@ routeDetail:
|
|||||||
description: Up/Dn Bristol Loops to Dr. Days Jn
|
description: Up/Dn Bristol Loops to Dr. Days Jn
|
||||||
diverges: left
|
diverges: left
|
||||||
direction: down
|
direction: down
|
||||||
goto: "9999"
|
goto: '9999'
|
||||||
entryPoint: dr-days-jn
|
entryPoint: dr-days-jn
|
||||||
miles: 117
|
miles: 117
|
||||||
chains: 50
|
chains: 50
|
||||||
@@ -622,7 +622,7 @@ routeDetail:
|
|||||||
description: Filton lines towards Filton on Up-side, Kingsland Road Sisings on right side
|
description: Filton lines towards Filton on Up-side, Kingsland Road Sisings on right side
|
||||||
miles: 118
|
miles: 118
|
||||||
chains: 2
|
chains: 2
|
||||||
goto: "9999"
|
goto: '9999'
|
||||||
entryPoint: bristol-east-jn
|
entryPoint: bristol-east-jn
|
||||||
|
|
||||||
- type: siteof
|
- type: siteof
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
routeStart: Westbury Line Jn
|
routeStart: Westbury Line Jn
|
||||||
routeEnd: Cogload Jn
|
routeEnd: Cogload Jn
|
||||||
routeId: "0210"
|
routeId: '0210'
|
||||||
updated: 2026-03-05
|
updated: 2026-03-05
|
||||||
checked: 2026-03-05
|
checked: 2026-03-05
|
||||||
signallerStart: TVSC Reading WS
|
signallerStart: TVSC Reading WS
|
||||||
@@ -11,10 +11,9 @@ elecStart:
|
|||||||
elecEnd:
|
elecEnd:
|
||||||
elec: none
|
elec: none
|
||||||
routeDetail:
|
routeDetail:
|
||||||
|
|
||||||
- type: continues
|
- type: continues
|
||||||
routeName: Reading - Bristol TM
|
routeName: Reading - Bristol TM
|
||||||
routeId: "0002"
|
routeId: '0002'
|
||||||
entryPoint: westbury-line-jn
|
entryPoint: westbury-line-jn
|
||||||
|
|
||||||
- type: junction
|
- type: junction
|
||||||
@@ -22,7 +21,7 @@ routeDetail:
|
|||||||
diverges: left
|
diverges: left
|
||||||
direction: down
|
direction: down
|
||||||
description: towards Didcot
|
description: towards Didcot
|
||||||
goto: "0002"
|
goto: '0002'
|
||||||
entryPoint: westbury-line-jn
|
entryPoint: westbury-line-jn
|
||||||
miles: 36
|
miles: 36
|
||||||
chains: 17
|
chains: 17
|
||||||
@@ -38,7 +37,7 @@ routeDetail:
|
|||||||
diverges: left
|
diverges: left
|
||||||
direction: up
|
direction: up
|
||||||
description: to Caversham Rd Jn & Reading West Jn
|
description: to Caversham Rd Jn & Reading West Jn
|
||||||
goto: "0002"
|
goto: '0002'
|
||||||
entryPoint: caversham-road-jn
|
entryPoint: caversham-road-jn
|
||||||
miles: 36
|
miles: 36
|
||||||
chains: 67
|
chains: 67
|
||||||
@@ -76,6 +75,7 @@ routeDetail:
|
|||||||
|
|
||||||
- type: station
|
- type: station
|
||||||
name: Theale
|
name: Theale
|
||||||
|
crs: the
|
||||||
description: Temporary Platform 3 on Theale Goods Loop (OOU)
|
description: Temporary Platform 3 on Theale Goods Loop (OOU)
|
||||||
miles: 41
|
miles: 41
|
||||||
chains: 22
|
chains: 22
|
||||||
@@ -106,6 +106,7 @@ routeDetail:
|
|||||||
|
|
||||||
- type: station
|
- type: station
|
||||||
name: Aldermaston
|
name: Aldermaston
|
||||||
|
crs: amt
|
||||||
miles: 44
|
miles: 44
|
||||||
chains: 61
|
chains: 61
|
||||||
|
|
||||||
@@ -124,6 +125,7 @@ routeDetail:
|
|||||||
|
|
||||||
- type: station
|
- type: station
|
||||||
name: Midgham
|
name: Midgham
|
||||||
|
crs: mdg
|
||||||
miles: 46
|
miles: 46
|
||||||
chains: 59
|
chains: 59
|
||||||
|
|
||||||
@@ -147,6 +149,7 @@ routeDetail:
|
|||||||
|
|
||||||
- type: station
|
- type: station
|
||||||
name: Thatcham
|
name: Thatcham
|
||||||
|
crs: tha
|
||||||
miles: 49
|
miles: 49
|
||||||
chains: 45
|
chains: 45
|
||||||
|
|
||||||
@@ -171,11 +174,13 @@ routeDetail:
|
|||||||
|
|
||||||
- type: station
|
- type: station
|
||||||
name: Newbury Racecourse
|
name: Newbury Racecourse
|
||||||
|
crs: nrc
|
||||||
miles: 52
|
miles: 52
|
||||||
chains: 31
|
chains: 31
|
||||||
|
|
||||||
- type: station
|
- type: station
|
||||||
name: Newbury
|
name: Newbury
|
||||||
|
crs: nby
|
||||||
miles: 53
|
miles: 53
|
||||||
chains: 6
|
chains: 6
|
||||||
|
|
||||||
@@ -203,6 +208,7 @@ routeDetail:
|
|||||||
|
|
||||||
- type: station
|
- type: station
|
||||||
name: Kintbury
|
name: Kintbury
|
||||||
|
crs: kit
|
||||||
miles: 58
|
miles: 58
|
||||||
chains: 38
|
chains: 38
|
||||||
|
|
||||||
@@ -226,6 +232,7 @@ routeDetail:
|
|||||||
|
|
||||||
- type: station
|
- type: station
|
||||||
name: Hungerford
|
name: Hungerford
|
||||||
|
crs: hgd
|
||||||
miles: 61
|
miles: 61
|
||||||
chains: 43
|
chains: 43
|
||||||
|
|
||||||
@@ -262,6 +269,7 @@ routeDetail:
|
|||||||
|
|
||||||
- type: station
|
- type: station
|
||||||
name: Bedwyn
|
name: Bedwyn
|
||||||
|
crs: bdw
|
||||||
miles: 66
|
miles: 66
|
||||||
chains: 22
|
chains: 22
|
||||||
|
|
||||||
@@ -310,6 +318,7 @@ routeDetail:
|
|||||||
|
|
||||||
- type: station
|
- type: station
|
||||||
name: Pewsey
|
name: Pewsey
|
||||||
|
crs: pew
|
||||||
miles: 75
|
miles: 75
|
||||||
chains: 26
|
chains: 26
|
||||||
|
|
||||||
@@ -420,7 +429,7 @@ routeDetail:
|
|||||||
name: Heywood Road Jn
|
name: Heywood Road Jn
|
||||||
diverges: left
|
diverges: left
|
||||||
direction: down
|
direction: down
|
||||||
goto: "0260"
|
goto: '0260'
|
||||||
entryPoint: hawkeridge-jn
|
entryPoint: hawkeridge-jn
|
||||||
description: to East Loop Jn/Westbury North Jn/Hawkeridge Jn
|
description: to East Loop Jn/Westbury North Jn/Hawkeridge Jn
|
||||||
miles: 94
|
miles: 94
|
||||||
@@ -443,7 +452,7 @@ routeDetail:
|
|||||||
description: to Westbury South Jn (Mileage Change)
|
description: to Westbury South Jn (Mileage Change)
|
||||||
diverges: left
|
diverges: left
|
||||||
direction: up
|
direction: up
|
||||||
goto: "0260"
|
goto: '0260'
|
||||||
entryPoint: westbury-south-jn
|
entryPoint: westbury-south-jn
|
||||||
miles: 97
|
miles: 97
|
||||||
chains: 2
|
chains: 2
|
||||||
@@ -543,7 +552,7 @@ routeDetail:
|
|||||||
description: Up/Dn Weymouth to Yeovil
|
description: Up/Dn Weymouth to Yeovil
|
||||||
direction: down
|
direction: down
|
||||||
diverges: right
|
diverges: right
|
||||||
goto: "2150"
|
goto: '2150'
|
||||||
entryPoint: castle-cary-jn
|
entryPoint: castle-cary-jn
|
||||||
miles: 129
|
miles: 129
|
||||||
chains: 50
|
chains: 50
|
||||||
@@ -653,10 +662,10 @@ routeDetail:
|
|||||||
direction: up
|
direction: up
|
||||||
miles: 138
|
miles: 138
|
||||||
chains: 3
|
chains: 3
|
||||||
goto: "0003"
|
goto: '0003'
|
||||||
entryPoint: cogload-jn
|
entryPoint: cogload-jn
|
||||||
|
|
||||||
- type: continues
|
- type: continues
|
||||||
routeName: Bristol TM - Exeter SD
|
routeName: Bristol TM - Exeter SD
|
||||||
routeId: "0003"
|
routeId: '0003'
|
||||||
entryPoint: cogload-jn
|
entryPoint: cogload-jn
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
routeStart: Swindon Junction
|
routeStart: Swindon Junction
|
||||||
routeEnd: Standish Junction
|
routeEnd: Standish Junction
|
||||||
routeId: "0230"
|
routeId: '0230'
|
||||||
updated: 2026-02-14
|
updated: 2026-02-14
|
||||||
checked: 2026-02-14
|
checked: 2026-02-14
|
||||||
signallerStart: TVSC Swindon WS
|
signallerStart: TVSC Swindon WS
|
||||||
@@ -21,7 +21,7 @@ routeDetail:
|
|||||||
name: Swindon Jn
|
name: Swindon Jn
|
||||||
diverges: right
|
diverges: right
|
||||||
direction: down
|
direction: down
|
||||||
goto: "0002"
|
goto: '0002'
|
||||||
entryPoint: swindon-jn
|
entryPoint: swindon-jn
|
||||||
miles: 77
|
miles: 77
|
||||||
chains: 36
|
chains: 36
|
||||||
@@ -761,12 +761,10 @@ routeDetail:
|
|||||||
description: Up to Gloucester, Dn to Bristol
|
description: Up to Gloucester, Dn to Bristol
|
||||||
miles: 106
|
miles: 106
|
||||||
chains: 74
|
chains: 74
|
||||||
goto: "2420"
|
goto: '2420'
|
||||||
entryPoint: standish-jn
|
entryPoint: standish-jn
|
||||||
|
|
||||||
- type: continues
|
- type: continues
|
||||||
routeName: "Westerleigh Jn - Gloucester"
|
routeName: 'Westerleigh Jn - Gloucester'
|
||||||
entryPoint: standish-jn
|
entryPoint: standish-jn
|
||||||
routeId: "2420"
|
routeId: '2420'
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ routeDetail:
|
|||||||
direction: down
|
direction: down
|
||||||
name: Wootton Basset Jn
|
name: Wootton Basset Jn
|
||||||
description: to Chippenham & Bristol via Bath
|
description: to Chippenham & Bristol via Bath
|
||||||
goto: "0002"
|
goto: '0002'
|
||||||
entryPoint: wootton-bassett-jn
|
entryPoint: wootton-bassett-jn
|
||||||
miles: 83
|
miles: 83
|
||||||
chains: 7
|
chains: 7
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
routeStart: Thingley Junction
|
routeStart: Thingley Junction
|
||||||
routeEnd: Bradford Junction
|
routeEnd: Bradford Junction
|
||||||
routeId: "0250"
|
routeId: '0250'
|
||||||
updated: 2026-03-01
|
updated: 2026-03-01
|
||||||
checked: 2026-03-01
|
checked: 2026-03-01
|
||||||
signallerStart: TVSC Swindon WS
|
signallerStart: TVSC Swindon WS
|
||||||
@@ -11,10 +11,9 @@ elecEnd:
|
|||||||
elec: none
|
elec: none
|
||||||
|
|
||||||
routeDetail:
|
routeDetail:
|
||||||
|
|
||||||
- type: continues
|
- type: continues
|
||||||
routeName: Reading - Bristol TM
|
routeName: Reading - Bristol TM
|
||||||
routeId: "0002"
|
routeId: '0002'
|
||||||
entryPoint: thingley-jn
|
entryPoint: thingley-jn
|
||||||
|
|
||||||
- type: junction
|
- type: junction
|
||||||
@@ -22,7 +21,7 @@ routeDetail:
|
|||||||
diverges: left
|
diverges: left
|
||||||
direction: down
|
direction: down
|
||||||
description: Down Main towards Bath
|
description: Down Main towards Bath
|
||||||
goto: "0002"
|
goto: '0002'
|
||||||
entryPoint: thingley-jn
|
entryPoint: thingley-jn
|
||||||
miles: 96
|
miles: 96
|
||||||
chains: 10
|
chains: 10
|
||||||
@@ -115,12 +114,12 @@ routeDetail:
|
|||||||
diverges: left
|
diverges: left
|
||||||
direction: up
|
direction: up
|
||||||
description: Up/Dn Trowbridge towards Bath
|
description: Up/Dn Trowbridge towards Bath
|
||||||
goto: "0260"
|
goto: '0260'
|
||||||
entryPoint: bradford-jn
|
entryPoint: bradford-jn
|
||||||
miles: 104
|
miles: 104
|
||||||
chains: 40
|
chains: 40
|
||||||
|
|
||||||
- type: continues
|
- type: continues
|
||||||
routeName: Bathampton Jn - Westbury
|
routeName: Bathampton Jn - Westbury
|
||||||
routeId: "0260"
|
routeId: '0260'
|
||||||
entryPoint: bradford-jn
|
entryPoint: bradford-jn
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
routeStart: Bathampton Jn
|
routeStart: Bathampton Jn
|
||||||
routeEnd: Westbury South Jn
|
routeEnd: Westbury South Jn
|
||||||
routeId: "0260"
|
routeId: '0260'
|
||||||
updated: 2026-03-01
|
updated: 2026-03-01
|
||||||
checked: 2026-03-01
|
checked: 2026-03-01
|
||||||
signallerStart: TVSC Bath WS
|
signallerStart: TVSC Bath WS
|
||||||
@@ -11,18 +11,17 @@ elecEnd:
|
|||||||
elec: none
|
elec: none
|
||||||
|
|
||||||
routeDetail:
|
routeDetail:
|
||||||
|
|
||||||
- type: continues
|
- type: continues
|
||||||
routeName: Reading - Bristol TM
|
routeName: Reading - Bristol TM
|
||||||
entryPoint: bathampton-jn
|
entryPoint: bathampton-jn
|
||||||
routeId: "0002"
|
routeId: '0002'
|
||||||
|
|
||||||
- type: junction
|
- type: junction
|
||||||
name: Bathampton Jn
|
name: Bathampton Jn
|
||||||
description: Mileage change (0mi 0ch)
|
description: Mileage change (0mi 0ch)
|
||||||
diverges: right
|
diverges: right
|
||||||
direction: down
|
direction: down
|
||||||
goto: "0002"
|
goto: '0002'
|
||||||
entryPoint: bathampton-jn
|
entryPoint: bathampton-jn
|
||||||
miles: 0
|
miles: 0
|
||||||
chains: 0
|
chains: 0
|
||||||
@@ -82,7 +81,6 @@ routeDetail:
|
|||||||
miles: 4
|
miles: 4
|
||||||
chains: 70
|
chains: 70
|
||||||
|
|
||||||
|
|
||||||
- type: bridge
|
- type: bridge
|
||||||
name: Freshford Viaduct
|
name: Freshford Viaduct
|
||||||
category: waterway
|
category: waterway
|
||||||
@@ -123,7 +121,6 @@ routeDetail:
|
|||||||
miles: 6
|
miles: 6
|
||||||
chains: 67
|
chains: 67
|
||||||
|
|
||||||
|
|
||||||
- type: crossing
|
- type: crossing
|
||||||
kind: foot
|
kind: foot
|
||||||
name: Barton Orchard Foot Crossing
|
name: Barton Orchard Foot Crossing
|
||||||
@@ -165,7 +162,7 @@ routeDetail:
|
|||||||
diverges: right
|
diverges: right
|
||||||
direction: up
|
direction: up
|
||||||
description: Melksham Single towards Chippenham, mileage change
|
description: Melksham Single towards Chippenham, mileage change
|
||||||
goto: "0250"
|
goto: '0250'
|
||||||
entryPoint: bradford-jn
|
entryPoint: bradford-jn
|
||||||
miles: 9
|
miles: 9
|
||||||
chains: 12
|
chains: 12
|
||||||
@@ -220,7 +217,7 @@ routeDetail:
|
|||||||
diverges: right
|
diverges: right
|
||||||
direction: down
|
direction: down
|
||||||
description: Lines change direction towards Westbury
|
description: Lines change direction towards Westbury
|
||||||
goto: "0210"
|
goto: '0210'
|
||||||
entryPoint: heywood-road-jn
|
entryPoint: heywood-road-jn
|
||||||
miles: 109
|
miles: 109
|
||||||
chains: 14
|
chains: 14
|
||||||
@@ -229,7 +226,7 @@ routeDetail:
|
|||||||
name: Westbury North Jn
|
name: Westbury North Jn
|
||||||
diverges: right
|
diverges: right
|
||||||
direction: up
|
direction: up
|
||||||
goto: "0210"
|
goto: '0210'
|
||||||
entryPoint: heywood-road-jn
|
entryPoint: heywood-road-jn
|
||||||
miles: 109
|
miles: 109
|
||||||
chains: 49
|
chains: 49
|
||||||
@@ -244,8 +241,8 @@ routeDetail:
|
|||||||
diverges: right
|
diverges: right
|
||||||
direction: down
|
direction: down
|
||||||
description: Up/Dn Salisbury towards Warminster
|
description: Up/Dn Salisbury towards Warminster
|
||||||
goto: "0261"
|
goto: '0261'
|
||||||
entryPoint: "westbury-south-jn"
|
entryPoint: 'westbury-south-jn'
|
||||||
miles: 110
|
miles: 110
|
||||||
chains: 7
|
chains: 7
|
||||||
|
|
||||||
@@ -257,5 +254,5 @@ routeDetail:
|
|||||||
|
|
||||||
- type: continues
|
- type: continues
|
||||||
routeName: to Fairwood Jn (Reading - Taunton)
|
routeName: to Fairwood Jn (Reading - Taunton)
|
||||||
routeId: "0210"
|
routeId: '0210'
|
||||||
entryPoint: fairwood-jn
|
entryPoint: fairwood-jn
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ elecEnd:
|
|||||||
elec: none
|
elec: none
|
||||||
|
|
||||||
routeDetail:
|
routeDetail:
|
||||||
|
|
||||||
- type: junction
|
- type: junction
|
||||||
name: Westerleigh Jn
|
name: Westerleigh Jn
|
||||||
diverges: left
|
diverges: left
|
||||||
@@ -633,7 +632,7 @@ routeDetail:
|
|||||||
diverges: left
|
diverges: left
|
||||||
direction: down
|
direction: down
|
||||||
description: to Barnwood Junction
|
description: to Barnwood Junction
|
||||||
goto: "2422"
|
goto: '2422'
|
||||||
entryPoint: barnwood-jn
|
entryPoint: barnwood-jn
|
||||||
miles: 93
|
miles: 93
|
||||||
chains: 8
|
chains: 8
|
||||||
@@ -665,7 +664,7 @@ routeDetail:
|
|||||||
direction: up
|
direction: up
|
||||||
name: Horton Road Jn
|
name: Horton Road Jn
|
||||||
description: to Barnwood Jn
|
description: to Barnwood Jn
|
||||||
goto: "2422"
|
goto: '2422'
|
||||||
entryPoint: horton-road-jn
|
entryPoint: horton-road-jn
|
||||||
miles: 113
|
miles: 113
|
||||||
chains: 61
|
chains: 61
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# yaml-language-server: $schema=./mapFiles.schema.json
|
# yaml-language-server: $schema=./mapFiles.schema.json
|
||||||
routeStart: Gloucester
|
routeStart: Gloucester
|
||||||
routeEnd: Severn Tunnel Jn
|
routeEnd: Severn Tunnel Jn
|
||||||
routeId: "2421"
|
routeId: '2421'
|
||||||
updated: 2026-02-28
|
updated: 2026-02-28
|
||||||
checked: 2026-03-01
|
checked: 2026-03-01
|
||||||
signallerStart: Gloucester PSB
|
signallerStart: Gloucester PSB
|
||||||
@@ -13,7 +13,6 @@ elecEnd:
|
|||||||
eco: Didcot (TVSC)
|
eco: Didcot (TVSC)
|
||||||
|
|
||||||
routeDetail:
|
routeDetail:
|
||||||
|
|
||||||
- type: continues
|
- type: continues
|
||||||
routeName: Gloucester - Westerleigh Jn
|
routeName: Gloucester - Westerleigh Jn
|
||||||
entryPoint: gloucester
|
entryPoint: gloucester
|
||||||
|
|||||||
@@ -101,31 +101,20 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"elec": {
|
"elec": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": ["25kvac", "750vdc", "650vdc", "1500vdc", "none"]
|
||||||
"25kvac",
|
|
||||||
"750vdc",
|
|
||||||
"650vdc",
|
|
||||||
"1500vdc",
|
|
||||||
"none"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"eco": {
|
"eco": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": ["elec"]
|
||||||
"elec"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"bridge": {
|
"bridge": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": {
|
"type": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": ["bridge", "minorBridge"]
|
||||||
"bridge",
|
|
||||||
"minorBridge"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"roadName": {
|
"roadName": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@@ -138,10 +127,7 @@
|
|||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": ["over", "under"]
|
||||||
"over",
|
|
||||||
"under"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"category": {
|
"category": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -164,13 +150,7 @@
|
|||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": ["type", "position", "category", "miles", "chains"],
|
||||||
"type",
|
|
||||||
"position",
|
|
||||||
"category",
|
|
||||||
"miles",
|
|
||||||
"chains"
|
|
||||||
],
|
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"crossing": {
|
"crossing": {
|
||||||
@@ -182,19 +162,7 @@
|
|||||||
},
|
},
|
||||||
"kind": {
|
"kind": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": ["CCTV", "AHB", "uwc", "foot", "omsl", "r/g", "msl", "mcb", "mg", "mcg", "aocl"]
|
||||||
"CCTV",
|
|
||||||
"AHB",
|
|
||||||
"uwc",
|
|
||||||
"foot",
|
|
||||||
"omsl",
|
|
||||||
"r/g",
|
|
||||||
"msl",
|
|
||||||
"mcb",
|
|
||||||
"mg",
|
|
||||||
"mcg",
|
|
||||||
"aocl"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@@ -209,13 +177,7 @@
|
|||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": ["type", "kind", "name", "miles", "chains"],
|
||||||
"type",
|
|
||||||
"kind",
|
|
||||||
"name",
|
|
||||||
"miles",
|
|
||||||
"chains"
|
|
||||||
],
|
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"crossover": {
|
"crossover": {
|
||||||
@@ -238,12 +200,7 @@
|
|||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": ["type", "name", "miles", "chains"],
|
||||||
"type",
|
|
||||||
"name",
|
|
||||||
"miles",
|
|
||||||
"chains"
|
|
||||||
],
|
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"electrificationChange": {
|
"electrificationChange": {
|
||||||
@@ -264,21 +221,13 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"elec": {
|
"elec": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": ["25kvac", "750vdc", "650vdc", "1500vdc", "none"]
|
||||||
"25kvac",
|
|
||||||
"750vdc",
|
|
||||||
"650vdc",
|
|
||||||
"1500vdc",
|
|
||||||
"none"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"eco": {
|
"eco": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": ["elec"],
|
||||||
"elec"
|
|
||||||
],
|
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"to": {
|
"to": {
|
||||||
@@ -286,28 +235,17 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"elec": {
|
"elec": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": ["25kvac", "750vdc", "650vdc", "1500vdc", "none"]
|
||||||
"25kvac",
|
|
||||||
"750vdc",
|
|
||||||
"650vdc",
|
|
||||||
"1500vdc",
|
|
||||||
"none"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"eco": {
|
"eco": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": ["elec"],
|
||||||
"elec"
|
|
||||||
],
|
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": ["miles", "chains"],
|
||||||
"miles",
|
|
||||||
"chains"
|
|
||||||
],
|
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"junction": {
|
"junction": {
|
||||||
@@ -325,19 +263,11 @@
|
|||||||
},
|
},
|
||||||
"diverges": {
|
"diverges": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": ["left", "right", "both"]
|
||||||
"left",
|
|
||||||
"right",
|
|
||||||
"both"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"direction": {
|
"direction": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": ["up", "down", "both"]
|
||||||
"up",
|
|
||||||
"down",
|
|
||||||
"both"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"miles": {
|
"miles": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
@@ -347,13 +277,7 @@
|
|||||||
},
|
},
|
||||||
"elecBranch": {
|
"elecBranch": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": ["25kvac", "750vdc", "650vdc", "1500vdc", "none"]
|
||||||
"25kvac",
|
|
||||||
"750vdc",
|
|
||||||
"650vdc",
|
|
||||||
"1500vdc",
|
|
||||||
"none"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"goto": {
|
"goto": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@@ -362,14 +286,7 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": ["name", "diverges", "direction", "miles", "chains", "type"],
|
||||||
"name",
|
|
||||||
"diverges",
|
|
||||||
"direction",
|
|
||||||
"miles",
|
|
||||||
"chains",
|
|
||||||
"type"
|
|
||||||
],
|
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"loop": {
|
"loop": {
|
||||||
@@ -387,11 +304,7 @@
|
|||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": ["left", "right", "both"]
|
||||||
"left",
|
|
||||||
"right",
|
|
||||||
"both"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"miles": {
|
"miles": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
@@ -401,22 +314,10 @@
|
|||||||
},
|
},
|
||||||
"elecLoop": {
|
"elecLoop": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": ["25kvac", "750vdc", "650vdc", "1500vdc", "none"]
|
||||||
"25kvac",
|
|
||||||
"750vdc",
|
|
||||||
"650vdc",
|
|
||||||
"1500vdc",
|
|
||||||
"none"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": ["type", "name", "position", "miles", "chains"],
|
||||||
"type",
|
|
||||||
"name",
|
|
||||||
"position",
|
|
||||||
"miles",
|
|
||||||
"chains"
|
|
||||||
],
|
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"routeContinuation": {
|
"routeContinuation": {
|
||||||
@@ -439,12 +340,7 @@
|
|||||||
"description": "Entrypoint of other route (lowercase, replacing whitespace with -, junction always referred to as jn"
|
"description": "Entrypoint of other route (lowercase, replacing whitespace with -, junction always referred to as jn"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": ["type", "routeName", "routeId", "entryPoint"],
|
||||||
"type",
|
|
||||||
"routeName",
|
|
||||||
"routeId",
|
|
||||||
"entryPoint"
|
|
||||||
],
|
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"siteof": {
|
"siteof": {
|
||||||
@@ -467,12 +363,7 @@
|
|||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": ["type", "name", "miles", "chains"],
|
||||||
"type",
|
|
||||||
"name",
|
|
||||||
"miles",
|
|
||||||
"chains"
|
|
||||||
],
|
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"station": {
|
"station": {
|
||||||
@@ -495,12 +386,7 @@
|
|||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": ["type", "name", "miles", "chains"]
|
||||||
"type",
|
|
||||||
"name",
|
|
||||||
"miles",
|
|
||||||
"chains"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"tunnel": {
|
"tunnel": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@@ -517,12 +403,7 @@
|
|||||||
},
|
},
|
||||||
"tunnelType": {
|
"tunnelType": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": ["start", "end", "mid", "whole"]
|
||||||
"start",
|
|
||||||
"end",
|
|
||||||
"mid",
|
|
||||||
"whole"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"length": {
|
"length": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -535,13 +416,7 @@
|
|||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": ["type", "name", "tunnelType", "miles", "chains"],
|
||||||
"type",
|
|
||||||
"name",
|
|
||||||
"tunnelType",
|
|
||||||
"miles",
|
|
||||||
"chains"
|
|
||||||
],
|
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"signallerChange": {
|
"signallerChange": {
|
||||||
@@ -564,12 +439,7 @@
|
|||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": ["from", "to", "miles", "chains"],
|
||||||
"from",
|
|
||||||
"to",
|
|
||||||
"miles",
|
|
||||||
"chains"
|
|
||||||
],
|
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
33
static/stations/amt.yaml
Normal file
33
static/stations/amt.yaml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: Aldermaston
|
||||||
|
crs: amt
|
||||||
|
updated: 2026-03-11
|
||||||
|
checked: 2026-03-11
|
||||||
|
platforms:
|
||||||
|
- platformId: 1Up
|
||||||
|
platformLength: 115
|
||||||
|
signal: false
|
||||||
|
dispatch: false
|
||||||
|
stepFree: true
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [2, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [2, 9]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [2, 10]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 5
|
||||||
|
- platformId: 2Dn
|
||||||
|
platformLength: 115
|
||||||
|
signal: false
|
||||||
|
dispatch: false
|
||||||
|
stepFree: true
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [1, 7]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [1, 7]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [1, 7]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 5
|
||||||
33
static/stations/bdw.yaml
Normal file
33
static/stations/bdw.yaml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: Bedwyn
|
||||||
|
crs: bdw
|
||||||
|
updated: 2026-03-11
|
||||||
|
checked: 2026-03-11
|
||||||
|
platforms:
|
||||||
|
- platformId: 1Dn
|
||||||
|
platformLength: 121
|
||||||
|
signal: true
|
||||||
|
stepFree: true
|
||||||
|
dispatch: false
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [1, 9]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [1, 9]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [1, 9]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 5
|
||||||
|
- platformId: 2Up
|
||||||
|
platformLength: 123
|
||||||
|
signal: true
|
||||||
|
stepFree: true
|
||||||
|
dispatch: false
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [2, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [2, 10]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [2, 10]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 5
|
||||||
33
static/stations/hgd.yaml
Normal file
33
static/stations/hgd.yaml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: Hungerford
|
||||||
|
crs: hgd
|
||||||
|
updated: 2026-03-11
|
||||||
|
checked: 2026-03-11
|
||||||
|
platforms:
|
||||||
|
- platformId: 1Up
|
||||||
|
platformLength: 153
|
||||||
|
signal: false
|
||||||
|
stepFree: true
|
||||||
|
dispatch: false
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [1, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [8, 18]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [9, 20]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 6
|
||||||
|
- platformId: 2Dn
|
||||||
|
platformLength: 150
|
||||||
|
signal: false
|
||||||
|
stepFree: true
|
||||||
|
dispatch: false
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [1, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [1, 11]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [1, 11]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 6
|
||||||
33
static/stations/kit.yaml
Normal file
33
static/stations/kit.yaml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: Kintbury
|
||||||
|
crs: kit
|
||||||
|
updated: 2026-03-11
|
||||||
|
checked: 2026-03-11
|
||||||
|
platforms:
|
||||||
|
- platformId: 1Dn
|
||||||
|
platformLength: 105
|
||||||
|
signal: false
|
||||||
|
dispatch: false
|
||||||
|
stepFree: true
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [2, 9]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [2, 9]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [2, 9]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 4
|
||||||
|
- platformId: 2Up
|
||||||
|
platformLength: 106
|
||||||
|
signal: false
|
||||||
|
dispatch: false
|
||||||
|
stepFree: true
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [4, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [12, 18]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [14, 20]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 4
|
||||||
33
static/stations/mdg.yaml
Normal file
33
static/stations/mdg.yaml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: Midgham
|
||||||
|
crs: mdg
|
||||||
|
updated: 2026-03-11
|
||||||
|
checked: 2026-03-11
|
||||||
|
platforms:
|
||||||
|
- platformId: 1Dn
|
||||||
|
platformLength: 120
|
||||||
|
signal: false
|
||||||
|
dispatch: false
|
||||||
|
stepFree: true
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [4, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [4, 10]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [4, 10]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 5
|
||||||
|
- platformId: 2Up
|
||||||
|
platformLength: 117
|
||||||
|
signal: true
|
||||||
|
dispatch: false
|
||||||
|
stepFree: true
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [1, 7]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [1, 7]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [1, 7]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 5
|
||||||
80
static/stations/nby.yaml
Normal file
80
static/stations/nby.yaml
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
name: Newbury
|
||||||
|
crs: nby
|
||||||
|
updated: 2026-03-11
|
||||||
|
checked: 2026-03-11
|
||||||
|
platforms:
|
||||||
|
- platformId: 1Dn
|
||||||
|
platformLength: 291
|
||||||
|
signal: true
|
||||||
|
dispatch: true
|
||||||
|
dispatchNote: Staffed 06:00-21:00
|
||||||
|
stepFree: true
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [1, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [1, 18]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [1, 20]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 12
|
||||||
|
- platformId: 1Up
|
||||||
|
platformLength: 291
|
||||||
|
signal: true
|
||||||
|
dispatch: true
|
||||||
|
dispatchNote: Staffed 06:00-21:00
|
||||||
|
stepFree: true
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [1, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [1, 18]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [1, 20]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 12
|
||||||
|
- platformId: 2Dn
|
||||||
|
platformLength: 327
|
||||||
|
signal: true
|
||||||
|
dispatch: true
|
||||||
|
dispatchNote: Staffed 06:00-21:00
|
||||||
|
stepFree: true
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [1, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [1, 18]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [1, 20]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 14
|
||||||
|
- platformId: 2Up
|
||||||
|
platformLength: 327
|
||||||
|
signal: true
|
||||||
|
dispatch: true
|
||||||
|
dispatchNote: Staffed 06:00-21:00
|
||||||
|
stepFree: true
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [1, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [1, 18]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [1, 20]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 14
|
||||||
|
- platformId: 3
|
||||||
|
platformLength: 129
|
||||||
|
signal: true
|
||||||
|
dispatch: true
|
||||||
|
dispatchNote: Staffed 06:00-21:00
|
||||||
|
stepFree: true
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [1, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [0, 0]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [0, 0]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 5
|
||||||
61
static/stations/nrc.yaml
Normal file
61
static/stations/nrc.yaml
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
name: Newbury Racecourse
|
||||||
|
crs: nrc
|
||||||
|
updated: 2026-03-11
|
||||||
|
checked: 2026-03-11
|
||||||
|
platforms:
|
||||||
|
- platformId: 1Dn
|
||||||
|
platformLength: 89
|
||||||
|
signal: false
|
||||||
|
dispatch: false
|
||||||
|
stepFree: false
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [1, 6]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [1, 6]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [1, 6]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 4
|
||||||
|
- platformId: 2Up
|
||||||
|
platformLength: 74
|
||||||
|
signal: true
|
||||||
|
dispatch: false
|
||||||
|
stepFree: true
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [4, 9]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [4, 9]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [4, 9]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 4
|
||||||
|
- platformId: 3Up
|
||||||
|
platformLength: 225
|
||||||
|
signal: true
|
||||||
|
dispatch: false
|
||||||
|
stepFree: true
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [2, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [2, 15]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [2, 16]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 9
|
||||||
|
- platformId: 3Dn
|
||||||
|
platformLength: 225
|
||||||
|
signal: false
|
||||||
|
dispatch: false
|
||||||
|
stepFree: true
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [2, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [2, 15]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [2, 16]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 9
|
||||||
33
static/stations/pew.yaml
Normal file
33
static/stations/pew.yaml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: Pewsey
|
||||||
|
crs: pew
|
||||||
|
updated: 2026-03-11
|
||||||
|
checked: 2026-03-11
|
||||||
|
platforms:
|
||||||
|
- platformId: 1Dn
|
||||||
|
platformLength: 170
|
||||||
|
signal: false
|
||||||
|
stepFree: true
|
||||||
|
dispatch: false
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [1, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [2, 15]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [2, 15]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 7
|
||||||
|
- platformId: 2Up
|
||||||
|
platformLength: 177
|
||||||
|
signal: true
|
||||||
|
stepFree: true
|
||||||
|
dispatch: false
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [1, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [2, 15]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [2, 15]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 7
|
||||||
101
static/stations/stationFiles.schema.json
Normal file
101
static/stations/stationFiles.schema.json
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://json-schema.org/draft-07/schema#",
|
||||||
|
"type": "object",
|
||||||
|
"required": [],
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The full name of the station"
|
||||||
|
},
|
||||||
|
"crs": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The CRS code of the station"
|
||||||
|
},
|
||||||
|
"updated": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date",
|
||||||
|
"description": "Date the data was last updated"
|
||||||
|
},
|
||||||
|
"checked": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date",
|
||||||
|
"description": "Date the data was last checked for accuracy"
|
||||||
|
},
|
||||||
|
"platforms": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"platformInfo": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"platformId": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The number or letter of the platform"
|
||||||
|
},
|
||||||
|
"platformDescription": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Describe platforms location - Up/Dn line for example"
|
||||||
|
},
|
||||||
|
"platformStepFree": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Is step free access available to this platform"
|
||||||
|
},
|
||||||
|
"platformStepFreeNote": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Notes about step free access to this platform"
|
||||||
|
},
|
||||||
|
"platformLength": {
|
||||||
|
"type": "number",
|
||||||
|
"description": "Length of the platform in metres"
|
||||||
|
},
|
||||||
|
"carStop": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"carStopDetail": {
|
||||||
|
"type": "string",
|
||||||
|
"trainType": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The type of train described in this entry"
|
||||||
|
},
|
||||||
|
"platformedCoaches": {
|
||||||
|
"type": "number",
|
||||||
|
"description": "The number of coaches fully platformed at the platform"
|
||||||
|
},
|
||||||
|
"platformedNotes": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Notes regarding platformed coaches, additional doors, front/rear etc."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"departUp": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Can a train depart in the Up direction"
|
||||||
|
},
|
||||||
|
"departDown": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Can a train depart in the down direction"
|
||||||
|
},
|
||||||
|
"signalUp": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Is there a starting signal in the Up direction"
|
||||||
|
},
|
||||||
|
"signalDown": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Is there a starting signal in the Down direction"
|
||||||
|
},
|
||||||
|
"dispatch": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Are dispatch staff present on this platform"
|
||||||
|
},
|
||||||
|
"dispatchNote": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Notes about dispatch arrangements"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"definitions": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
33
static/stations/tha.yaml
Normal file
33
static/stations/tha.yaml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: Thatcham
|
||||||
|
crs: tha
|
||||||
|
updated: 2026-03-11
|
||||||
|
checked: 2026-03-11
|
||||||
|
platforms:
|
||||||
|
- platformId: 1Dn
|
||||||
|
platformLength: 168
|
||||||
|
signal: true
|
||||||
|
dispatch: false
|
||||||
|
stepFree: true
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [1, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [1, 12]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [1, 12]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 7
|
||||||
|
- platformId: 2Up
|
||||||
|
platformLength: 168
|
||||||
|
signal: false
|
||||||
|
dispatch: false
|
||||||
|
stepFree: true
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [1, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [7, 18]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [9, 20]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 7
|
||||||
46
static/stations/the.yaml
Normal file
46
static/stations/the.yaml
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
name: Theale
|
||||||
|
crs: the
|
||||||
|
updated: 2026-03-11
|
||||||
|
checked: 2026-03-11
|
||||||
|
platforms:
|
||||||
|
- platformId: 1Up
|
||||||
|
platformLength: 168
|
||||||
|
signal: false
|
||||||
|
dispatch: false
|
||||||
|
stepFree: true
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [1, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [1, 13]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [1, 13]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 7
|
||||||
|
- platformId: 2Dn
|
||||||
|
platformLength: 168
|
||||||
|
signal: false
|
||||||
|
dispatch: false
|
||||||
|
stepFree: true
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [1, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [1, 13]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [1, 13]
|
||||||
|
- kind: DMU
|
||||||
|
max-car: 7
|
||||||
|
- platformId: 3
|
||||||
|
platformLength: 153
|
||||||
|
signal: true
|
||||||
|
dispatch: false
|
||||||
|
dispatchNote: Use must be specially authorised
|
||||||
|
stepFree: true
|
||||||
|
doorPattern:
|
||||||
|
- kind: IET5
|
||||||
|
doors: [1, 10]
|
||||||
|
- kind: IET9
|
||||||
|
doors: [1, 11]
|
||||||
|
- kind: IET10
|
||||||
|
doors: [1, 11]
|
||||||
Reference in New Issue
Block a user