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
+27
View File
@@ -0,0 +1,27 @@
Field,Field Description,Length,Position,Notes
1,Record Identity,2,1-2,With the constant value BS.
2,Transaction Type,1,3-3,N = New. D = Delete. R = Revise.
3,Train UID,6,4-9,Unique train Identifier.
4,Date Runs From,6,10-15,yymmdd
5,Date Runs To,6,16-21,yymmdd
6,Days Run,7,22-28,
7,Bank Holiday Running,1,29-29,
8,Train Status,1,30-30,
9,Train Category,2,31-32,
10,Train Identity,4,33-36,
11,Headcode,4,37-40,
12,Course Indicator,1,41-41,Not used - always set to 1.
13,Profit Centre Code/ Train Service Code,8,42-49,
14,Business Sector,1,50-50,Now used to contain the portion suffix for RSID
15,Power Type,3,51-53,
16,Timing Load,4,54-57,
17,Speed,3,58-60,
18,Operating Chars,6,61-66,
19,Train Class,1,67-67,
20,Sleepers,1,68-68,
21,Reservations,1,69-69,Permitted values are: A Seat Reservations Compulsory (R symbol in white box) E Reservations for Bicycles Essential (Inverted black triangle) R Seat Reservations Recommended (R symbol in black box) S Seat Reservations possible from any station (white diamond symbol)
22,Connect Indicator,1,70-70,Not used - always set to blank.
23,Catering Code,4,71-74,
24,Service Branding,4,75-78,
25,Spare,1,79-79,
26,STP indicator,1,80-80,C = STP cancellation of permanent schedule. N = New STP schedule. O = STP overlay of permanent schedule. P = Permanent. Read in association with the Transaction Type in Field 2
1 Field Field Description Length Position Notes
2 1 Record Identity 2 1-2 With the constant value ‘BS’.
3 2 Transaction Type 1 3-3 ‘N’ = New. ‘D’ = Delete. ‘R’ = Revise.
4 3 Train UID 6 4-9 Unique train Identifier.
5 4 Date Runs From 6 10-15 yymmdd
6 5 Date Runs To 6 16-21 yymmdd
7 6 Days Run 7 22-28
8 7 Bank Holiday Running 1 29-29
9 8 Train Status 1 30-30
10 9 Train Category 2 31-32
11 10 Train Identity 4 33-36
12 11 Headcode 4 37-40
13 12 Course Indicator 1 41-41 Not used - always set to 1.
14 13 Profit Centre Code/ Train Service Code 8 42-49
15 14 Business Sector 1 50-50 Now used to contain the portion suffix for RSID
16 15 Power Type 3 51-53
17 16 Timing Load 4 54-57
18 17 Speed 3 58-60
19 18 Operating Chars 6 61-66
20 19 Train Class 1 67-67
21 20 Sleepers 1 68-68
22 21 Reservations 1 69-69 Permitted values are: A – Seat Reservations Compulsory (R symbol in white box) E – Reservations for Bicycles Essential (Inverted black triangle) R – Seat Reservations Recommended (R symbol in black box) S – Seat Reservations possible from any station (white diamond symbol)
23 22 Connect Indicator 1 70-70 Not used - always set to blank.
24 23 Catering Code 4 71-74
25 24 Service Branding 4 75-78
26 25 Spare 1 79-79
27 26 STP indicator 1 80-80 ‘C’ = STP cancellation of permanent schedule. ‘N’ = New STP schedule. ‘O’ = STP overlay of permanent schedule. ‘P’ = Permanent. Read in association with the Transaction Type in Field 2