3 Commits

Author SHA1 Message Date
0fc2c0177b Add station modal logic and station data for part of route 0210 2026-03-12 00:54:42 +00:00
06861f4037 Run audit fix 2026-03-11 21:34:29 +00:00
11ec2574f0 Add station data and parser for the script.
Need to do:
 - Write the StationIfno modal and enable toggling it's display.
2026-03-11 17:26:57 +00:00
42 changed files with 2795 additions and 2312 deletions

16
.vscode/settings.json vendored
View File

@@ -1,9 +1,9 @@
{
"yaml.schemas": {
"./static/mapFiles/yaml/mapFiles.schema.json": "static/mapFiles/yaml/*.yaml",
"./static/stations/stationFiles.schema.json": "static/stations/*.yaml"
},
"yaml.format.enable": true,
"yaml.validate": true,
"yaml.schemaStore.enable": false
}
"yaml.schemas": {
"./static/mapFiles/yaml/mapFiles.schema.json": "static/mapFiles/yaml/*.yaml",
"./static/stations/stationFiles.schema.json": "static/stations/*.yaml"
},
"yaml.format.enable": true,
"yaml.validate": true,
"yaml.schemaStore.enable": false
}

608
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -3,7 +3,9 @@ import fs from 'fs';
import path from 'path';
const inputDir = './static/mapFiles/yaml';
const stationInputDir = './static/stations';
const outputDir = './src/lib/assets/route';
const stationOutputDir = './src/lib/assets/station';
const indexFile = './static/map-index.json';
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 });
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) => {
if (file.endsWith('.yaml')) {
@@ -18,12 +37,18 @@ fs.readdirSync(inputDir).forEach((file) => {
const content = yaml.load(fs.readFileSync(fullPath, 'utf8'));
const fileName = file.replace('.yaml', '.json');
fs.writeFileSync(path.join(outputDir, fileName), JSON.stringify(content));
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)) {
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) {
let cleanName = item.name;
@@ -44,6 +69,8 @@ fs.readdirSync(inputDir).forEach((file) => {
});
}
fs.writeFileSync(path.join(outputDir, fileName), JSON.stringify(content));
mapList.push({
routeId: content.routeId || null,
routeStart: content.routeStart || null,

View File

@@ -7,8 +7,14 @@
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"
/>
<link rel="manifest" href="/manifest.webmanifest" />
<meta 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="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" />
<link rel="canonical" href="https://maps.owlboard.info" />
<meta property="og:type" content="website" />

View File

@@ -0,0 +1 @@
{"name":"Aldermaston","crs":"amt","updated":"2026-03-11T00:00:00.000Z","checked":"2026-03-11T00:00:00.000Z","platforms":[{"platformId":"1Up","platformLength":115,"signal":false,"dispatch":false,"stepFree":null,"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":null,"doorPattern":[{"kind":"IET5","doors":[1,7]},{"kind":"IET9","doors":[1,7]},{"kind":"IET10","doors":[1,7]},{"kind":"DMU","max-car":5}]}]}

View File

@@ -0,0 +1 @@
{"name":"Bedwyn","crs":"bdw","updated":"2026-03-11T00:00:00.000Z","checked":"2026-03-11T00:00:00.000Z","platforms":[{"platformId":"1Dn","platformLength":121,"signal":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,"dispatch":false,"doorPattern":[{"kind":"IET5","doors":[2,10]},{"kind":"IET9","doors":[2,10]},{"kind":"IET10","doors":[2,10]},{"kind":"DMU","max-car":5}]}]}

View File

@@ -0,0 +1 @@
{"name":"Hungerford","crs":"hgd","updated":"2026-03-11T00:00:00.000Z","checked":"2026-03-11T00:00:00.000Z","platforms":[{"platformId":"1Up","platformLength":153,"signal":false,"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,"dispatch":false,"doorPattern":[{"kind":"IET5","doors":[1,10]},{"kind":"IET9","doors":[1,11]},{"kind":"IET10","doors":[1,11]},{"kind":"DMU","max-car":6}]}]}

View File

@@ -0,0 +1 @@
{"name":"Kintbury","crs":"kit","updated":"2026-03-11T00:00:00.000Z","checked":"2026-03-11T00:00:00.000Z","platforms":[{"platformId":"1Dn","platformLength":105,"signal":false,"dispatch":false,"stepFree":null,"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":null,"doorPattern":[{"kind":"IET5","doors":[4,10]},{"kind":"IET9","doors":[12,18]},{"kind":"IET10","doors":[14,20]},{"kind":"DMU","max-car":4}]}]}

View File

@@ -0,0 +1 @@
{"name":"Midgham","crs":"mdg","updated":"2026-03-11T00:00:00.000Z","checked":"2026-03-11T00:00:00.000Z","platforms":[{"platformId":"1Dn","platformLength":120,"signal":false,"dispatch":false,"stepFree":null,"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":null,"doorPattern":[{"kind":"IET5","doors":[1,7]},{"kind":"IET9","doors":[1,7]},{"kind":"IET10","doors":[1,7]},{"kind":"DMU","max-car":5}]}]}

View File

@@ -0,0 +1 @@
{"name":"Newbury","crs":"nby","updated":"2026-03-11T00:00:00.000Z","checked":"2026-03-11T00:00:00.000Z","platforms":[{"platformId":"1Dn","platformLength":291,"signal":true,"dispatch":true,"dispatchNote":"Staffed until 22:00 Daily","stepFree":true,"stepFreeNote":"Accessible from street & via lifts","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 until 22:00 Daily","stepFree":true,"stepFreeNote":"Accessible from street & via lifts","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 until 22:00 Daily","stepFree":true,"stepFreeNote":"Accessible from street & via lifts","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 until 22:00 Daily","stepFree":true,"stepFreeNote":"Accessible from street & via lifts","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 until 22:00 Daily","stepFree":true,"stepFreeNote":"Accessible from street & via lifts","doorPattern":[{"kind":"IET5","doors":[1,10]},{"kind":"IET9","doors":null},{"kind":"IET10","doors":null},{"kind":"DMU","max-car":5}]}]}

View File

@@ -0,0 +1 @@
{"name":"Newbury Racecourse","crs":"nrc","updated":"2026-03-11T00:00:00.000Z","checked":"2026-03-11T00:00:00.000Z","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":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}]},{"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}]}]}

View File

@@ -0,0 +1 @@
{"name":"Pewsey","crs":"pew","updated":"2026-03-11T00:00:00.000Z","checked":"2026-03-11T00:00:00.000Z","platforms":[{"platformId":"1Dn","platformLength":170,"signal":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,"dispatch":false,"doorPattern":[{"kind":"IET5","doors":[1,10]},{"kind":"IET9","doors":[2,15]},{"kind":"IET10","doors":[2,15]},{"kind":"DMU","max-car":7}]}]}

View File

@@ -0,0 +1 @@
{"name":"Thatcham","crs":"tha","updated":"2026-03-11T00:00:00.000Z","checked":"2026-03-11T00:00:00.000Z","platforms":[{"platformId":"1Dn","platformLength":168,"signal":true,"dispatch":false,"stepFree":null,"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":null,"doorPattern":[{"kind":"IET5","doors":[1,10]},{"kind":"IET9","doors":[7,18]},{"kind":"IET10","doors":[9,20]},{"kind":"DMU","max-car":7}]}]}

View File

@@ -0,0 +1 @@
{"name":"Theale","crs":"the","updated":"2026-03-11T00:00:00.000Z","checked":"2026-03-11T00:00:00.000Z","platforms":[{"platformId":"1Up","platformLength":168,"signal":true,"dispatch":false,"stepFree":null,"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":null,"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":false,"dispatch":false,"stepFree":true,"doorPattern":[{"kind":"IET5","doors":[1,10]},{"kind":"IET9","doors":[1,11]},{"kind":"IET10","doors":[1,11]}]}]}

View File

@@ -1,18 +1,53 @@
<script lang="ts">
import { components } from '$lib/mapRegistry';
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";
export let feature: {name: string; type: featureType; goto?: string; entryPoint?: string; miles: number; chains: number; description?: string}; // Raw Object
export let activeElec: ElecType; // Active Electrification Type
export let reversed: boolean = false;
type featureType =
| 'station'
| 'junction'
| '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
$: isLinkable = !!(feature.goto && feature.entryPoint);
$: href = `/map/${feature.goto}#${feature.entryPoint}`;
let isLinkable = $derived(!!(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) =>
str?.toLocaleLowerCase().trim().replace(/\s+/g, '-') ?? 'unknown';
@@ -25,33 +60,42 @@
</div>
<div class="icon-col">
<svelte:component this={Icon} feature={feature as any} {activeElec} {reversed} />
<svelte:component this={Icon} {feature} {activeElec} {reversed} />
</div>
<svelte:element this={isLinkable ? 'a' : 'div'} {...(isLinkable ? { href } : {})} class="link-wrapper">
<div class="label-col">
{#if feature.name}
<div class="feature-name">{feature.name}</div>
{/if}
{#if feature.description}
<div class="feature-desc">{feature.description}</div>
{/if}
</div>
{#if isLinkable}
<svelte:element
this={isLinkable ? 'a' : 'div'}
{...isLinkable ? { href } : {}}
class="link-wrapper"
>
<div class="label-col">
{#if feature.name}
<div class="feature-name">{feature.name}</div>
{/if}
{#if feature.description}
<div class="feature-desc">{feature.description}</div>
{/if}
</div>
{#if isLinkable}
<div class="link-indicator">
<IconArrowNarrowRight />
</div>
{/if}
{#if stationInfo}
<div class="info-indicator" onclick={() => onShowInfo(feature.crs)}>
<IconInfoCircle />
</div>
{/if}
</svelte:element>
</div>
<style>
a {
cursor: pointer;
text-decoration: none;
}
a {
cursor: pointer;
text-decoration: none;
}
.row-container {
display: grid;
grid-template-columns: 3.5rem 64px 1fr;
@@ -62,6 +106,7 @@ a {
margin: 0;
padding: 0;
overflow: hidden;
scroll-padding: 80px;
}
.mileage-col {
@@ -83,7 +128,6 @@ a {
font-size: 0.7rem;
}
.icon-col {
width: 64px;
height: 64px;
@@ -93,7 +137,6 @@ a {
overflow: visible;
}
.link-wrapper {
display: flex;
flex-direction: row;
@@ -125,6 +168,24 @@ a {
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 {
padding-left: 16px;
display: flex;

View File

@@ -0,0 +1,399 @@
<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">&times;</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: #f8fafc;
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: #1e293b;
color: white;
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: #0f172a;
}
.close-icon {
background: #ef4444;
border-radius: 50%;
width: 32px;
height: 32px;
padding: 0;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: #ebebeb;
transition: all 0.2s;
}
.close-icon:hover {
background: #dc2626;
transform: scale(1.05);
transform: rotate(180deg);
}
.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: #f1f5f9;
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: #334155;
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: #0f172a;
}
.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 8px #22c55e;
}
</style>

View File

@@ -61,14 +61,14 @@
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
font-family: "urwgothic";
font-family: 'urwgothic';
color: #64748b;
}
.route-id-chip {
font-size: 0.6rem;
font-weight: 800;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
background: #f1f5f9;
color: #475569;
padding: 2px 6px;
@@ -77,7 +77,7 @@
}
.main-text {
font-family: "urwgothic";
font-family: 'urwgothic';
font-size: 1rem;
font-weight: 800;
color: #0f172a;
@@ -90,7 +90,7 @@
display: flex;
align-items: center;
justify-content: center;
color: #e1ebeb;
background-color: #3c6f79;
padding: 4px 4px;

View File

@@ -13,7 +13,8 @@
const portalColour = '#475569'; // Slate grey
$: 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';
})();
</script>

View File

@@ -57,7 +57,12 @@
<div class="list-container">
<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)}
<a
href={resolve(`/map/${map.routeId.toString().padStart(4, '0')}`)}

View File

@@ -1,18 +1,30 @@
<script lang="ts">
import RouteRow from '$lib/components/RouteRow.svelte';
import RouteEndLink from '$lib/components/mapIcons/RouteEndLink.svelte';
import StationInfo from '$lib/components/StationInfo.svelte';
import { slide } from 'svelte/transition';
import { resolve } from '$app/paths';
import logo from '$lib/assets/round-logo.svg';
import { IconArrowsExchange, IconSettings } from '@tabler/icons-svelte';
import { IconArrowsExchange, IconSettings } from '@tabler/icons-svelte';
// 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,
minorBridge: false,
bridge: true,
@@ -23,10 +35,10 @@
siteof: true,
junction: true,
tunnel: true,
crossing: true,
};
crossing: true
});
let showFilters = false;
let showFilters = $state(false);
// Toggle feature types
const toggleFilter = (type: string) => {
@@ -38,31 +50,29 @@
const formatLabel = (str: string) =>
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];
// Seed currentElec from the YAML header boundary
let currentElec = reversed ? data.route.elecEnd.elec : data.route.elecStart.elec;
return list.map((f) => {
if (f.type === 'electrificationChange') {
// Transition state: this tile and everything after it
// adopts the new electrification.
currentElec = reversed ? f.from.elec : f.to.elec;
}
return {
...f,
activeElec: currentElec
};
});
})();
$: filteredFeatures = processedFeatures.filter((f) => {
return visibleTypes[f.type] ?? true;
});
const filteredFeatures = $derived(processedFeatures.filter((f) => visibleTypes[f.type] ?? true));
</script>
{#if isModalOpen && activeCrs}
<StationInfo crs={activeCrs} onclose={closeStationModal} />
{/if}
<div class="map-layout">
<header class="top-nav">
<div class="nav-cluster">
@@ -76,8 +86,8 @@
{reversed ? data.route.routeEnd : data.route.routeStart}
</h1>
<span class="secondary-station">
<span class="route-stack-to">
to</span> {reversed ? data.route.routeStart : data.route.routeEnd}
<span class="route-stack-to"> to</span>
{reversed ? data.route.routeStart : data.route.routeEnd}
</span>
{/if}
</div>
@@ -87,7 +97,9 @@
<button class="icon-btn" onclick={() => (reversed = !reversed)}>
<IconArrowsExchange />
</button>
<button class="icon-btn" onclick={() => (showFilters = !showFilters)}> <IconSettings /> </button>
<button class="icon-btn" onclick={() => (showFilters = !showFilters)}>
<IconSettings />
</button>
</div>
</header>
@@ -139,7 +151,12 @@
{#if f.type === 'continues'}
<RouteEndLink feature={f} />
{:else}
<RouteRow feature={f} activeElec={f.activeElec} {reversed} />
<RouteRow
feature={f}
activeElec={f.activeElec}
{reversed}
onShowInfo={openStationModal}
/>
{/if}
{/each}
</div>
@@ -212,7 +229,7 @@
.route-stack {
display: flex;
font-family: "urwgothic";
font-family: 'urwgothic';
flex-direction: column;
min-width: 0;
margin-left: 0;
@@ -250,7 +267,7 @@
}
@media (min-width: 536px) {
.primary-station {
.primary-station {
font-size: 1.5rem;
}
.secondary-station {

View File

@@ -20,9 +20,8 @@ export const load: PageLoad = async ({ params }) => {
return {
route: rawData,
slug: slug,
slug: slug
};
} catch (err) {
console.error(`Error loading map ${slug}: `, err);
throw error(500, {

View File

@@ -1,6 +1,6 @@
routeStart: Paddington
routeEnd: Reading
routeId: "0001"
routeId: '0001'
updated: 2026-02-09
checked: 2026-02-09
signallerStart: TVSC Paddington WS

View File

@@ -1,6 +1,6 @@
routeStart: Reading
routeEnd: Bristol TM
routeId: "0002"
routeId: '0002'
updated: 2026-02-04
checked: 2026-03-01
signallerStart: TVSC Reading WS
@@ -33,8 +33,8 @@ routeDetail:
direction: down
name: Westbury Line Jn
description: to Oxford Road Jn
goto: "0210"
entryPoint: "westbury-line-jn"
goto: '0210'
entryPoint: 'westbury-line-jn'
miles: 36
chains: 17
@@ -43,8 +43,8 @@ routeDetail:
direction: down
name: Caversham Road Jn
description: Reading Feeder Main/Relief diverge and pass under Reading Viaduct to Oxford Rd Jn
goto: "0210"
entryPoint: "oxford-road-jn"
goto: '0210'
entryPoint: 'oxford-road-jn'
miles: 36
chains: 22
@@ -65,8 +65,8 @@ routeDetail:
direction: up
name: Reading West Jn
description: to Oxford Road Junction (From relief lines only)
goto: "0210"
entryPoint: "oxford-road-jn"
goto: '0210'
entryPoint: 'oxford-road-jn'
miles: 37
chains: 17
@@ -251,7 +251,7 @@ routeDetail:
to: TVSC Swindon WS (SW)
miles: 66
chains: 0
- type: crossovers
name: Uffington
miles: 66
@@ -282,7 +282,7 @@ routeDetail:
position: left
miles: 75
chains: 0
- type: junction
name: Highworth Junction
diverges: left
@@ -316,7 +316,7 @@ routeDetail:
diverges: left
direction: down
description: Up/Dn Kemble towards Gloucester
goto: "0230"
goto: '0230'
entryPoint: swindon-jn
miles: 77
chains: 36
@@ -351,7 +351,7 @@ routeDetail:
diverges: left
direction: down
description: Up/Dn Badminton to Bristol PW
goto: "0240"
goto: '0240'
entryPoint: wootton-bassett-jn
miles: 83
chains: 7
@@ -408,7 +408,7 @@ routeDetail:
diverges: right
direction: down
description: to Melksham & Trowbridge
goto: "0250"
goto: '0250'
entryPoint: thingley-jn
miles: 96
chains: 10
@@ -445,7 +445,7 @@ routeDetail:
diverges: right
direction: up
description: Up/Dn Trowbridge towards Westbury
goto: "0260"
goto: '0260'
entryPoint: bathampton-jn
miles: 104
chains: 45
@@ -497,7 +497,7 @@ routeDetail:
description: River Avon
miles: 107
chains: 0
- type: crossovers
name: Bath West Crossovers
miles: 107
@@ -557,12 +557,12 @@ routeDetail:
chains: 68
- type: tunnel
tunnelType: whole
tunnelType: whole
name: St. Annes Park No.3 Tunnel
length: 0mi 1017yd
miles: 116
chains: 0
- type: tunnel
tunnelType: whole
name: St. Annes Park No.2 Tunnel
@@ -596,11 +596,11 @@ routeDetail:
description: Up/Dn Bristol Loops to Dr. Days Jn
diverges: left
direction: down
goto: "9999"
goto: '9999'
entryPoint: dr-days-jn
miles: 117
chains: 50
- type: junction
diverges: right
direction: down
@@ -622,7 +622,7 @@ routeDetail:
description: Filton lines towards Filton on Up-side, Kingsland Road Sisings on right side
miles: 118
chains: 2
goto: "9999"
goto: '9999'
entryPoint: bristol-east-jn
- type: siteof
@@ -633,4 +633,4 @@ routeDetail:
- type: station
name: Bristol Temple Meads
miles: 118
chains: 31
chains: 31

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
routeStart: Swindon Junction
routeEnd: Standish Junction
routeId: "0230"
routeId: '0230'
updated: 2026-02-14
checked: 2026-02-14
signallerStart: TVSC Swindon WS
@@ -16,12 +16,12 @@ routeDetail:
routeName: Reading - Bristol TM
routeId: '0002'
entryPoint: swindon
- type: junction
name: Swindon Jn
diverges: right
direction: down
goto: "0002"
goto: '0002'
entryPoint: swindon-jn
miles: 77
chains: 36
@@ -761,12 +761,10 @@ routeDetail:
description: Up to Gloucester, Dn to Bristol
miles: 106
chains: 74
goto: "2420"
goto: '2420'
entryPoint: standish-jn
- type: continues
routeName: "Westerleigh Jn - Gloucester"
routeName: 'Westerleigh Jn - Gloucester'
entryPoint: standish-jn
routeId: "2420"
routeId: '2420'

View File

@@ -22,7 +22,7 @@ routeDetail:
direction: down
name: Wootton Basset Jn
description: to Chippenham & Bristol via Bath
goto: "0002"
goto: '0002'
entryPoint: wootton-bassett-jn
miles: 83
chains: 7

View File

@@ -1,6 +1,6 @@
routeStart: Thingley Junction
routeEnd: Bradford Junction
routeId: "0250"
routeId: '0250'
updated: 2026-03-01
checked: 2026-03-01
signallerStart: TVSC Swindon WS
@@ -11,116 +11,115 @@ elecEnd:
elec: none
routeDetail:
- type: continues
routeName: Reading - Bristol TM
routeId: '0002'
entryPoint: thingley-jn
- type: continues
routeName: Reading - Bristol TM
routeId: "0002"
entryPoint: thingley-jn
- type: junction
name: Thingley Jn
diverges: left
direction: down
description: Down Main towards Bath
goto: '0002'
entryPoint: thingley-jn
miles: 96
chains: 10
- type: junction
name: Thingley Jn
diverges: left
direction: down
description: Down Main towards Bath
goto: "0002"
entryPoint: thingley-jn
miles: 96
chains: 10
- type: signallerChange
from: TVSC Swindon WS (SW)
to: Westbury PSB (W)
miles: 96
chains: 30
- type: signallerChange
from: TVSC Swindon WS (SW)
to: Westbury PSB (W)
miles: 96
chains: 30
- type: crossing
name: Laycock 6 Foot Crossing
kind: foot
miles: 97
chains: 30
- type: crossing
name: Laycock 6 Foot Crossing
kind: foot
miles: 97
chains: 30
- type: crossing
name: Laycock 2 Foot Crossing
kind: foot
miles: 98
chains: 8
- type: crossing
name: Laycock 2 Foot Crossing
kind: foot
miles: 98
chains: 8
- type: crossing
name: Melksham Without 85 Foot Crossing
kind: foot
miles: 99
chains: 12
- type: crossing
name: Melksham Without 85 Foot Crossing
kind: foot
miles: 99
chains: 12
- type: crossing
name: Melksham Without 92 Foot Crossing
kind: foot
miles: 99
chains: 41
- type: crossing
name: Melksham Without 92 Foot Crossing
kind: foot
miles: 99
chains: 41
- type: station
name: Melksham
miles: 100
chains: 13
- type: station
name: Melksham
miles: 100
chains: 13
- type: crossing
kind: foot
name: Melksham 22 Foot Crossing
miles: 100
chains: 32
- type: crossing
kind: foot
name: Melksham 22 Foot Crossing
miles: 100
chains: 32
- type: crossing
kind: uwc
miles: 101
chains: 39
name: Church Farm No.1 Crossing
- type: crossing
kind: uwc
miles: 101
chains: 39
name: Church Farm No.1 Crossing
- type: crossing
kind: foot
name: Broughton Gifford No.26 Foot Crossing
miles: 101
chains: 77
- type: crossing
kind: foot
name: Broughton Gifford No.26 Foot Crossing
miles: 101
chains: 77
- type: crossing
kind: foot
name: Broughton Gifford No.25 Foot Crossing
miles: 102
chains: 2
- type: crossing
kind: foot
name: Broughton Gifford No.25 Foot Crossing
miles: 102
chains: 2
- type: crossing
kind: uwc
name: Church Farm No.2 Crossing
miles: 102
chains: 10
- type: crossing
kind: uwc
name: Church Farm No.2 Crossing
miles: 102
chains: 10
- type: crossing
kind: foot
name: Holt No.1 Foot Crossing
miles: 102
chains: 23
- type: crossing
kind: foot
name: Holt No.1 Foot Crossing
miles: 102
chains: 23
- type: siteof
name: Holt Junction
description: Former junction
miles: 102
chains: 58
- type: siteof
name: Holt Junction
description: Former junction
miles: 102
chains: 58
- type: crossing
kind: uwc
name: Avon View Farm Crossing
miles: 103
chains: 9
- type: crossing
kind: uwc
name: Avon View Farm Crossing
miles: 103
chains: 9
- type: junction
name: Bradford Jn
diverges: left
direction: up
description: Up/Dn Trowbridge towards Bath
goto: '0260'
entryPoint: bradford-jn
miles: 104
chains: 40
- type: junction
name: Bradford Jn
diverges: left
direction: up
description: Up/Dn Trowbridge towards Bath
goto: "0260"
entryPoint: bradford-jn
miles: 104
chains: 40
- type: continues
routeName: Bathampton Jn - Westbury
routeId: "0260"
entryPoint: bradford-jn
- type: continues
routeName: Bathampton Jn - Westbury
routeId: '0260'
entryPoint: bradford-jn

View File

@@ -1,6 +1,6 @@
routeStart: Bathampton Jn
routeEnd: Westbury South Jn
routeId: "0260"
routeId: '0260'
updated: 2026-03-01
checked: 2026-03-01
signallerStart: TVSC Bath WS
@@ -11,251 +11,248 @@ elecEnd:
elec: none
routeDetail:
- type: continues
routeName: Reading - Bristol TM
entryPoint: bathampton-jn
routeId: '0002'
- type: continues
routeName: Reading - Bristol TM
entryPoint: bathampton-jn
routeId: "0002"
- type: junction
name: Bathampton Jn
description: Mileage change (0mi 0ch)
diverges: right
direction: down
goto: '0002'
entryPoint: bathampton-jn
miles: 0
chains: 0
- type: junction
name: Bathampton Jn
description: Mileage change (0mi 0ch)
diverges: right
direction: down
goto: "0002"
entryPoint: bathampton-jn
miles: 0
chains: 0
- type: crossing
kind: omsl
name: Glass's Crossing
miles: 0
chains: 20
- type: crossing
kind: omsl
name: Glass's Crossing
miles: 0
chains: 20
- type: crossing
kind: omsl
name: Claverton Crossing
miles: 1
chains: 73
- type: crossing
kind: omsl
name: Claverton Crossing
miles: 1
chains: 73
- type: bridge
name: Dundas Aqueduct
position: over
category: waterway
description: Kennet & Avon Canal
miles: 3
chains: 12
- type: bridge
name: Dundas Aqueduct
position: over
category: waterway
description: Kennet & Avon Canal
miles: 3
chains: 12
- type: crossing
name: Young's Crossing
kind: uwc
miles: 3
chains: 25
- type: crossing
name: Young's Crossing
kind: uwc
miles: 3
chains: 25
- type: crossing
name: Fisher's Crossing
kind: uwc
miles: 3
chains: 50
- type: crossing
name: Fisher's Crossing
kind: uwc
miles: 3
chains: 50
- type: crossing
name: Limpley Stoke No.1 Foot Crossing
miles: 4
chains: 10
kind: foot
- type: crossing
name: Limpley Stoke No.1 Foot Crossing
miles: 4
chains: 10
kind: foot
- type: crossing
name: Limpley Stoke No.2 Foot Crossing
kind: foot
miles: 4
chains: 14
- type: crossing
name: Limpley Stoke No.2 Foot Crossing
kind: foot
miles: 4
chains: 14
- type: crossing
name: Freshford Station Crossing
kind: uwc
miles: 4
chains: 68
- type: crossing
name: Freshford Station Crossing
kind: uwc
miles: 4
chains: 68
- type: station
name: Freshford
miles: 4
chains: 70
- type: station
name: Freshford
miles: 4
chains: 70
- type: bridge
name: Freshford Viaduct
category: waterway
description: River Avon
position: under
miles: 5
chains: 8
- type: bridge
name: Avoncliff Aqueduct
category: waterway
description: Kennet & Avon Canal
position: over
miles: 5
chains: 63
- type: bridge
name: Freshford Viaduct
category: waterway
description: River Avon
position: under
miles: 5
chains: 8
- type: station
name: Avoncliff
miles: 5
chains: 63
description: Local door operation
- type: bridge
name: Avoncliff Aqueduct
category: waterway
description: Kennet & Avon Canal
position: over
miles: 5
chains: 63
- type: crossing
name: Avoncliff Mill Crossing
kind: uwc
miles: 5
chains: 71
- type: station
name: Avoncliff
miles: 5
chains: 63
description: Local door operation
- type: signallerChange
from: TVSC Bath WS (BL)
to: Westbury PSB (W)
miles: 6
chains: 55
- type: crossing
name: Avoncliff Mill Crossing
kind: uwc
miles: 5
chains: 71
- type: crossing
kind: foot
name: Belcombe Road Foot Crossing
miles: 6
chains: 67
- type: signallerChange
from: TVSC Bath WS (BL)
to: Westbury PSB (W)
miles: 6
chains: 55
- type: crossing
kind: foot
name: Barton Orchard Foot Crossing
miles: 6
chains: 74
- type: crossing
kind: foot
name: Belcombe Road Foot Crossing
miles: 6
chains: 67
- type: station
name: Bradford-on-Avon
miles: 7
chains: 9
- type: tunnel
name: Bradford Tunnel
tunnelType: whole
length: 0mi 159yd
miles: 7
chains: 22
- type: crossing
kind: foot
name: Barton Orchard Foot Crossing
miles: 6
chains: 74
- type: crossing
kind: AHB
name: Greenland Mill Level Crossing
miles: 7
chains: 27
- type: station
name: Bradford-on-Avon
miles: 7
chains: 9
- type: crossing
kind: uwc
name: Cemetery Lane Crossing
miles: 8
chains: 1
- type: tunnel
name: Bradford Tunnel
tunnelType: whole
length: 0mi 159yd
miles: 7
chains: 22
- type: crossing
kind: uwc
name: Tuckers Crossing
miles: 8
chains: 18
- type: crossing
kind: AHB
name: Greenland Mill Level Crossing
miles: 7
chains: 27
- type: junction
name: Bradford Jn
diverges: right
direction: up
description: Melksham Single towards Chippenham, mileage change
goto: '0250'
entryPoint: bradford-jn
miles: 9
chains: 12
- type: crossing
kind: uwc
name: Cemetery Lane Crossing
miles: 8
chains: 1
- type: bridge
name: Trowbridge Aqueduct
description: Kennet & Avon Canal
position: over
category: waterway
miles: 104
chains: 54
- type: crossing
kind: uwc
name: Tuckers Crossing
miles: 8
chains: 18
- type: station
name: Trowbridge
miles: 105
chains: 61
- type: junction
name: Bradford Jn
diverges: right
direction: up
description: Melksham Single towards Chippenham, mileage change
goto: "0250"
entryPoint: bradford-jn
miles: 9
chains: 12
- type: crossing
kind: foot
name: White Horse Foot Crossing
miles: 107
chains: 8
- type: bridge
name: Trowbridge Aqueduct
description: Kennet & Avon Canal
position: over
category: waterway
miles: 104
chains: 54
- type: crossing
kind: foot
name: Yarnbrook Foot Crossing
miles: 107
chains: 34
- type: station
name: Trowbridge
miles: 105
chains: 61
- type: bridge
name: Yarnbrook Viaduct
position: under
category: aroad
roadName: A363
miles: 107
chains: 56
- type: crossing
kind: foot
name: White Horse Foot Crossing
miles: 107
chains: 8
- type: crossing
kind: foot
name: Heywood 3 Foot Crossing
miles: 108
chains: 46
- type: crossing
kind: foot
name: Yarnbrook Foot Crossing
miles: 107
chains: 34
- type: crossing
kind: foot
name: Hawkeridge Foot Crossing
miles: 108
chains: 78
- type: bridge
name: Yarnbrook Viaduct
position: under
category: aroad
roadName: A363
miles: 107
chains: 56
- type: junction
name: Hawkeridge Jn
diverges: right
direction: down
description: Lines change direction towards Westbury
goto: '0210'
entryPoint: heywood-road-jn
miles: 109
chains: 14
- type: crossing
kind: foot
name: Heywood 3 Foot Crossing
miles: 108
chains: 46
- type: junction
name: Westbury North Jn
diverges: right
direction: up
goto: '0210'
entryPoint: heywood-road-jn
miles: 109
chains: 49
- type: crossing
kind: foot
name: Hawkeridge Foot Crossing
miles: 108
chains: 78
- type: station
name: Westbury
miles: 109
chains: 64
- type: junction
name: Hawkeridge Jn
diverges: right
direction: down
description: Lines change direction towards Westbury
goto: "0210"
entryPoint: heywood-road-jn
miles: 109
chains: 14
- type: junction
name: Westbury South Jn
diverges: right
direction: down
description: Up/Dn Salisbury towards Warminster
goto: '0261'
entryPoint: 'westbury-south-jn'
miles: 110
chains: 7
- type: junction
name: Westbury North Jn
diverges: right
direction: up
goto: "0210"
entryPoint: heywood-road-jn
miles: 109
chains: 49
- type: crossing
kind: foot
name: Dilton Marsh Crossing
miles: 110
chains: 50
- type: station
name: Westbury
miles: 109
chains: 64
- type: junction
name: Westbury South Jn
diverges: right
direction: down
description: Up/Dn Salisbury towards Warminster
goto: "0261"
entryPoint: "westbury-south-jn"
miles: 110
chains: 7
- type: crossing
kind: foot
name: Dilton Marsh Crossing
miles: 110
chains: 50
- type: continues
routeName: to Fairwood Jn (Reading - Taunton)
routeId: "0210"
entryPoint: fairwood-jn
- type: continues
routeName: to Fairwood Jn (Reading - Taunton)
routeId: '0210'
entryPoint: fairwood-jn

View File

@@ -12,7 +12,6 @@ elecEnd:
elec: none
routeDetail:
- type: junction
name: Westerleigh Jn
diverges: left
@@ -40,7 +39,7 @@ routeDetail:
elec: 25kvac
eco: Didcot
to:
elec: none
elec: none
miles: 120
chains: 67
@@ -327,7 +326,7 @@ routeDetail:
position: under
miles: 107
chains: 23
- type: minorBridge
name: Tumpy Green
position: over
@@ -633,7 +632,7 @@ routeDetail:
diverges: left
direction: down
description: to Barnwood Junction
goto: "2422"
goto: '2422'
entryPoint: barnwood-jn
miles: 93
chains: 8
@@ -665,7 +664,7 @@ routeDetail:
direction: up
name: Horton Road Jn
description: to Barnwood Jn
goto: "2422"
goto: '2422'
entryPoint: horton-road-jn
miles: 113
chains: 61
@@ -678,4 +677,4 @@ routeDetail:
- type: continues
routeName: Gloucester - Severn Tunnel Jn
entryPoint: gloucester
routeId: '2421'
routeId: '2421'

View File

@@ -1,7 +1,7 @@
# yaml-language-server: $schema=./mapFiles.schema.json
routeStart: Gloucester
routeEnd: Severn Tunnel Jn
routeId: "2421"
routeId: '2421'
updated: 2026-02-28
checked: 2026-03-01
signallerStart: Gloucester PSB
@@ -13,7 +13,6 @@ elecEnd:
eco: Didcot (TVSC)
routeDetail:
- type: continues
routeName: Gloucester - Westerleigh Jn
entryPoint: gloucester
@@ -102,7 +101,7 @@ routeDetail:
name: Keens Crossing
miles: 116
chains: 3
- type: crossing
kind: foot
name: Over Farm Foot Crossing
@@ -736,4 +735,4 @@ routeDetail:
- type: continues
routeName: Bristol Parkway - Cardiff West Shunt
routeId: '0000'
entryPoint: severn-tunnel-junction
entryPoint: severn-tunnel-junction

File diff suppressed because it is too large Load Diff

33
static/stations/amt.yaml Normal file
View 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

View File

@@ -6,84 +6,28 @@ platforms:
- platformId: 1Dn
platformLength: 121
signal: true
stepFree: true
dispatch: false
doorPattern:
- kind: IET5
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,0]
doors: [1, 9]
- kind: IET9
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,0]
6: [0,0]
7: [0,0]
8: [0,0]
9: [0,0]
doors: [1, 9]
- kind: IET10
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,0]
6: [0,0]
7: [0,0]
8: [0,0]
9: [0,0]
10: [0,0]
doors: [1, 9]
- kind: DMU
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
max-car: 5
- platformId: 2Up
platformLength: 123
signal: true
stepFree: true
dispatch: false
doorPattern:
- kind: IET5
doors:
1: [0,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
doors: [2, 10]
- kind: IET9
doors:
1: [0,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
6: [0,0]
7: [0,0]
8: [0,0]
9: [0,0]
doors: [2, 10]
- kind: IET10
doors:
1: [0,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
6: [0,0]
7: [0,0]
8: [0,0]
9: [0,0]
10: [0,0]
doors: [2, 10]
- kind: DMU
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
max-car: 5

View File

@@ -5,87 +5,29 @@ checked: 2026-03-11
platforms:
- platformId: 1Up
platformLength: 153
signal: true
signal: false
stepFree: true
dispatch: false
doorPattern:
- kind: IET5
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
doors: [1, 10]
- kind: IET9
doors:
1: [0,0]
2: [0,0]
3: [0,0]
4: [0,1]
5: [1,1]
6: [1,1]
7: [1,1]
8: [1,1]
9: [1,1]
doors: [8, 18]
- kind: IET10
doors:
1: [0,0]
2: [0,0]
3: [0,0]
4: [0,0]
5: [1,1]
6: [1,1]
7: [1,1]
8: [1,1]
9: [1,1]
10: [1,1]
doors: [9, 20]
- kind: DMU
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
6: [1,1]
max-car: 6
- platformId: 2Dn
platformLength: 150
signal: true
signal: false
stepFree: true
dispatch: false
doorPattern:
- kind: IET5
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
doors: [1, 10]
- kind: IET9
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
6: [1,0]
7: [0,0]
8: [0,0]
9: [0,0]
doors: [1, 11]
- kind: IET10
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
6: [1,0]
7: [0,0]
8: [0,0]
9: [0,0]
10: [0,0]
doors: [1, 11]
- kind: DMU
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
6: [1,1]
max-car: 6

View File

@@ -1,92 +1,33 @@
name: Kintbury
crs: kit
--- INCOMPLETE --- NOTHING DONE BWLOW LINE
updated: 2026-03-11
checked: 2026-03-11
platforms:
- platformId: 1Up
platformLength: 153
signal: true
- platformId: 1Dn
platformLength: 105
signal: false
dispatch: false
stepFree: true
doorPattern:
- kind: IET5
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
doors: [2, 9]
- kind: IET9
doors:
1: [0,0]
2: [0,0]
3: [0,0]
4: [0,1]
5: [1,1]
6: [1,1]
7: [1,1]
8: [1,1]
9: [1,1]
doors: [2, 9]
- kind: IET10
doors:
1: [0,0]
2: [0,0]
3: [0,0]
4: [0,0]
5: [1,1]
6: [1,1]
7: [1,1]
8: [1,1]
9: [1,1]
10: [1,1]
doors: [2, 9]
- kind: DMU
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
6: [1,1]
- platformId: 2Dn
platformLength: 150
signal: true
max-car: 4
- platformId: 2Up
platformLength: 106
signal: false
dispatch: false
stepFree: true
doorPattern:
- kind: IET5
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
doors: [4, 10]
- kind: IET9
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
6: [1,0]
7: [0,0]
8: [0,0]
9: [0,0]
doors: [12, 18]
- kind: IET10
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
6: [1,0]
7: [0,0]
8: [0,0]
9: [0,0]
10: [0,0]
doors: [14, 20]
- kind: DMU
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
6: [1,1]
max-car: 4

33
static/stations/mdg.yaml Normal file
View 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
View 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
View 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

View File

@@ -5,89 +5,29 @@ checked: 2026-03-11
platforms:
- platformId: 1Dn
platformLength: 170
signal: true
signal: false
stepFree: true
dispatch: false
doorPattern:
- kind: IET5
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
doors: [1, 10]
- kind: IET9
doors:
1: [0,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
6: [1,1]
7: [1,1]
8: [1,0]
9: [0,0]
doors: [2, 15]
- kind: IET10
doors:
1: [0,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
6: [1,1]
7: [1,1]
8: [1,0]
9: [0,0]
10: [0,0]
doors: [2, 15]
- kind: DMU
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
6: [1,1]
7: [1,1]
max-car: 7
- platformId: 2Up
platformLength: 177
signal: true
stepFree: true
dispatch: false
doorPattern:
- kind: IET5
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
doors: [1, 10]
- kind: IET9
doors:
1: [0,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
6: [1,1]
7: [1,1]
8: [1,0]
9: [0,0]
doors: [2, 15]
- kind: IET10
doors:
1: [0,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
6: [1,1]
7: [1,1]
8: [1,0]
9: [0,0]
10: [0,0]
doors: [2, 15]
- kind: DMU
doors:
1: [1,1]
2: [1,1]
3: [1,1]
4: [1,1]
5: [1,1]
6: [1,1]
7: [1,1]
max-car: 7

View File

@@ -1,101 +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": {}
}
}
"$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
View 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
View 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]