@tangledwires/uk-station-data 1.1.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 +135 -0
- package/dist/line.js +137 -0
- package/dist/station.d.ts +1236 -36
- package/dist/station.js +338 -44
- package/dist/toc.js +29 -28
- package/package.json +2 -2
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": {
|