@tangledwires/uk-station-data 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ export * from "./line.ts";
2
+ export * from "./station.ts";
package/dist/index.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./line.ts"), exports);
18
+ __exportStar(require("./station.ts"), exports);
package/dist/line.d.ts ADDED
@@ -0,0 +1,98 @@
1
+ /**
2
+ * A train line
3
+ */
4
+ export type Line = {
5
+ displayName: string;
6
+ colour: string;
7
+ };
8
+ /**
9
+ * A list of all {@link Line}s
10
+ */
11
+ export declare const Lines: {
12
+ readonly bakerloo: {
13
+ readonly displayName: "Bakerloo";
14
+ readonly colour: "#a45a2a";
15
+ };
16
+ readonly central: {
17
+ readonly displayName: "Central";
18
+ readonly colour: "#da291c";
19
+ };
20
+ readonly circle: {
21
+ readonly displayName: "Circle";
22
+ readonly colour: "#ffcd00";
23
+ };
24
+ readonly district: {
25
+ readonly displayName: "District";
26
+ readonly colour: "#007a33";
27
+ };
28
+ readonly hammersmithAndCity: {
29
+ readonly displayName: "Hammersmith & City";
30
+ readonly colour: "#e89cae";
31
+ };
32
+ readonly jubilee: {
33
+ readonly displayName: "Jubilee";
34
+ readonly colour: "#7c878e";
35
+ };
36
+ readonly metropolitan: {
37
+ readonly displayName: "Metropolitan";
38
+ readonly colour: "#840b55";
39
+ };
40
+ readonly northern: {
41
+ readonly displayName: "Northern";
42
+ readonly colour: "#000000";
43
+ };
44
+ readonly piccadilly: {
45
+ readonly displayName: "Piccadilly";
46
+ readonly colour: "#10069f";
47
+ };
48
+ readonly victoria: {
49
+ readonly displayName: "Victoria";
50
+ readonly colour: "#00a3e0";
51
+ };
52
+ readonly waterlooAndCity: {
53
+ readonly displayName: "Waterloo & City";
54
+ readonly colour: "#6eceb2";
55
+ };
56
+ readonly elizabeth: {
57
+ readonly displayName: "Elizabeth Line";
58
+ readonly colour: "#6950a1";
59
+ };
60
+ readonly dlr: {
61
+ readonly displayName: "DLR";
62
+ readonly colour: "#00afad";
63
+ };
64
+ readonly trams: {
65
+ readonly displayName: "Trams";
66
+ readonly colour: "#5fb526";
67
+ };
68
+ readonly cableCar: {
69
+ readonly displayName: "IFS Cloud Cable Car";
70
+ readonly colour: "#734fa0";
71
+ };
72
+ readonly liberty: {
73
+ readonly displayName: "Liberty Line";
74
+ readonly colour: "#5d6061";
75
+ };
76
+ readonly lioness: {
77
+ readonly displayName: "Lioness Line";
78
+ readonly colour: "#faa61a";
79
+ };
80
+ readonly mildmay: {
81
+ readonly displayName: "Mildmay Line";
82
+ readonly colour: "#0077ad";
83
+ };
84
+ readonly suffragette: {
85
+ readonly displayName: "Suffragette Line";
86
+ readonly colour: "#5bb972";
87
+ };
88
+ readonly weaver: {
89
+ readonly displayName: "Weaver Line";
90
+ readonly colour: "#823a62";
91
+ };
92
+ readonly windrush: {
93
+ readonly displayName: "Windrush Line";
94
+ readonly colour: "#ed1b00";
95
+ };
96
+ };
97
+ export type LineId = keyof typeof Lines;
98
+ export declare const lineIds: LineId[];
package/dist/line.js ADDED
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.lineIds = exports.Lines = void 0;
4
+ /**
5
+ * A list of all {@link Line}s
6
+ */
7
+ exports.Lines = {
8
+ bakerloo: {
9
+ displayName: "Bakerloo",
10
+ colour: "#a45a2a",
11
+ },
12
+ central: {
13
+ displayName: "Central",
14
+ colour: "#da291c",
15
+ },
16
+ circle: {
17
+ displayName: "Circle",
18
+ colour: "#ffcd00",
19
+ },
20
+ district: {
21
+ displayName: "District",
22
+ colour: "#007a33",
23
+ },
24
+ hammersmithAndCity: {
25
+ displayName: "Hammersmith & City",
26
+ colour: "#e89cae",
27
+ },
28
+ jubilee: {
29
+ displayName: "Jubilee",
30
+ colour: "#7c878e"
31
+ },
32
+ metropolitan: {
33
+ displayName: "Metropolitan",
34
+ colour: "#840b55"
35
+ },
36
+ northern: {
37
+ displayName: "Northern",
38
+ colour: "#000000"
39
+ },
40
+ piccadilly: {
41
+ displayName: "Piccadilly",
42
+ colour: "#10069f"
43
+ },
44
+ victoria: {
45
+ displayName: "Victoria",
46
+ colour: "#00a3e0"
47
+ },
48
+ waterlooAndCity: {
49
+ displayName: "Waterloo & City",
50
+ colour: "#6eceb2"
51
+ },
52
+ // TfL services
53
+ elizabeth: {
54
+ displayName: "Elizabeth Line",
55
+ colour: "#6950a1"
56
+ },
57
+ dlr: {
58
+ displayName: "DLR",
59
+ colour: "#00afad"
60
+ },
61
+ trams: {
62
+ displayName: "Trams",
63
+ colour: "#5fb526"
64
+ },
65
+ cableCar: {
66
+ displayName: "IFS Cloud Cable Car",
67
+ colour: "#734fa0"
68
+ },
69
+ // Overground lines
70
+ liberty: {
71
+ displayName: "Liberty Line",
72
+ colour: "#5d6061"
73
+ },
74
+ lioness: {
75
+ displayName: "Lioness Line",
76
+ colour: "#faa61a"
77
+ },
78
+ mildmay: {
79
+ displayName: "Mildmay Line",
80
+ colour: "#0077ad"
81
+ },
82
+ suffragette: {
83
+ displayName: "Suffragette Line",
84
+ colour: "#5bb972"
85
+ },
86
+ weaver: {
87
+ displayName: "Weaver Line",
88
+ colour: "#823a62"
89
+ },
90
+ windrush: {
91
+ displayName: "Windrush Line",
92
+ colour: "#ed1b00"
93
+ },
94
+ };
95
+ exports.lineIds = Object.keys(exports.Lines);