@tangledwires/uk-station-data 1.0.4 → 1.1.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.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/line.d.ts +23 -0
- package/dist/line.js +37 -16
- package/dist/station.d.ts +197 -197
- package/dist/station.js +58 -52
- package/dist/toc.d.ts +120 -0
- package/dist/toc.js +115 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/line.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { TOCId } from "./toc";
|
|
1
2
|
/**
|
|
2
3
|
* A train line
|
|
3
4
|
*/
|
|
4
5
|
export type Line = {
|
|
5
6
|
displayName: string;
|
|
6
7
|
colour: string;
|
|
8
|
+
toc: TOCId;
|
|
7
9
|
};
|
|
8
10
|
/**
|
|
9
11
|
* A list of all {@link Line}s
|
|
@@ -12,86 +14,107 @@ export declare const Lines: {
|
|
|
12
14
|
readonly bakerloo: {
|
|
13
15
|
readonly displayName: "Bakerloo";
|
|
14
16
|
readonly colour: "#a45a2a";
|
|
17
|
+
readonly toc: "tfl";
|
|
15
18
|
};
|
|
16
19
|
readonly central: {
|
|
17
20
|
readonly displayName: "Central";
|
|
18
21
|
readonly colour: "#da291c";
|
|
22
|
+
readonly toc: "tfl";
|
|
19
23
|
};
|
|
20
24
|
readonly circle: {
|
|
21
25
|
readonly displayName: "Circle";
|
|
22
26
|
readonly colour: "#ffcd00";
|
|
27
|
+
readonly toc: "tfl";
|
|
23
28
|
};
|
|
24
29
|
readonly district: {
|
|
25
30
|
readonly displayName: "District";
|
|
26
31
|
readonly colour: "#007a33";
|
|
32
|
+
readonly toc: "tfl";
|
|
27
33
|
};
|
|
28
34
|
readonly hammersmithAndCity: {
|
|
29
35
|
readonly displayName: "Hammersmith & City";
|
|
30
36
|
readonly colour: "#e89cae";
|
|
37
|
+
readonly toc: "tfl";
|
|
31
38
|
};
|
|
32
39
|
readonly jubilee: {
|
|
33
40
|
readonly displayName: "Jubilee";
|
|
34
41
|
readonly colour: "#7c878e";
|
|
42
|
+
readonly toc: "tfl";
|
|
35
43
|
};
|
|
36
44
|
readonly metropolitan: {
|
|
37
45
|
readonly displayName: "Metropolitan";
|
|
38
46
|
readonly colour: "#840b55";
|
|
47
|
+
readonly toc: "tfl";
|
|
39
48
|
};
|
|
40
49
|
readonly northern: {
|
|
41
50
|
readonly displayName: "Northern";
|
|
42
51
|
readonly colour: "#000000";
|
|
52
|
+
readonly toc: "tfl";
|
|
43
53
|
};
|
|
44
54
|
readonly piccadilly: {
|
|
45
55
|
readonly displayName: "Piccadilly";
|
|
46
56
|
readonly colour: "#10069f";
|
|
57
|
+
readonly toc: "tfl";
|
|
47
58
|
};
|
|
48
59
|
readonly victoria: {
|
|
49
60
|
readonly displayName: "Victoria";
|
|
50
61
|
readonly colour: "#00a3e0";
|
|
62
|
+
readonly toc: "tfl";
|
|
51
63
|
};
|
|
52
64
|
readonly waterlooAndCity: {
|
|
53
65
|
readonly displayName: "Waterloo & City";
|
|
54
66
|
readonly colour: "#6eceb2";
|
|
67
|
+
readonly toc: "tfl";
|
|
55
68
|
};
|
|
56
69
|
readonly elizabeth: {
|
|
57
70
|
readonly displayName: "Elizabeth Line";
|
|
58
71
|
readonly colour: "#6950a1";
|
|
72
|
+
readonly toc: "tfl";
|
|
59
73
|
};
|
|
60
74
|
readonly dlr: {
|
|
61
75
|
readonly displayName: "DLR";
|
|
62
76
|
readonly colour: "#00afad";
|
|
77
|
+
readonly toc: "tfl";
|
|
63
78
|
};
|
|
64
79
|
readonly trams: {
|
|
65
80
|
readonly displayName: "Trams";
|
|
66
81
|
readonly colour: "#5fb526";
|
|
82
|
+
readonly toc: "tfl";
|
|
67
83
|
};
|
|
68
84
|
readonly cableCar: {
|
|
69
85
|
readonly displayName: "IFS Cloud Cable Car";
|
|
70
86
|
readonly colour: "#734fa0";
|
|
87
|
+
readonly toc: "tfl";
|
|
71
88
|
};
|
|
72
89
|
readonly liberty: {
|
|
73
90
|
readonly displayName: "Liberty Line";
|
|
74
91
|
readonly colour: "#5d6061";
|
|
92
|
+
readonly toc: "tfl";
|
|
75
93
|
};
|
|
76
94
|
readonly lioness: {
|
|
77
95
|
readonly displayName: "Lioness Line";
|
|
78
96
|
readonly colour: "#faa61a";
|
|
97
|
+
readonly toc: "tfl";
|
|
79
98
|
};
|
|
80
99
|
readonly mildmay: {
|
|
81
100
|
readonly displayName: "Mildmay Line";
|
|
82
101
|
readonly colour: "#0077ad";
|
|
102
|
+
readonly toc: "tfl";
|
|
83
103
|
};
|
|
84
104
|
readonly suffragette: {
|
|
85
105
|
readonly displayName: "Suffragette Line";
|
|
86
106
|
readonly colour: "#5bb972";
|
|
107
|
+
readonly toc: "tfl";
|
|
87
108
|
};
|
|
88
109
|
readonly weaver: {
|
|
89
110
|
readonly displayName: "Weaver Line";
|
|
90
111
|
readonly colour: "#823a62";
|
|
112
|
+
readonly toc: "tfl";
|
|
91
113
|
};
|
|
92
114
|
readonly windrush: {
|
|
93
115
|
readonly displayName: "Windrush Line";
|
|
94
116
|
readonly colour: "#ed1b00";
|
|
117
|
+
readonly toc: "tfl";
|
|
95
118
|
};
|
|
96
119
|
};
|
|
97
120
|
export type LineId = keyof typeof Lines;
|
package/dist/line.js
CHANGED
|
@@ -5,88 +5,109 @@ export const Lines = {
|
|
|
5
5
|
bakerloo: {
|
|
6
6
|
displayName: "Bakerloo",
|
|
7
7
|
colour: "#a45a2a",
|
|
8
|
+
toc: "tfl",
|
|
8
9
|
},
|
|
9
10
|
central: {
|
|
10
11
|
displayName: "Central",
|
|
11
12
|
colour: "#da291c",
|
|
13
|
+
toc: "tfl",
|
|
12
14
|
},
|
|
13
15
|
circle: {
|
|
14
16
|
displayName: "Circle",
|
|
15
17
|
colour: "#ffcd00",
|
|
18
|
+
toc: "tfl",
|
|
16
19
|
},
|
|
17
20
|
district: {
|
|
18
21
|
displayName: "District",
|
|
19
22
|
colour: "#007a33",
|
|
23
|
+
toc: "tfl",
|
|
20
24
|
},
|
|
21
25
|
hammersmithAndCity: {
|
|
22
26
|
displayName: "Hammersmith & City",
|
|
23
27
|
colour: "#e89cae",
|
|
28
|
+
toc: "tfl",
|
|
24
29
|
},
|
|
25
30
|
jubilee: {
|
|
26
31
|
displayName: "Jubilee",
|
|
27
|
-
colour: "#7c878e"
|
|
32
|
+
colour: "#7c878e",
|
|
33
|
+
toc: "tfl",
|
|
28
34
|
},
|
|
29
35
|
metropolitan: {
|
|
30
36
|
displayName: "Metropolitan",
|
|
31
|
-
colour: "#840b55"
|
|
37
|
+
colour: "#840b55",
|
|
38
|
+
toc: "tfl",
|
|
32
39
|
},
|
|
33
40
|
northern: {
|
|
34
41
|
displayName: "Northern",
|
|
35
|
-
colour: "#000000"
|
|
42
|
+
colour: "#000000",
|
|
43
|
+
toc: "tfl",
|
|
36
44
|
},
|
|
37
45
|
piccadilly: {
|
|
38
46
|
displayName: "Piccadilly",
|
|
39
|
-
colour: "#10069f"
|
|
47
|
+
colour: "#10069f",
|
|
48
|
+
toc: "tfl",
|
|
40
49
|
},
|
|
41
50
|
victoria: {
|
|
42
51
|
displayName: "Victoria",
|
|
43
|
-
colour: "#00a3e0"
|
|
52
|
+
colour: "#00a3e0",
|
|
53
|
+
toc: "tfl",
|
|
44
54
|
},
|
|
45
55
|
waterlooAndCity: {
|
|
46
56
|
displayName: "Waterloo & City",
|
|
47
|
-
colour: "#6eceb2"
|
|
57
|
+
colour: "#6eceb2",
|
|
58
|
+
toc: "tfl",
|
|
48
59
|
},
|
|
49
60
|
// TfL services
|
|
50
61
|
elizabeth: {
|
|
51
62
|
displayName: "Elizabeth Line",
|
|
52
|
-
colour: "#6950a1"
|
|
63
|
+
colour: "#6950a1",
|
|
64
|
+
toc: "tfl",
|
|
53
65
|
},
|
|
54
66
|
dlr: {
|
|
55
67
|
displayName: "DLR",
|
|
56
|
-
colour: "#00afad"
|
|
68
|
+
colour: "#00afad",
|
|
69
|
+
toc: "tfl",
|
|
57
70
|
},
|
|
58
71
|
trams: {
|
|
59
72
|
displayName: "Trams",
|
|
60
|
-
colour: "#5fb526"
|
|
73
|
+
colour: "#5fb526",
|
|
74
|
+
toc: "tfl",
|
|
61
75
|
},
|
|
62
76
|
cableCar: {
|
|
63
77
|
displayName: "IFS Cloud Cable Car",
|
|
64
|
-
colour: "#734fa0"
|
|
78
|
+
colour: "#734fa0",
|
|
79
|
+
toc: "tfl",
|
|
65
80
|
},
|
|
66
81
|
// Overground lines
|
|
67
82
|
liberty: {
|
|
68
83
|
displayName: "Liberty Line",
|
|
69
|
-
colour: "#5d6061"
|
|
84
|
+
colour: "#5d6061",
|
|
85
|
+
toc: "tfl",
|
|
70
86
|
},
|
|
71
87
|
lioness: {
|
|
72
88
|
displayName: "Lioness Line",
|
|
73
|
-
colour: "#faa61a"
|
|
89
|
+
colour: "#faa61a",
|
|
90
|
+
toc: "tfl",
|
|
74
91
|
},
|
|
75
92
|
mildmay: {
|
|
76
93
|
displayName: "Mildmay Line",
|
|
77
|
-
colour: "#0077ad"
|
|
94
|
+
colour: "#0077ad",
|
|
95
|
+
toc: "tfl",
|
|
78
96
|
},
|
|
79
97
|
suffragette: {
|
|
80
98
|
displayName: "Suffragette Line",
|
|
81
|
-
colour: "#5bb972"
|
|
99
|
+
colour: "#5bb972",
|
|
100
|
+
toc: "tfl",
|
|
82
101
|
},
|
|
83
102
|
weaver: {
|
|
84
103
|
displayName: "Weaver Line",
|
|
85
|
-
colour: "#823a62"
|
|
104
|
+
colour: "#823a62",
|
|
105
|
+
toc: "tfl",
|
|
86
106
|
},
|
|
87
107
|
windrush: {
|
|
88
108
|
displayName: "Windrush Line",
|
|
89
|
-
colour: "#ed1b00"
|
|
109
|
+
colour: "#ed1b00",
|
|
110
|
+
toc: "tfl",
|
|
90
111
|
},
|
|
91
112
|
};
|
|
92
113
|
export const lineIds = Object.keys(Lines);
|