@tangledwires/uk-station-data 4.0.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 CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2026 TangledWires
1
+ Copyright 2026 TangledWires Ltd
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
4
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from "./line";
2
2
  export * from "./station";
3
3
  export * from "./toc";
4
- export declare const VERSION = "4.0.0";
4
+ export declare const VERSION = "5.0.0";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from "./line";
2
2
  export * from "./station";
3
3
  export * from "./toc";
4
- export const VERSION = "4.0.0";
4
+ export const VERSION = "5.0.0";
package/dist/line.d.ts CHANGED
@@ -3,9 +3,18 @@ import { TOCId } from "./toc";
3
3
  * A train line
4
4
  */
5
5
  export type Line = {
6
+ /**
7
+ * The display name of this line
8
+ */
6
9
  displayName: string;
10
+ /**
11
+ * The brand colour of this line
12
+ */
7
13
  colour: string;
8
- toc: TOCId;
14
+ /**
15
+ * A list of {@link TOC}s that operate this line
16
+ */
17
+ tocs: TOCId[];
9
18
  };
10
19
  /**
11
20
  * A list of all {@link Line}s
@@ -14,257 +23,262 @@ export declare const Lines: {
14
23
  readonly bakerloo: {
15
24
  readonly displayName: "Bakerloo Line";
16
25
  readonly colour: "#a45a2a";
17
- readonly toc: "tfl";
26
+ readonly tocs: ["tfl"];
18
27
  };
19
28
  readonly central: {
20
29
  readonly displayName: "Central Line";
21
30
  readonly colour: "#da291c";
22
- readonly toc: "tfl";
31
+ readonly tocs: ["tfl"];
23
32
  };
24
33
  readonly circle: {
25
34
  readonly displayName: "Circle Line";
26
35
  readonly colour: "#ffcd00";
27
- readonly toc: "tfl";
36
+ readonly tocs: ["tfl"];
28
37
  };
29
38
  readonly district: {
30
39
  readonly displayName: "District Line";
31
40
  readonly colour: "#007a33";
32
- readonly toc: "tfl";
41
+ readonly tocs: ["tfl"];
33
42
  };
34
43
  readonly hammersmithAndCity: {
35
44
  readonly displayName: "Hammersmith & City Line";
36
45
  readonly colour: "#e89cae";
37
- readonly toc: "tfl";
46
+ readonly tocs: ["tfl"];
38
47
  };
39
48
  readonly jubilee: {
40
49
  readonly displayName: "Jubilee Line";
41
50
  readonly colour: "#7c878e";
42
- readonly toc: "tfl";
51
+ readonly tocs: ["tfl"];
43
52
  };
44
53
  readonly metropolitan: {
45
54
  readonly displayName: "Metropolitan Line";
46
55
  readonly colour: "#840b55";
47
- readonly toc: "tfl";
56
+ readonly tocs: ["tfl"];
48
57
  };
49
58
  readonly northern: {
50
59
  readonly displayName: "Northern Line";
51
60
  readonly colour: "#000000";
52
- readonly toc: "tfl";
61
+ readonly tocs: ["tfl"];
53
62
  };
54
63
  readonly piccadilly: {
55
64
  readonly displayName: "Piccadilly Line";
56
65
  readonly colour: "#10069f";
57
- readonly toc: "tfl";
66
+ readonly tocs: ["tfl"];
58
67
  };
59
68
  readonly victoria: {
60
69
  readonly displayName: "Victoria Line";
61
70
  readonly colour: "#00a3e0";
62
- readonly toc: "tfl";
71
+ readonly tocs: ["tfl"];
63
72
  };
64
73
  readonly waterlooAndCity: {
65
74
  readonly displayName: "Waterloo & City Line";
66
75
  readonly colour: "#6eceb2";
67
- readonly toc: "tfl";
76
+ readonly tocs: ["tfl"];
68
77
  };
69
78
  readonly elizabeth: {
70
79
  readonly displayName: "Elizabeth Line";
71
80
  readonly colour: "#6950a1";
72
- readonly toc: "tfl";
81
+ readonly tocs: ["tfl"];
73
82
  };
74
83
  readonly dlr: {
75
84
  readonly displayName: "DLR";
76
85
  readonly colour: "#00afad";
77
- readonly toc: "tfl";
86
+ readonly tocs: ["tfl"];
78
87
  };
79
- readonly trams: {
88
+ readonly londonTrams: {
80
89
  readonly displayName: "London Trams";
81
90
  readonly colour: "#5fb526";
82
- readonly toc: "tfl";
91
+ readonly tocs: ["tfl"];
83
92
  };
84
93
  readonly cableCar: {
85
94
  readonly displayName: "IFS Cloud Cable Car";
86
95
  readonly colour: "#734fa0";
87
- readonly toc: "tfl";
96
+ readonly tocs: ["tfl"];
88
97
  };
89
98
  readonly liberty: {
90
99
  readonly displayName: "Liberty Line";
91
100
  readonly colour: "#5d6061";
92
- readonly toc: "londonOverground";
101
+ readonly tocs: ["londonOverground"];
93
102
  };
94
103
  readonly lioness: {
95
104
  readonly displayName: "Lioness Line";
96
105
  readonly colour: "#faa61a";
97
- readonly toc: "londonOverground";
106
+ readonly tocs: ["londonOverground"];
98
107
  };
99
108
  readonly mildmay: {
100
109
  readonly displayName: "Mildmay Line";
101
110
  readonly colour: "#0077ad";
102
- readonly toc: "londonOverground";
111
+ readonly tocs: ["londonOverground"];
103
112
  };
104
113
  readonly suffragette: {
105
114
  readonly displayName: "Suffragette Line";
106
115
  readonly colour: "#5bb972";
107
- readonly toc: "londonOverground";
116
+ readonly tocs: ["londonOverground"];
108
117
  };
109
118
  readonly weaver: {
110
119
  readonly displayName: "Weaver Line";
111
120
  readonly colour: "#823a62";
112
- readonly toc: "londonOverground";
121
+ readonly tocs: ["londonOverground"];
113
122
  };
114
123
  readonly windrush: {
115
124
  readonly displayName: "Windrush Line";
116
125
  readonly colour: "#ed1b00";
117
- readonly toc: "londonOverground";
126
+ readonly tocs: ["londonOverground"];
118
127
  };
119
128
  readonly avantiWestCoast: {
120
129
  readonly displayName: "Avanti West Coast";
121
130
  readonly colour: "#004354";
122
- readonly toc: "avantiWestCoast";
131
+ readonly tocs: ["avantiWestCoast"];
123
132
  };
124
133
  readonly c2c: {
125
134
  readonly displayName: "C2C";
126
135
  readonly colour: "#b7007c";
127
- readonly toc: "c2c";
136
+ readonly tocs: ["c2c"];
128
137
  };
129
138
  readonly csLowlander: {
130
139
  readonly displayName: "Lowlander Sleeper";
131
140
  readonly colour: "#b26734";
132
- readonly toc: "caledonianSleeper";
141
+ readonly tocs: ["caledonianSleeper"];
133
142
  };
134
143
  readonly csHighlander: {
135
144
  readonly displayName: "Highlander Sleeper";
136
145
  readonly colour: "#006984";
137
- readonly toc: "caledonianSleeper";
146
+ readonly tocs: ["caledonianSleeper"];
138
147
  };
139
148
  readonly chiltern: {
140
149
  readonly displayName: "Chiltern Railways";
141
150
  readonly colour: "#00bfff";
142
- readonly toc: "chiltern";
151
+ readonly tocs: ["chiltern"];
143
152
  };
144
153
  readonly crossCountry: {
145
154
  readonly displayName: "Cross Country";
146
155
  readonly colour: "#660f21";
147
- readonly toc: "crossCountry";
156
+ readonly tocs: ["crossCountry"];
148
157
  };
149
158
  readonly eastMidlandsRailway: {
150
159
  readonly displayName: "East Midlands Railway";
151
160
  readonly colour: "#713563";
152
- readonly toc: "eastMidlandsRailway";
161
+ readonly tocs: ["eastMidlandsRailway"];
153
162
  };
154
163
  readonly gatwickExpress: {
155
164
  readonly displayName: "Gatwick Express";
156
165
  readonly colour: "#eb1e2d";
157
- readonly toc: "goviaThameslinkRailway";
166
+ readonly tocs: ["goviaThameslinkRailway"];
158
167
  };
159
168
  readonly grandCentral: {
160
169
  readonly displayName: "Grand Central";
161
170
  readonly colour: "#1d1d1b";
162
- readonly toc: "grandCentral";
171
+ readonly tocs: ["grandCentral"];
163
172
  };
164
173
  readonly greatNorthern: {
165
174
  readonly displayName: "Great Northern";
166
175
  readonly colour: "#00ABE6";
167
- readonly toc: "goviaThameslinkRailway";
176
+ readonly tocs: ["goviaThameslinkRailway"];
168
177
  };
169
178
  readonly greatWesternRailway: {
170
179
  readonly displayName: "Great Western Railway";
171
180
  readonly colour: "#0a493e";
172
- readonly toc: "greatWesternRailway";
181
+ readonly tocs: ["greatWesternRailway"];
173
182
  };
174
183
  readonly greaterAnglia: {
175
184
  readonly displayName: "Greater Anglia";
176
185
  readonly colour: "#d70428";
177
- readonly toc: "greaterAnglia";
186
+ readonly tocs: ["greaterAnglia"];
178
187
  };
179
188
  readonly heathrowExpress: {
180
189
  readonly displayName: "Heathrow Express";
181
190
  readonly colour: "#532e63";
182
- readonly toc: "heathrowExpress";
191
+ readonly tocs: ["heathrowExpress"];
183
192
  };
184
193
  readonly hullTrains: {
185
194
  readonly displayName: "Hull Trains";
186
195
  readonly colour: "#de005c";
187
- readonly toc: "hullTrains";
196
+ readonly tocs: ["hullTrains"];
188
197
  };
189
198
  readonly islandLineTrains: {
190
199
  readonly displayName: "Island Line";
191
200
  readonly colour: "#1e90ff";
192
- readonly toc: "southWesternRailway";
201
+ readonly tocs: ["southWesternRailway"];
193
202
  };
194
203
  readonly londonNorthEasternRailway: {
195
204
  readonly displayName: "London North Eastern Railway";
196
205
  readonly colour: "#ce0e2d";
197
- readonly toc: "londonNorthEasternRailway";
206
+ readonly tocs: ["londonNorthEasternRailway"];
198
207
  };
199
208
  readonly londonNorthwesternRailway: {
200
209
  readonly displayName: "London Northwestern Railway";
201
210
  readonly colour: "#00bf6f";
202
- readonly toc: "westMidlandsTrains";
211
+ readonly tocs: ["westMidlandsTrains"];
203
212
  };
204
213
  readonly lumo: {
205
214
  readonly displayName: "Lumo";
206
215
  readonly colour: "#2b6ef5";
207
- readonly toc: "lumo";
216
+ readonly tocs: ["lumo"];
208
217
  };
209
218
  readonly northernTrains: {
210
219
  readonly displayName: "Northern";
211
220
  readonly colour: "#0f0d78";
212
- readonly toc: "northernTrains";
221
+ readonly tocs: ["northernTrains"];
213
222
  };
214
223
  readonly scotRail: {
215
224
  readonly displayName: "ScotRail";
216
225
  readonly colour: "#1e467d";
217
- readonly toc: "scotRail";
226
+ readonly tocs: ["scotRail"];
218
227
  };
219
228
  readonly southWesternRailway: {
220
229
  readonly displayName: "South Western Railway";
221
230
  readonly colour: "#24398c";
222
- readonly toc: "southWesternRailway";
231
+ readonly tocs: ["southWesternRailway"];
223
232
  };
224
233
  readonly southeastern: {
225
234
  readonly displayName: "Southeastern";
226
235
  readonly colour: "#389cff";
227
- readonly toc: "southeastern";
236
+ readonly tocs: ["southeastern"];
228
237
  };
229
238
  readonly southeasternHighSpeed: {
230
239
  readonly displayName: "Southeastern High Speed";
231
240
  readonly colour: "#1e1e50";
232
- readonly toc: "southeastern";
241
+ readonly tocs: ["southeastern"];
233
242
  };
234
243
  readonly southern: {
235
244
  readonly displayName: "Southern";
236
245
  readonly colour: "#8cc63e";
237
- readonly toc: "goviaThameslinkRailway";
246
+ readonly tocs: ["goviaThameslinkRailway"];
238
247
  };
239
248
  readonly stanstedExpress: {
240
249
  readonly displayName: "Stansted Express";
241
250
  readonly colour: "#6b717a";
242
- readonly toc: "greaterAnglia";
251
+ readonly tocs: ["greaterAnglia"];
243
252
  };
244
253
  readonly thameslink: {
245
254
  readonly displayName: "Thameslink";
246
255
  readonly colour: "#ff5aa4";
247
- readonly toc: "goviaThameslinkRailway";
256
+ readonly tocs: ["goviaThameslinkRailway"];
248
257
  };
249
258
  readonly transPennineExpress: {
250
259
  readonly displayName: "TransPennine Express";
251
260
  readonly colour: "#09a4ec";
252
- readonly toc: "transPennineExpress";
261
+ readonly tocs: ["transPennineExpress"];
253
262
  };
254
263
  readonly transportForWales: {
255
264
  readonly displayName: "Transport for Wales";
256
265
  readonly colour: "#ff0000";
257
- readonly toc: "transportForWales";
266
+ readonly tocs: ["transportForWales"];
258
267
  };
259
268
  readonly westMidlandsRailway: {
260
269
  readonly displayName: "West Midlands Railway";
261
270
  readonly colour: "#ff8300";
262
- readonly toc: "westMidlandsTrains";
271
+ readonly tocs: ["westMidlandsTrains"];
272
+ };
273
+ readonly edinburghTrams: {
274
+ readonly displayName: "Edinburgh Trams";
275
+ readonly colour: "#8D181B";
276
+ readonly tocs: ["edinburghTrams"];
263
277
  };
264
278
  readonly glasgowSubway: {
265
279
  readonly displayName: "Glasgow Subway";
266
280
  readonly colour: "#FF6200";
267
- readonly toc: "glasgowSubway";
281
+ readonly tocs: ["glasgowSubway"];
268
282
  };
269
283
  };
270
284
  export type LineId = keyof typeof Lines;
package/dist/line.js CHANGED
@@ -7,261 +7,266 @@ export const Lines = {
7
7
  bakerloo: {
8
8
  displayName: "Bakerloo Line",
9
9
  colour: "#a45a2a",
10
- toc: "tfl",
10
+ tocs: ["tfl"],
11
11
  },
12
12
  central: {
13
13
  displayName: "Central Line",
14
14
  colour: "#da291c",
15
- toc: "tfl",
15
+ tocs: ["tfl"],
16
16
  },
17
17
  circle: {
18
18
  displayName: "Circle Line",
19
19
  colour: "#ffcd00",
20
- toc: "tfl",
20
+ tocs: ["tfl"],
21
21
  },
22
22
  district: {
23
23
  displayName: "District Line",
24
24
  colour: "#007a33",
25
- toc: "tfl",
25
+ tocs: ["tfl"],
26
26
  },
27
27
  hammersmithAndCity: {
28
28
  displayName: "Hammersmith & City Line",
29
29
  colour: "#e89cae",
30
- toc: "tfl",
30
+ tocs: ["tfl"],
31
31
  },
32
32
  jubilee: {
33
33
  displayName: "Jubilee Line",
34
34
  colour: "#7c878e",
35
- toc: "tfl",
35
+ tocs: ["tfl"],
36
36
  },
37
37
  metropolitan: {
38
38
  displayName: "Metropolitan Line",
39
39
  colour: "#840b55",
40
- toc: "tfl",
40
+ tocs: ["tfl"],
41
41
  },
42
42
  northern: {
43
43
  displayName: "Northern Line",
44
44
  colour: "#000000",
45
- toc: "tfl",
45
+ tocs: ["tfl"],
46
46
  },
47
47
  piccadilly: {
48
48
  displayName: "Piccadilly Line",
49
49
  colour: "#10069f",
50
- toc: "tfl",
50
+ tocs: ["tfl"],
51
51
  },
52
52
  victoria: {
53
53
  displayName: "Victoria Line",
54
54
  colour: "#00a3e0",
55
- toc: "tfl",
55
+ tocs: ["tfl"],
56
56
  },
57
57
  waterlooAndCity: {
58
58
  displayName: "Waterloo & City Line",
59
59
  colour: "#6eceb2",
60
- toc: "tfl",
60
+ tocs: ["tfl"],
61
61
  },
62
62
  // Other TfL services
63
63
  elizabeth: {
64
64
  displayName: "Elizabeth Line",
65
65
  colour: "#6950a1",
66
- toc: "tfl",
66
+ tocs: ["tfl"],
67
67
  },
68
68
  dlr: {
69
69
  displayName: "DLR",
70
70
  colour: "#00afad",
71
- toc: "tfl",
71
+ tocs: ["tfl"],
72
72
  },
73
- trams: {
73
+ londonTrams: {
74
74
  displayName: "London Trams",
75
75
  colour: "#5fb526",
76
- toc: "tfl",
76
+ tocs: ["tfl"],
77
77
  },
78
78
  cableCar: {
79
79
  displayName: "IFS Cloud Cable Car",
80
80
  colour: "#734fa0",
81
- toc: "tfl",
81
+ tocs: ["tfl"],
82
82
  },
83
83
  // London Overground lines
84
84
  liberty: {
85
85
  displayName: "Liberty Line",
86
86
  colour: "#5d6061",
87
- toc: "londonOverground",
87
+ tocs: ["londonOverground"],
88
88
  },
89
89
  lioness: {
90
90
  displayName: "Lioness Line",
91
91
  colour: "#faa61a",
92
- toc: "londonOverground",
92
+ tocs: ["londonOverground"],
93
93
  },
94
94
  mildmay: {
95
95
  displayName: "Mildmay Line",
96
96
  colour: "#0077ad",
97
- toc: "londonOverground",
97
+ tocs: ["londonOverground"],
98
98
  },
99
99
  suffragette: {
100
100
  displayName: "Suffragette Line",
101
101
  colour: "#5bb972",
102
- toc: "londonOverground",
102
+ tocs: ["londonOverground"],
103
103
  },
104
104
  weaver: {
105
105
  displayName: "Weaver Line",
106
106
  colour: "#823a62",
107
- toc: "londonOverground",
107
+ tocs: ["londonOverground"],
108
108
  },
109
109
  windrush: {
110
110
  displayName: "Windrush Line",
111
111
  colour: "#ed1b00",
112
- toc: "londonOverground",
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
- toc: "avantiWestCoast",
118
+ tocs: ["avantiWestCoast"],
119
119
  },
120
120
  c2c: {
121
121
  displayName: TOCs.c2c.displayName,
122
122
  colour: TOCs.c2c.colour,
123
- toc: "c2c",
123
+ tocs: ["c2c"],
124
124
  },
125
125
  csLowlander: {
126
126
  displayName: "Lowlander Sleeper",
127
127
  colour: "#b26734",
128
- toc: "caledonianSleeper",
128
+ tocs: ["caledonianSleeper"],
129
129
  },
130
130
  csHighlander: {
131
131
  displayName: "Highlander Sleeper",
132
132
  colour: "#006984",
133
- toc: "caledonianSleeper",
133
+ tocs: ["caledonianSleeper"],
134
134
  },
135
135
  chiltern: {
136
136
  displayName: "Chiltern Railways",
137
137
  colour: TOCs.chiltern.colour,
138
- toc: "chiltern",
138
+ tocs: ["chiltern"],
139
139
  },
140
140
  crossCountry: {
141
141
  displayName: TOCs.crossCountry.displayName,
142
142
  colour: TOCs.crossCountry.colour,
143
- toc: "crossCountry",
143
+ tocs: ["crossCountry"],
144
144
  },
145
145
  eastMidlandsRailway: {
146
146
  displayName: TOCs.eastMidlandsRailway.displayName,
147
147
  colour: TOCs.eastMidlandsRailway.colour,
148
- toc: "eastMidlandsRailway",
148
+ tocs: ["eastMidlandsRailway"],
149
149
  },
150
150
  gatwickExpress: {
151
151
  displayName: "Gatwick Express",
152
152
  colour: "#eb1e2d",
153
- toc: "goviaThameslinkRailway",
153
+ tocs: ["goviaThameslinkRailway"],
154
154
  },
155
155
  grandCentral: {
156
156
  displayName: TOCs.grandCentral.displayName,
157
157
  colour: TOCs.grandCentral.colour,
158
- toc: "grandCentral",
158
+ tocs: ["grandCentral"],
159
159
  },
160
160
  greatNorthern: {
161
161
  displayName: "Great Northern",
162
162
  colour: "#00ABE6",
163
- toc: "goviaThameslinkRailway",
163
+ tocs: ["goviaThameslinkRailway"],
164
164
  },
165
165
  greatWesternRailway: {
166
166
  displayName: TOCs.greatWesternRailway.displayName,
167
167
  colour: TOCs.greatWesternRailway.colour,
168
- toc: "greatWesternRailway",
168
+ tocs: ["greatWesternRailway"],
169
169
  },
170
170
  greaterAnglia: {
171
171
  displayName: TOCs.greaterAnglia.displayName,
172
172
  colour: TOCs.greaterAnglia.colour,
173
- toc: "greaterAnglia",
173
+ tocs: ["greaterAnglia"],
174
174
  },
175
175
  heathrowExpress: {
176
176
  displayName: TOCs.heathrowExpress.displayName,
177
177
  colour: TOCs.heathrowExpress.colour,
178
- toc: "heathrowExpress",
178
+ tocs: ["heathrowExpress"],
179
179
  },
180
180
  hullTrains: {
181
181
  displayName: TOCs.hullTrains.displayName,
182
182
  colour: TOCs.hullTrains.colour,
183
- toc: "hullTrains",
183
+ tocs: ["hullTrains"],
184
184
  },
185
185
  islandLineTrains: {
186
186
  displayName: "Island Line",
187
187
  colour: "#1e90ff",
188
- toc: "southWesternRailway",
188
+ tocs: ["southWesternRailway"],
189
189
  },
190
190
  londonNorthEasternRailway: {
191
191
  displayName: TOCs.londonNorthEasternRailway.displayName,
192
192
  colour: TOCs.londonNorthEasternRailway.colour,
193
- toc: "londonNorthEasternRailway",
193
+ tocs: ["londonNorthEasternRailway"],
194
194
  },
195
195
  londonNorthwesternRailway: {
196
196
  displayName: "London Northwestern Railway",
197
197
  colour: "#00bf6f",
198
- toc: "westMidlandsTrains",
198
+ tocs: ["westMidlandsTrains"],
199
199
  },
200
200
  lumo: {
201
201
  displayName: TOCs.lumo.displayName,
202
202
  colour: TOCs.lumo.colour,
203
- toc: "lumo",
203
+ tocs: ["lumo"],
204
204
  },
205
205
  northernTrains: {
206
206
  displayName: TOCs.northernTrains.displayName,
207
207
  colour: TOCs.northernTrains.colour,
208
- toc: "northernTrains",
208
+ tocs: ["northernTrains"],
209
209
  },
210
210
  scotRail: {
211
211
  displayName: TOCs.scotRail.displayName,
212
212
  colour: TOCs.scotRail.colour,
213
- toc: "scotRail",
213
+ tocs: ["scotRail"],
214
214
  },
215
215
  southWesternRailway: {
216
216
  displayName: TOCs.southWesternRailway.displayName,
217
217
  colour: TOCs.southWesternRailway.colour,
218
- toc: "southWesternRailway",
218
+ tocs: ["southWesternRailway"],
219
219
  },
220
220
  southeastern: {
221
221
  displayName: TOCs.southeastern.displayName,
222
222
  colour: TOCs.southeastern.colour,
223
- toc: "southeastern",
223
+ tocs: ["southeastern"],
224
224
  },
225
225
  southeasternHighSpeed: {
226
226
  displayName: "Southeastern High Speed",
227
227
  colour: "#1e1e50",
228
- toc: "southeastern",
228
+ tocs: ["southeastern"],
229
229
  },
230
230
  southern: {
231
231
  displayName: "Southern",
232
232
  colour: "#8cc63e",
233
- toc: "goviaThameslinkRailway",
233
+ tocs: ["goviaThameslinkRailway"],
234
234
  },
235
235
  stanstedExpress: {
236
236
  displayName: "Stansted Express",
237
237
  colour: "#6b717a",
238
- toc: "greaterAnglia"
238
+ tocs: ["greaterAnglia"],
239
239
  },
240
240
  thameslink: {
241
241
  displayName: "Thameslink",
242
242
  colour: "#ff5aa4",
243
- toc: "goviaThameslinkRailway",
243
+ tocs: ["goviaThameslinkRailway"],
244
244
  },
245
245
  transPennineExpress: {
246
246
  displayName: TOCs.transPennineExpress.displayName,
247
247
  colour: TOCs.transPennineExpress.colour,
248
- toc: "transPennineExpress",
248
+ tocs: ["transPennineExpress"],
249
249
  },
250
250
  transportForWales: {
251
251
  displayName: TOCs.transportForWales.displayName,
252
252
  colour: TOCs.transportForWales.colour,
253
- toc: "transportForWales",
253
+ tocs: ["transportForWales"],
254
254
  },
255
255
  westMidlandsRailway: {
256
256
  displayName: "West Midlands Railway",
257
257
  colour: "#ff8300",
258
- toc: "westMidlandsTrains",
258
+ tocs: ["westMidlandsTrains"],
259
259
  },
260
260
  // other metro systems
261
+ edinburghTrams: {
262
+ displayName: TOCs.edinburghTrams.displayName,
263
+ colour: TOCs.edinburghTrams.colour,
264
+ tocs: ["edinburghTrams"],
265
+ },
261
266
  glasgowSubway: {
262
267
  displayName: "Glasgow Subway",
263
268
  colour: "#FF6200",
264
- toc: "glasgowSubway",
269
+ tocs: ["glasgowSubway"],
265
270
  },
266
271
  };
267
272
  export const lineIds = Object.keys(Lines);