@tangledwires/uk-station-data 1.2.0 → 1.3.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/line.d.ts +130 -0
- package/dist/line.js +131 -1
- package/dist/toc.js +29 -28
- package/package.json +2 -2
package/dist/line.d.ts
CHANGED
|
@@ -116,11 +116,141 @@ export declare const Lines: {
|
|
|
116
116
|
readonly colour: "#ed1b00";
|
|
117
117
|
readonly toc: "tfl";
|
|
118
118
|
};
|
|
119
|
+
readonly avantiWestCoast: {
|
|
120
|
+
readonly displayName: "Avanti West Coast";
|
|
121
|
+
readonly colour: "#004354";
|
|
122
|
+
readonly toc: "avantiWestCoast";
|
|
123
|
+
};
|
|
124
|
+
readonly c2c: {
|
|
125
|
+
readonly displayName: "C2C";
|
|
126
|
+
readonly colour: "#b7007c";
|
|
127
|
+
readonly toc: "c2c";
|
|
128
|
+
};
|
|
129
|
+
readonly caledonianSleeper: {
|
|
130
|
+
readonly displayName: "Caledonian Sleeper";
|
|
131
|
+
readonly colour: "#1d2e35";
|
|
132
|
+
readonly toc: "caledonianSleeper";
|
|
133
|
+
};
|
|
134
|
+
readonly chiltern: {
|
|
135
|
+
readonly displayName: "Chiltern Railways";
|
|
136
|
+
readonly colour: "#00bfff";
|
|
137
|
+
readonly toc: "chiltern";
|
|
138
|
+
};
|
|
139
|
+
readonly crossCountry: {
|
|
140
|
+
readonly displayName: "Cross Country";
|
|
141
|
+
readonly colour: "#660f21";
|
|
142
|
+
readonly toc: "crossCountry";
|
|
143
|
+
};
|
|
144
|
+
readonly eastMidlandsRailway: {
|
|
145
|
+
readonly displayName: "East Midlands Railway";
|
|
146
|
+
readonly colour: "#713563";
|
|
147
|
+
readonly toc: "eastMidlandsRailway";
|
|
148
|
+
};
|
|
149
|
+
readonly gatwickExpress: {
|
|
150
|
+
readonly displayName: "Gatwick Express";
|
|
151
|
+
readonly colour: "#eb1e2d";
|
|
152
|
+
readonly toc: "gatwickExpress";
|
|
153
|
+
};
|
|
154
|
+
readonly grandCentral: {
|
|
155
|
+
readonly displayName: "Grand Central";
|
|
156
|
+
readonly colour: "#1d1d1b";
|
|
157
|
+
readonly toc: "grandCentral";
|
|
158
|
+
};
|
|
159
|
+
readonly greatNorthern: {
|
|
160
|
+
readonly displayName: "Great Northern";
|
|
161
|
+
readonly colour: "#00ABE6";
|
|
162
|
+
readonly toc: "greatNorthern";
|
|
163
|
+
};
|
|
164
|
+
readonly greatWesternRailway: {
|
|
165
|
+
readonly displayName: "Great Western Railway";
|
|
166
|
+
readonly colour: "#0a493e";
|
|
167
|
+
readonly toc: "greatWesternRailway";
|
|
168
|
+
};
|
|
169
|
+
readonly greaterAnglia: {
|
|
170
|
+
readonly displayName: "Greater Anglia";
|
|
171
|
+
readonly colour: "#d70428";
|
|
172
|
+
readonly toc: "greaterAnglia";
|
|
173
|
+
};
|
|
174
|
+
readonly heathrowExpress: {
|
|
175
|
+
readonly displayName: "Heathrow Express";
|
|
176
|
+
readonly colour: "#532e63";
|
|
177
|
+
readonly toc: "heathrowExpress";
|
|
178
|
+
};
|
|
179
|
+
readonly hullTrains: {
|
|
180
|
+
readonly displayName: "Hull Trains";
|
|
181
|
+
readonly colour: "#de005c";
|
|
182
|
+
readonly toc: "hullTrains";
|
|
183
|
+
};
|
|
184
|
+
readonly londonNorthEasternRailway: {
|
|
185
|
+
readonly displayName: "London North Eastern Railway";
|
|
186
|
+
readonly colour: "#ce0e2d";
|
|
187
|
+
readonly toc: "londonNorthEasternRailway";
|
|
188
|
+
};
|
|
189
|
+
readonly londonNorthwesternRailway: {
|
|
190
|
+
readonly displayName: "London Northwestern Railway";
|
|
191
|
+
readonly colour: "#00bf6f";
|
|
192
|
+
readonly toc: "londonNorthwesternRailway";
|
|
193
|
+
};
|
|
194
|
+
readonly lumo: {
|
|
195
|
+
readonly displayName: "Lumo";
|
|
196
|
+
readonly colour: "#2b6ef5";
|
|
197
|
+
readonly toc: "lumo";
|
|
198
|
+
};
|
|
199
|
+
readonly northernRail: {
|
|
200
|
+
readonly displayName: "Northern";
|
|
201
|
+
readonly colour: "#0f0d78";
|
|
202
|
+
readonly toc: "northernRail";
|
|
203
|
+
};
|
|
204
|
+
readonly scotRail: {
|
|
205
|
+
readonly displayName: "ScotRail";
|
|
206
|
+
readonly colour: "#1e467d";
|
|
207
|
+
readonly toc: "scotRail";
|
|
208
|
+
};
|
|
209
|
+
readonly southWesternRailway: {
|
|
210
|
+
readonly displayName: "South Western Railway";
|
|
211
|
+
readonly colour: "#24398c";
|
|
212
|
+
readonly toc: "southWesternRailway";
|
|
213
|
+
};
|
|
214
|
+
readonly southeastern: {
|
|
215
|
+
readonly displayName: "Southeastern";
|
|
216
|
+
readonly colour: "#389cff";
|
|
217
|
+
readonly toc: "southeastern";
|
|
218
|
+
};
|
|
219
|
+
readonly southeasternHighSpeed: {
|
|
220
|
+
readonly displayName: "Southeastern High Speed";
|
|
221
|
+
readonly colour: "#1e1e50";
|
|
222
|
+
readonly toc: "southeasternHighSpeed";
|
|
223
|
+
};
|
|
224
|
+
readonly southern: {
|
|
225
|
+
readonly displayName: "Southern";
|
|
226
|
+
readonly colour: "#8cc63e";
|
|
227
|
+
readonly toc: "southern";
|
|
228
|
+
};
|
|
229
|
+
readonly stanstedExpress: {
|
|
230
|
+
readonly displayName: "Stansted Express";
|
|
231
|
+
readonly colour: "#6b717a";
|
|
232
|
+
readonly toc: "stanstedExpress";
|
|
233
|
+
};
|
|
119
234
|
readonly thameslink: {
|
|
120
235
|
readonly displayName: "Thameslink";
|
|
121
236
|
readonly colour: "#ff5aa4";
|
|
122
237
|
readonly toc: "thameslink";
|
|
123
238
|
};
|
|
239
|
+
readonly transPennineExpress: {
|
|
240
|
+
readonly displayName: "TransPennine Express";
|
|
241
|
+
readonly colour: "#09a4ec";
|
|
242
|
+
readonly toc: "transPennineExpress";
|
|
243
|
+
};
|
|
244
|
+
readonly transportForWales: {
|
|
245
|
+
readonly displayName: "Transport for Wales";
|
|
246
|
+
readonly colour: "#ff0000";
|
|
247
|
+
readonly toc: "transportForWales";
|
|
248
|
+
};
|
|
249
|
+
readonly westMidlandsRailway: {
|
|
250
|
+
readonly displayName: "West Midlands Railway";
|
|
251
|
+
readonly colour: "#ff8300";
|
|
252
|
+
readonly toc: "westMidlandsRailway";
|
|
253
|
+
};
|
|
124
254
|
};
|
|
125
255
|
export type LineId = keyof typeof Lines;
|
|
126
256
|
export declare const lineIds: LineId[];
|
package/dist/line.js
CHANGED
|
@@ -111,10 +111,140 @@ export const Lines = {
|
|
|
111
111
|
toc: "tfl",
|
|
112
112
|
},
|
|
113
113
|
// Other TOCs
|
|
114
|
+
avantiWestCoast: {
|
|
115
|
+
displayName: TOCs.avantiWestCoast.displayName,
|
|
116
|
+
colour: TOCs.avantiWestCoast.colour,
|
|
117
|
+
toc: "avantiWestCoast",
|
|
118
|
+
},
|
|
119
|
+
c2c: {
|
|
120
|
+
displayName: TOCs.c2c.displayName,
|
|
121
|
+
colour: TOCs.c2c.colour,
|
|
122
|
+
toc: "c2c",
|
|
123
|
+
},
|
|
124
|
+
caledonianSleeper: {
|
|
125
|
+
displayName: TOCs.caledonianSleeper.displayName,
|
|
126
|
+
colour: TOCs.caledonianSleeper.colour,
|
|
127
|
+
toc: "caledonianSleeper",
|
|
128
|
+
},
|
|
129
|
+
chiltern: {
|
|
130
|
+
displayName: "Chiltern Railways",
|
|
131
|
+
colour: TOCs.chiltern.colour,
|
|
132
|
+
toc: "chiltern",
|
|
133
|
+
},
|
|
134
|
+
crossCountry: {
|
|
135
|
+
displayName: TOCs.crossCountry.displayName,
|
|
136
|
+
colour: TOCs.crossCountry.colour,
|
|
137
|
+
toc: "crossCountry",
|
|
138
|
+
},
|
|
139
|
+
eastMidlandsRailway: {
|
|
140
|
+
displayName: TOCs.eastMidlandsRailway.displayName,
|
|
141
|
+
colour: TOCs.eastMidlandsRailway.colour,
|
|
142
|
+
toc: "eastMidlandsRailway",
|
|
143
|
+
},
|
|
144
|
+
gatwickExpress: {
|
|
145
|
+
displayName: TOCs.gatwickExpress.displayName,
|
|
146
|
+
colour: TOCs.gatwickExpress.colour,
|
|
147
|
+
toc: "gatwickExpress",
|
|
148
|
+
},
|
|
149
|
+
grandCentral: {
|
|
150
|
+
displayName: TOCs.grandCentral.displayName,
|
|
151
|
+
colour: TOCs.grandCentral.colour,
|
|
152
|
+
toc: "grandCentral",
|
|
153
|
+
},
|
|
154
|
+
greatNorthern: {
|
|
155
|
+
displayName: TOCs.greatNorthern.displayName,
|
|
156
|
+
colour: TOCs.greatNorthern.colour,
|
|
157
|
+
toc: "greatNorthern",
|
|
158
|
+
},
|
|
159
|
+
greatWesternRailway: {
|
|
160
|
+
displayName: TOCs.greatWesternRailway.displayName,
|
|
161
|
+
colour: TOCs.greatWesternRailway.colour,
|
|
162
|
+
toc: "greatWesternRailway",
|
|
163
|
+
},
|
|
164
|
+
greaterAnglia: {
|
|
165
|
+
displayName: TOCs.greaterAnglia.displayName,
|
|
166
|
+
colour: TOCs.greaterAnglia.colour,
|
|
167
|
+
toc: "greaterAnglia",
|
|
168
|
+
},
|
|
169
|
+
heathrowExpress: {
|
|
170
|
+
displayName: TOCs.heathrowExpress.displayName,
|
|
171
|
+
colour: TOCs.heathrowExpress.colour,
|
|
172
|
+
toc: "heathrowExpress",
|
|
173
|
+
},
|
|
174
|
+
hullTrains: {
|
|
175
|
+
displayName: TOCs.hullTrains.displayName,
|
|
176
|
+
colour: TOCs.hullTrains.colour,
|
|
177
|
+
toc: "hullTrains",
|
|
178
|
+
},
|
|
179
|
+
londonNorthEasternRailway: {
|
|
180
|
+
displayName: TOCs.londonNorthEasternRailway.displayName,
|
|
181
|
+
colour: TOCs.londonNorthEasternRailway.colour,
|
|
182
|
+
toc: "londonNorthEasternRailway",
|
|
183
|
+
},
|
|
184
|
+
londonNorthwesternRailway: {
|
|
185
|
+
displayName: TOCs.londonNorthwesternRailway.displayName,
|
|
186
|
+
colour: TOCs.londonNorthwesternRailway.colour,
|
|
187
|
+
toc: "londonNorthwesternRailway",
|
|
188
|
+
},
|
|
189
|
+
lumo: {
|
|
190
|
+
displayName: TOCs.lumo.displayName,
|
|
191
|
+
colour: TOCs.lumo.colour,
|
|
192
|
+
toc: "lumo",
|
|
193
|
+
},
|
|
194
|
+
northernRail: {
|
|
195
|
+
displayName: TOCs.northernRail.displayName,
|
|
196
|
+
colour: TOCs.northernRail.colour,
|
|
197
|
+
toc: "northernRail",
|
|
198
|
+
},
|
|
199
|
+
scotRail: {
|
|
200
|
+
displayName: TOCs.scotRail.displayName,
|
|
201
|
+
colour: TOCs.scotRail.colour,
|
|
202
|
+
toc: "scotRail",
|
|
203
|
+
},
|
|
204
|
+
southWesternRailway: {
|
|
205
|
+
displayName: TOCs.southWesternRailway.displayName,
|
|
206
|
+
colour: TOCs.southWesternRailway.colour,
|
|
207
|
+
toc: "southWesternRailway",
|
|
208
|
+
},
|
|
209
|
+
southeastern: {
|
|
210
|
+
displayName: TOCs.southeastern.displayName,
|
|
211
|
+
colour: TOCs.southeastern.colour,
|
|
212
|
+
toc: "southeastern",
|
|
213
|
+
},
|
|
214
|
+
southeasternHighSpeed: {
|
|
215
|
+
displayName: TOCs.southeasternHighSpeed.displayName,
|
|
216
|
+
colour: TOCs.southeasternHighSpeed.colour,
|
|
217
|
+
toc: "southeasternHighSpeed",
|
|
218
|
+
},
|
|
219
|
+
southern: {
|
|
220
|
+
displayName: TOCs.southern.displayName,
|
|
221
|
+
colour: TOCs.southern.colour,
|
|
222
|
+
toc: "southern",
|
|
223
|
+
},
|
|
224
|
+
stanstedExpress: {
|
|
225
|
+
displayName: TOCs.stanstedExpress.displayName,
|
|
226
|
+
colour: TOCs.stanstedExpress.colour,
|
|
227
|
+
toc: "stanstedExpress",
|
|
228
|
+
},
|
|
114
229
|
thameslink: {
|
|
115
230
|
displayName: TOCs.thameslink.displayName,
|
|
116
231
|
colour: TOCs.thameslink.colour,
|
|
117
|
-
toc: "thameslink"
|
|
232
|
+
toc: "thameslink",
|
|
233
|
+
},
|
|
234
|
+
transPennineExpress: {
|
|
235
|
+
displayName: TOCs.transPennineExpress.displayName,
|
|
236
|
+
colour: TOCs.transPennineExpress.colour,
|
|
237
|
+
toc: "transPennineExpress",
|
|
238
|
+
},
|
|
239
|
+
transportForWales: {
|
|
240
|
+
displayName: TOCs.transportForWales.displayName,
|
|
241
|
+
colour: TOCs.transportForWales.colour,
|
|
242
|
+
toc: "transportForWales",
|
|
243
|
+
},
|
|
244
|
+
westMidlandsRailway: {
|
|
245
|
+
displayName: TOCs.westMidlandsRailway.displayName,
|
|
246
|
+
colour: TOCs.westMidlandsRailway.colour,
|
|
247
|
+
toc: "westMidlandsRailway",
|
|
118
248
|
},
|
|
119
249
|
};
|
|
120
250
|
export const lineIds = Object.keys(Lines);
|
package/dist/toc.js
CHANGED
|
@@ -1,115 +1,116 @@
|
|
|
1
1
|
export const TOCs = {
|
|
2
2
|
avantiWestCoast: {
|
|
3
3
|
displayName: "Avanti West Coast",
|
|
4
|
-
colour: "#004354"
|
|
4
|
+
colour: "#004354",
|
|
5
5
|
},
|
|
6
6
|
c2c: {
|
|
7
7
|
displayName: "C2C",
|
|
8
|
-
colour: "#b7007c"
|
|
8
|
+
colour: "#b7007c",
|
|
9
9
|
},
|
|
10
10
|
caledonianSleeper: {
|
|
11
11
|
displayName: "Caledonian Sleeper",
|
|
12
|
-
colour: "#1d2e35"
|
|
12
|
+
colour: "#1d2e35",
|
|
13
13
|
},
|
|
14
14
|
chiltern: {
|
|
15
15
|
displayName: "Chiltern Railways",
|
|
16
|
-
colour: "#00bfff"
|
|
16
|
+
colour: "#00bfff",
|
|
17
17
|
},
|
|
18
18
|
crossCountry: {
|
|
19
19
|
displayName: "Cross Country",
|
|
20
|
-
colour: "#660f21"
|
|
20
|
+
colour: "#660f21",
|
|
21
21
|
},
|
|
22
22
|
eastMidlandsRailway: {
|
|
23
23
|
displayName: "East Midlands Railway",
|
|
24
|
-
colour: "#713563"
|
|
24
|
+
colour: "#713563",
|
|
25
25
|
},
|
|
26
26
|
gatwickExpress: {
|
|
27
27
|
displayName: "Gatwick Express",
|
|
28
|
-
colour: "#eb1e2d"
|
|
28
|
+
colour: "#eb1e2d",
|
|
29
29
|
},
|
|
30
30
|
grandCentral: {
|
|
31
31
|
displayName: "Grand Central",
|
|
32
|
-
colour: "#1d1d1b"
|
|
32
|
+
colour: "#1d1d1b",
|
|
33
33
|
},
|
|
34
34
|
greatNorthern: {
|
|
35
35
|
displayName: "Great Northern",
|
|
36
|
-
colour: "#00ABE6"
|
|
36
|
+
colour: "#00ABE6",
|
|
37
37
|
},
|
|
38
38
|
greatWesternRailway: {
|
|
39
39
|
displayName: "Great Western Railway",
|
|
40
|
-
colour: "#0a493e"
|
|
40
|
+
colour: "#0a493e",
|
|
41
41
|
},
|
|
42
42
|
greaterAnglia: {
|
|
43
43
|
displayName: "Greater Anglia",
|
|
44
|
-
colour: "#d70428"
|
|
44
|
+
colour: "#d70428",
|
|
45
45
|
},
|
|
46
46
|
heathrowExpress: {
|
|
47
47
|
displayName: "Heathrow Express",
|
|
48
|
-
colour: "#532e63"
|
|
48
|
+
colour: "#532e63",
|
|
49
49
|
},
|
|
50
50
|
hullTrains: {
|
|
51
51
|
displayName: "Hull Trains",
|
|
52
|
-
colour: "#de005c"
|
|
52
|
+
colour: "#de005c",
|
|
53
53
|
},
|
|
54
54
|
londonNorthEasternRailway: {
|
|
55
55
|
displayName: "London North Eastern Railway",
|
|
56
|
-
colour: "#ce0e2d"
|
|
56
|
+
colour: "#ce0e2d",
|
|
57
57
|
},
|
|
58
58
|
londonNorthwesternRailway: {
|
|
59
59
|
displayName: "London Northwestern Railway",
|
|
60
|
-
colour: "#00bf6f"
|
|
60
|
+
colour: "#00bf6f",
|
|
61
61
|
},
|
|
62
62
|
lumo: {
|
|
63
63
|
displayName: "Lumo",
|
|
64
|
-
colour: "#2b6ef5"
|
|
64
|
+
colour: "#2b6ef5",
|
|
65
65
|
},
|
|
66
66
|
northernRail: {
|
|
67
67
|
displayName: "Northern",
|
|
68
|
-
colour: "#0f0d78"
|
|
68
|
+
colour: "#0f0d78",
|
|
69
69
|
},
|
|
70
70
|
scotRail: {
|
|
71
71
|
displayName: "ScotRail",
|
|
72
|
-
colour: "#1e467d"
|
|
72
|
+
colour: "#1e467d",
|
|
73
73
|
},
|
|
74
74
|
southWesternRailway: {
|
|
75
75
|
displayName: "South Western Railway",
|
|
76
|
-
colour: "#24398c"
|
|
76
|
+
colour: "#24398c",
|
|
77
77
|
},
|
|
78
78
|
southeastern: {
|
|
79
79
|
displayName: "Southeastern",
|
|
80
|
-
colour: "#389cff"
|
|
80
|
+
colour: "#389cff",
|
|
81
81
|
},
|
|
82
82
|
southeasternHighSpeed: {
|
|
83
83
|
displayName: "Southeastern High Speed",
|
|
84
|
-
colour: "#1e1e50"
|
|
84
|
+
colour: "#1e1e50",
|
|
85
85
|
},
|
|
86
86
|
southern: {
|
|
87
87
|
displayName: "Southern",
|
|
88
|
-
colour: "#8cc63e"
|
|
88
|
+
colour: "#8cc63e",
|
|
89
89
|
},
|
|
90
90
|
stanstedExpress: {
|
|
91
91
|
displayName: "Stansted Express",
|
|
92
|
-
colour: "#6b717a"
|
|
92
|
+
colour: "#6b717a",
|
|
93
93
|
},
|
|
94
|
+
// Not really a TOC, but it's easier to understand this way
|
|
94
95
|
tfl: {
|
|
95
96
|
displayName: "TfL",
|
|
96
97
|
colour: "#0019a8",
|
|
97
98
|
},
|
|
98
99
|
thameslink: {
|
|
99
100
|
displayName: "Thameslink",
|
|
100
|
-
colour: "#ff5aa4"
|
|
101
|
+
colour: "#ff5aa4",
|
|
101
102
|
},
|
|
102
103
|
transPennineExpress: {
|
|
103
104
|
displayName: "TransPennine Express",
|
|
104
|
-
colour: "#09a4ec"
|
|
105
|
+
colour: "#09a4ec",
|
|
105
106
|
},
|
|
106
107
|
transportForWales: {
|
|
107
108
|
displayName: "Transport for Wales",
|
|
108
|
-
colour: "#ff0000"
|
|
109
|
+
colour: "#ff0000",
|
|
109
110
|
},
|
|
110
111
|
westMidlandsRailway: {
|
|
111
112
|
displayName: "West Midlands Railway",
|
|
112
|
-
colour: "#ff8300"
|
|
113
|
-
}
|
|
113
|
+
colour: "#ff8300",
|
|
114
|
+
},
|
|
114
115
|
};
|
|
115
116
|
export const tocIds = Object.keys(TOCs);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangledwires/uk-station-data",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "TangledWires",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
|
|
18
18
|
"scripts": {
|
|
19
|
-
"
|
|
19
|
+
"build": "tsc"
|
|
20
20
|
},
|
|
21
21
|
|
|
22
22
|
"devDependencies": {
|