Parsing of RSP's specification now cached to /data. This means that we can ship the tables with the project, rather than the .pdf being a requirement of use.

This commit is contained in:
2026-05-22 10:37:42 +01:00
parent 14b17a22d7
commit fc09eb775e
14 changed files with 195 additions and 2 deletions
+23
View File
@@ -0,0 +1,23 @@
Field,Field Description,Length,Position,Notes
1,Record Identity,2,1-2,With the constant value CR.
2,Location,8,3-10,TIPLOC + Suffix. Suffix is always the eighth character.
3,Train Category,2,11-12,
4,Train Identity,4,13-16,
5,Headcode,4,17-20,
6,Course Indicator,1,21-21,
7,Profit Centre Code/ Train Service Code,8,22-29,
8,Business Sector,1,30-30,
9,Power Type,3,31-33,
10,Timing Load,4,34-37,
11,Speed,3,38-40,
12,Operating Chars,6,41-46,
13,Train Class,1,47-47,
14,Sleepers,1,48-48,
15,Reservations,1,49-49,
16,Connect Indicator,1,50-50,
17,Catering Code,4,51-54,
18,Service Branding,4,55-58,
19,Traction Class,4,59-62,
20,UIC Code,5,63-67,"Only populated for trains travelling to/from Europe via the Channel Tunnel, otherwise blank."
21,Retail Service ID,8,68-75,
22,Spare,5,76-80,
1 Field Field Description Length Position Notes
2 1 Record Identity 2 1-2 With the constant value ‘CR’.
3 2 Location 8 3-10 TIPLOC + Suffix. Suffix is always the eighth character.
4 3 Train Category 2 11-12
5 4 Train Identity 4 13-16
6 5 Headcode 4 17-20
7 6 Course Indicator 1 21-21
8 7 Profit Centre Code/ Train Service Code 8 22-29
9 8 Business Sector 1 30-30
10 9 Power Type 3 31-33
11 10 Timing Load 4 34-37
12 11 Speed 3 38-40
13 12 Operating Chars 6 41-46
14 13 Train Class 1 47-47
15 14 Sleepers 1 48-48
16 15 Reservations 1 49-49
17 16 Connect Indicator 1 50-50
18 17 Catering Code 4 51-54
19 18 Service Branding 4 55-58
20 19 Traction Class 4 59-62
21 20 UIC Code 5 63-67 Only populated for trains travelling to/from Europe via the Channel Tunnel, otherwise blank.
22 21 Retail Service ID 8 68-75
23 22 Spare 5 76-80