@tangledwires/uk-station-data 3.1.0 → 5.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.
- package/LICENSE +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/line.d.ts +79 -55
- package/dist/line.js +70 -54
- package/dist/station.d.ts +1370 -110
- package/dist/station.js +391 -76
- package/dist/toc.d.ts +8 -0
- package/dist/toc.js +8 -0
- package/package.json +1 -1
package/dist/line.js
CHANGED
|
@@ -7,250 +7,266 @@ export const Lines = {
|
|
|
7
7
|
bakerloo: {
|
|
8
8
|
displayName: "Bakerloo Line",
|
|
9
9
|
colour: "#a45a2a",
|
|
10
|
-
|
|
10
|
+
tocs: ["tfl"],
|
|
11
11
|
},
|
|
12
12
|
central: {
|
|
13
13
|
displayName: "Central Line",
|
|
14
14
|
colour: "#da291c",
|
|
15
|
-
|
|
15
|
+
tocs: ["tfl"],
|
|
16
16
|
},
|
|
17
17
|
circle: {
|
|
18
18
|
displayName: "Circle Line",
|
|
19
19
|
colour: "#ffcd00",
|
|
20
|
-
|
|
20
|
+
tocs: ["tfl"],
|
|
21
21
|
},
|
|
22
22
|
district: {
|
|
23
23
|
displayName: "District Line",
|
|
24
24
|
colour: "#007a33",
|
|
25
|
-
|
|
25
|
+
tocs: ["tfl"],
|
|
26
26
|
},
|
|
27
27
|
hammersmithAndCity: {
|
|
28
28
|
displayName: "Hammersmith & City Line",
|
|
29
29
|
colour: "#e89cae",
|
|
30
|
-
|
|
30
|
+
tocs: ["tfl"],
|
|
31
31
|
},
|
|
32
32
|
jubilee: {
|
|
33
33
|
displayName: "Jubilee Line",
|
|
34
34
|
colour: "#7c878e",
|
|
35
|
-
|
|
35
|
+
tocs: ["tfl"],
|
|
36
36
|
},
|
|
37
37
|
metropolitan: {
|
|
38
38
|
displayName: "Metropolitan Line",
|
|
39
39
|
colour: "#840b55",
|
|
40
|
-
|
|
40
|
+
tocs: ["tfl"],
|
|
41
41
|
},
|
|
42
42
|
northern: {
|
|
43
43
|
displayName: "Northern Line",
|
|
44
44
|
colour: "#000000",
|
|
45
|
-
|
|
45
|
+
tocs: ["tfl"],
|
|
46
46
|
},
|
|
47
47
|
piccadilly: {
|
|
48
48
|
displayName: "Piccadilly Line",
|
|
49
49
|
colour: "#10069f",
|
|
50
|
-
|
|
50
|
+
tocs: ["tfl"],
|
|
51
51
|
},
|
|
52
52
|
victoria: {
|
|
53
53
|
displayName: "Victoria Line",
|
|
54
54
|
colour: "#00a3e0",
|
|
55
|
-
|
|
55
|
+
tocs: ["tfl"],
|
|
56
56
|
},
|
|
57
57
|
waterlooAndCity: {
|
|
58
58
|
displayName: "Waterloo & City Line",
|
|
59
59
|
colour: "#6eceb2",
|
|
60
|
-
|
|
60
|
+
tocs: ["tfl"],
|
|
61
61
|
},
|
|
62
62
|
// Other TfL services
|
|
63
63
|
elizabeth: {
|
|
64
64
|
displayName: "Elizabeth Line",
|
|
65
65
|
colour: "#6950a1",
|
|
66
|
-
|
|
66
|
+
tocs: ["tfl"],
|
|
67
67
|
},
|
|
68
68
|
dlr: {
|
|
69
69
|
displayName: "DLR",
|
|
70
70
|
colour: "#00afad",
|
|
71
|
-
|
|
71
|
+
tocs: ["tfl"],
|
|
72
72
|
},
|
|
73
|
-
|
|
73
|
+
londonTrams: {
|
|
74
74
|
displayName: "London Trams",
|
|
75
75
|
colour: "#5fb526",
|
|
76
|
-
|
|
76
|
+
tocs: ["tfl"],
|
|
77
77
|
},
|
|
78
78
|
cableCar: {
|
|
79
79
|
displayName: "IFS Cloud Cable Car",
|
|
80
80
|
colour: "#734fa0",
|
|
81
|
-
|
|
81
|
+
tocs: ["tfl"],
|
|
82
82
|
},
|
|
83
83
|
// London Overground lines
|
|
84
84
|
liberty: {
|
|
85
85
|
displayName: "Liberty Line",
|
|
86
86
|
colour: "#5d6061",
|
|
87
|
-
|
|
87
|
+
tocs: ["londonOverground"],
|
|
88
88
|
},
|
|
89
89
|
lioness: {
|
|
90
90
|
displayName: "Lioness Line",
|
|
91
91
|
colour: "#faa61a",
|
|
92
|
-
|
|
92
|
+
tocs: ["londonOverground"],
|
|
93
93
|
},
|
|
94
94
|
mildmay: {
|
|
95
95
|
displayName: "Mildmay Line",
|
|
96
96
|
colour: "#0077ad",
|
|
97
|
-
|
|
97
|
+
tocs: ["londonOverground"],
|
|
98
98
|
},
|
|
99
99
|
suffragette: {
|
|
100
100
|
displayName: "Suffragette Line",
|
|
101
101
|
colour: "#5bb972",
|
|
102
|
-
|
|
102
|
+
tocs: ["londonOverground"],
|
|
103
103
|
},
|
|
104
104
|
weaver: {
|
|
105
105
|
displayName: "Weaver Line",
|
|
106
106
|
colour: "#823a62",
|
|
107
|
-
|
|
107
|
+
tocs: ["londonOverground"],
|
|
108
108
|
},
|
|
109
109
|
windrush: {
|
|
110
110
|
displayName: "Windrush Line",
|
|
111
111
|
colour: "#ed1b00",
|
|
112
|
-
|
|
112
|
+
tocs: ["londonOverground"],
|
|
113
113
|
},
|
|
114
114
|
// Other TOCs
|
|
115
115
|
avantiWestCoast: {
|
|
116
116
|
displayName: TOCs.avantiWestCoast.displayName,
|
|
117
117
|
colour: TOCs.avantiWestCoast.colour,
|
|
118
|
-
|
|
118
|
+
tocs: ["avantiWestCoast"],
|
|
119
119
|
},
|
|
120
120
|
c2c: {
|
|
121
121
|
displayName: TOCs.c2c.displayName,
|
|
122
122
|
colour: TOCs.c2c.colour,
|
|
123
|
-
|
|
123
|
+
tocs: ["c2c"],
|
|
124
124
|
},
|
|
125
|
-
|
|
126
|
-
displayName:
|
|
127
|
-
colour:
|
|
128
|
-
|
|
125
|
+
csLowlander: {
|
|
126
|
+
displayName: "Lowlander Sleeper",
|
|
127
|
+
colour: "#b26734",
|
|
128
|
+
tocs: ["caledonianSleeper"],
|
|
129
|
+
},
|
|
130
|
+
csHighlander: {
|
|
131
|
+
displayName: "Highlander Sleeper",
|
|
132
|
+
colour: "#006984",
|
|
133
|
+
tocs: ["caledonianSleeper"],
|
|
129
134
|
},
|
|
130
135
|
chiltern: {
|
|
131
136
|
displayName: "Chiltern Railways",
|
|
132
137
|
colour: TOCs.chiltern.colour,
|
|
133
|
-
|
|
138
|
+
tocs: ["chiltern"],
|
|
134
139
|
},
|
|
135
140
|
crossCountry: {
|
|
136
141
|
displayName: TOCs.crossCountry.displayName,
|
|
137
142
|
colour: TOCs.crossCountry.colour,
|
|
138
|
-
|
|
143
|
+
tocs: ["crossCountry"],
|
|
139
144
|
},
|
|
140
145
|
eastMidlandsRailway: {
|
|
141
146
|
displayName: TOCs.eastMidlandsRailway.displayName,
|
|
142
147
|
colour: TOCs.eastMidlandsRailway.colour,
|
|
143
|
-
|
|
148
|
+
tocs: ["eastMidlandsRailway"],
|
|
144
149
|
},
|
|
145
150
|
gatwickExpress: {
|
|
146
151
|
displayName: "Gatwick Express",
|
|
147
152
|
colour: "#eb1e2d",
|
|
148
|
-
|
|
153
|
+
tocs: ["goviaThameslinkRailway"],
|
|
149
154
|
},
|
|
150
155
|
grandCentral: {
|
|
151
156
|
displayName: TOCs.grandCentral.displayName,
|
|
152
157
|
colour: TOCs.grandCentral.colour,
|
|
153
|
-
|
|
158
|
+
tocs: ["grandCentral"],
|
|
154
159
|
},
|
|
155
160
|
greatNorthern: {
|
|
156
161
|
displayName: "Great Northern",
|
|
157
162
|
colour: "#00ABE6",
|
|
158
|
-
|
|
163
|
+
tocs: ["goviaThameslinkRailway"],
|
|
159
164
|
},
|
|
160
165
|
greatWesternRailway: {
|
|
161
166
|
displayName: TOCs.greatWesternRailway.displayName,
|
|
162
167
|
colour: TOCs.greatWesternRailway.colour,
|
|
163
|
-
|
|
168
|
+
tocs: ["greatWesternRailway"],
|
|
164
169
|
},
|
|
165
170
|
greaterAnglia: {
|
|
166
171
|
displayName: TOCs.greaterAnglia.displayName,
|
|
167
172
|
colour: TOCs.greaterAnglia.colour,
|
|
168
|
-
|
|
173
|
+
tocs: ["greaterAnglia"],
|
|
169
174
|
},
|
|
170
175
|
heathrowExpress: {
|
|
171
176
|
displayName: TOCs.heathrowExpress.displayName,
|
|
172
177
|
colour: TOCs.heathrowExpress.colour,
|
|
173
|
-
|
|
178
|
+
tocs: ["heathrowExpress"],
|
|
174
179
|
},
|
|
175
180
|
hullTrains: {
|
|
176
181
|
displayName: TOCs.hullTrains.displayName,
|
|
177
182
|
colour: TOCs.hullTrains.colour,
|
|
178
|
-
|
|
183
|
+
tocs: ["hullTrains"],
|
|
179
184
|
},
|
|
180
185
|
islandLineTrains: {
|
|
181
186
|
displayName: "Island Line",
|
|
182
187
|
colour: "#1e90ff",
|
|
183
|
-
|
|
188
|
+
tocs: ["southWesternRailway"],
|
|
184
189
|
},
|
|
185
190
|
londonNorthEasternRailway: {
|
|
186
191
|
displayName: TOCs.londonNorthEasternRailway.displayName,
|
|
187
192
|
colour: TOCs.londonNorthEasternRailway.colour,
|
|
188
|
-
|
|
193
|
+
tocs: ["londonNorthEasternRailway"],
|
|
189
194
|
},
|
|
190
195
|
londonNorthwesternRailway: {
|
|
191
196
|
displayName: "London Northwestern Railway",
|
|
192
197
|
colour: "#00bf6f",
|
|
193
|
-
|
|
198
|
+
tocs: ["westMidlandsTrains"],
|
|
194
199
|
},
|
|
195
200
|
lumo: {
|
|
196
201
|
displayName: TOCs.lumo.displayName,
|
|
197
202
|
colour: TOCs.lumo.colour,
|
|
198
|
-
|
|
203
|
+
tocs: ["lumo"],
|
|
199
204
|
},
|
|
200
205
|
northernTrains: {
|
|
201
206
|
displayName: TOCs.northernTrains.displayName,
|
|
202
207
|
colour: TOCs.northernTrains.colour,
|
|
203
|
-
|
|
208
|
+
tocs: ["northernTrains"],
|
|
204
209
|
},
|
|
205
210
|
scotRail: {
|
|
206
211
|
displayName: TOCs.scotRail.displayName,
|
|
207
212
|
colour: TOCs.scotRail.colour,
|
|
208
|
-
|
|
213
|
+
tocs: ["scotRail"],
|
|
209
214
|
},
|
|
210
215
|
southWesternRailway: {
|
|
211
216
|
displayName: TOCs.southWesternRailway.displayName,
|
|
212
217
|
colour: TOCs.southWesternRailway.colour,
|
|
213
|
-
|
|
218
|
+
tocs: ["southWesternRailway"],
|
|
214
219
|
},
|
|
215
220
|
southeastern: {
|
|
216
221
|
displayName: TOCs.southeastern.displayName,
|
|
217
222
|
colour: TOCs.southeastern.colour,
|
|
218
|
-
|
|
223
|
+
tocs: ["southeastern"],
|
|
219
224
|
},
|
|
220
225
|
southeasternHighSpeed: {
|
|
221
226
|
displayName: "Southeastern High Speed",
|
|
222
227
|
colour: "#1e1e50",
|
|
223
|
-
|
|
228
|
+
tocs: ["southeastern"],
|
|
224
229
|
},
|
|
225
230
|
southern: {
|
|
226
231
|
displayName: "Southern",
|
|
227
232
|
colour: "#8cc63e",
|
|
228
|
-
|
|
233
|
+
tocs: ["goviaThameslinkRailway"],
|
|
229
234
|
},
|
|
230
235
|
stanstedExpress: {
|
|
231
236
|
displayName: "Stansted Express",
|
|
232
237
|
colour: "#6b717a",
|
|
233
|
-
|
|
238
|
+
tocs: ["greaterAnglia"],
|
|
234
239
|
},
|
|
235
240
|
thameslink: {
|
|
236
241
|
displayName: "Thameslink",
|
|
237
242
|
colour: "#ff5aa4",
|
|
238
|
-
|
|
243
|
+
tocs: ["goviaThameslinkRailway"],
|
|
239
244
|
},
|
|
240
245
|
transPennineExpress: {
|
|
241
246
|
displayName: TOCs.transPennineExpress.displayName,
|
|
242
247
|
colour: TOCs.transPennineExpress.colour,
|
|
243
|
-
|
|
248
|
+
tocs: ["transPennineExpress"],
|
|
244
249
|
},
|
|
245
250
|
transportForWales: {
|
|
246
251
|
displayName: TOCs.transportForWales.displayName,
|
|
247
252
|
colour: TOCs.transportForWales.colour,
|
|
248
|
-
|
|
253
|
+
tocs: ["transportForWales"],
|
|
249
254
|
},
|
|
250
255
|
westMidlandsRailway: {
|
|
251
|
-
displayName: "
|
|
256
|
+
displayName: "West Midlands Railway",
|
|
252
257
|
colour: "#ff8300",
|
|
253
|
-
|
|
258
|
+
tocs: ["westMidlandsTrains"],
|
|
259
|
+
},
|
|
260
|
+
// other metro systems
|
|
261
|
+
edinburghTrams: {
|
|
262
|
+
displayName: TOCs.edinburghTrams.displayName,
|
|
263
|
+
colour: TOCs.edinburghTrams.colour,
|
|
264
|
+
tocs: ["edinburghTrams"],
|
|
265
|
+
},
|
|
266
|
+
glasgowSubway: {
|
|
267
|
+
displayName: "Glasgow Subway",
|
|
268
|
+
colour: "#FF6200",
|
|
269
|
+
tocs: ["glasgowSubway"],
|
|
254
270
|
},
|
|
255
271
|
};
|
|
256
272
|
export const lineIds = Object.keys(Lines);
|