Difference between revisions of "TOC Codes"

From Open Rail Data Wiki
Jump to: navigation, search
m (Add Sheffield Supertram TOC code)
(Add info on whitelisting)
Line 4: Line 4:
 
* ''Business Code'' is a two-character code used within the TRUST system.  It is used in the names of the individual [[Train_Movements | train movement feeds]].
 
* ''Business Code'' is a two-character code used within the TRUST system.  It is used in the names of the individual [[Train_Movements | train movement feeds]].
 
* ''Sector Code'' is the sector code used to represent the TOC in [[Train_Movements | TRUST messages]].   
 
* ''Sector Code'' is the sector code used to represent the TOC in [[Train_Movements | TRUST messages]].   
* ''ATOC Code'' is a two-character code used to representing the TOC in the [[SCHEDULE]] feed. Freight trains are represented by an ATOC code of ''ZZ''.
+
* ''ATOC Code'' is a two-character code used to representing the TOC in the [[SCHEDULE]] feed. Non-passenger operators are represented by an ATOC code of ''ZZ'' and are subject to obfuscation in the SCHEDULE feed (with the exception of GB Railfreight services).
  
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
Line 12: Line 12:
 
!Sector Code
 
!Sector Code
 
!ATOC Code
 
!ATOC Code
 +
!Whitelisted*
 
|-
 
|-
 
|Balfour Beatty Rail Ltd.
 
|Balfour Beatty Rail Ltd.
 
|ZB
 
|ZB
|
+
|40
 
|AR
 
|AR
 +
|N
 
|-
 
|-
 
|Arriva Trains Northern
 
|Arriva Trains Northern
Line 22: Line 24:
 
|23
 
|23
 
|NT
 
|NT
 +
|Y
 
|-
 
|-
 
|Transport for Wales
 
|Transport for Wales
Line 27: Line 30:
 
|71
 
|71
 
|AW
 
|AW
 +
|Y
 
|-
 
|-
 
|c2c
 
|c2c
Line 32: Line 36:
 
|79
 
|79
 
|CC
 
|CC
 +
|Y
 
|-
 
|-
 
|Caledonian Sleeper
 
|Caledonian Sleeper
Line 37: Line 42:
 
|35
 
|35
 
|CS
 
|CS
 +
|Y
 
|-
 
|-
 
|Chiltern Railway
 
|Chiltern Railway
Line 42: Line 48:
 
|74
 
|74
 
|CH
 
|CH
 +
|Y
 
|-
 
|-
 
|CrossCountry
 
|CrossCountry
Line 47: Line 54:
 
|27
 
|27
 
|XC
 
|XC
 +
|Y
 
|-
 
|-
 
|Devon and Cornwall Railways
 
|Devon and Cornwall Railways
Line 52: Line 60:
 
|34
 
|34
 
|ZZ
 
|ZZ
 +
|Y
 
|-
 
|-
 
|East Midlands Trains
 
|East Midlands Trains
Line 57: Line 66:
 
|28
 
|28
 
|EM
 
|EM
 +
|Y
 
|-
 
|-
 
|Eurostar
 
|Eurostar
Line 62: Line 72:
 
|06
 
|06
 
|ES
 
|ES
 +
|Y
 
|-
 
|-
|First Capital Connect (defunct)
+
|Unmapped (was First Capital Connect)
 
|EG
 
|EG
 
|26
 
|26
 
|FC
 
|FC
 +
|Y
 
|-
 
|-
 
|First Hull Trains
 
|First Hull Trains
Line 72: Line 84:
 
|55
 
|55
 
|HT
 
|HT
 +
|Y
 
|-
 
|-
|Gatwick Express
+
|Unmapped (was Gatwick Express)
 
|HV
 
|HV
 
|81
 
|81
 
|GX
 
|GX
 +
|Y
 
|-
 
|-
 
|GB Railfreight
 
|GB Railfreight
Line 82: Line 96:
 
|54
 
|54
 
|ZZ
 
|ZZ
 +
|Y
 
|-
 
|-
 
|Govia Thameslink Railway (Great Northern)
 
|Govia Thameslink Railway (Great Northern)
Line 87: Line 102:
 
|88
 
|88
 
|GN
 
|GN
 +
|Y
 
|-
 
|-
 
|Govia Thameslink Railway (Thameslink)
 
|Govia Thameslink Railway (Thameslink)
Line 92: Line 108:
 
|88
 
|88
 
|TL
 
|TL
 +
|Y
 
|-
 
|-
 
|Grand Central
 
|Grand Central
Line 97: Line 114:
 
|22
 
|22
 
|GC
 
|GC
 +
|Y
 
|-
 
|-
 
|Great North Western Railway
 
|Great North Western Railway
 
|LN
 
|LN
|
+
|29
 
|LN
 
|LN
 +
|Y
 
|-
 
|-
 
|Great Western Railway
 
|Great Western Railway
Line 107: Line 126:
 
|25
 
|25
 
|GW
 
|GW
 +
|Y
 
|-
 
|-
 
|Greater Anglia
 
|Greater Anglia
Line 112: Line 132:
 
|21
 
|21
 
|LE
 
|LE
 +
|Y
 
|-
 
|-
 
|Heathrow Connect
 
|Heathrow Connect
Line 117: Line 138:
 
|24
 
|24
 
|HC
 
|HC
 +
|Y
 
|-
 
|-
 
|Heathrow Express
 
|Heathrow Express
Line 122: Line 144:
 
|86
 
|86
 
|HX
 
|HX
 +
|Y
 
|-
 
|-
 
|Island Lines
 
|Island Lines
Line 127: Line 150:
 
|85
 
|85
 
|IL
 
|IL
 +
|Y
 
|-
 
|-
 
|Locomotive Services
 
|Locomotive Services
 
|LS
 
|LS
|
+
|89
 
|LS
 
|LS
 +
|N
 
|-
 
|-
|London Midland
+
|West Midlands Trains
 
|EJ
 
|EJ
 
|29
 
|29
 
|LM
 
|LM
 +
|Y
 
|-
 
|-
 
|London Overground
 
|London Overground
Line 142: Line 168:
 
|30
 
|30
 
|LO
 
|LO
 +
|Y
 
|-
 
|-
 
|LUL Bakerloo Line
 
|LUL Bakerloo Line
Line 147: Line 174:
 
|91
 
|91
 
|LT
 
|LT
 +
|Y
 
|-
 
|-
 
|LUL District Line – Richmond
 
|LUL District Line – Richmond
Line 152: Line 180:
 
|93
 
|93
 
|LT
 
|LT
 +
|Y
 
|-
 
|-
 
|LUL District Line – Wimbledon
 
|LUL District Line – Wimbledon
Line 157: Line 186:
 
|90
 
|90
 
|LT
 
|LT
 +
|Y
 
|-
 
|-
 
|Merseyrail
 
|Merseyrail
Line 162: Line 192:
 
|64
 
|64
 
|ME
 
|ME
 +
|Y
 
|-
 
|-
 
|Network Rail (On-Track Machines)
 
|Network Rail (On-Track Machines)
 
|LR
 
|LR
|00*
+
|15
 
|LR
 
|LR
 +
|N
 
|-
 
|-
 
|Nexus (Tyne & Wear Metro)
 
|Nexus (Tyne & Wear Metro)
Line 172: Line 204:
 
|56
 
|56
 
|TW
 
|TW
 +
|Y
 
|-
 
|-
 
|North Yorkshire Moors Railway
 
|North Yorkshire Moors Railway
Line 177: Line 210:
 
|51
 
|51
 
|NY
 
|NY
 +
|Y
 
|-
 
|-
 
|ScotRail
 
|ScotRail
Line 182: Line 216:
 
|60
 
|60
 
|SR
 
|SR
 +
|Y
 
|-
 
|-
 
|South Western Railway
 
|South Western Railway
Line 187: Line 222:
 
|84
 
|84
 
|SW
 
|SW
 +
|Y
 
|-
 
|-
 
|South Yorkshire Supertram
 
|South Yorkshire Supertram
Line 192: Line 228:
 
|19
 
|19
 
|SJ
 
|SJ
 +
|N
 
|-
 
|-
 
|Southeastern
 
|Southeastern
Line 197: Line 234:
 
|80
 
|80
 
|SE
 
|SE
 +
|Y
 
|-
 
|-
 
|Southern
 
|Southern
Line 202: Line 240:
 
|88
 
|88
 
|SN
 
|SN
 +
|Y
 
|-
 
|-
 
|Swanage Railway
 
|Swanage Railway
 
|SP
 
|SP
|
+
|18
 
|SP
 
|SP
 +
|N
 
|-
 
|-
 
|TfL Rail
 
|TfL Rail
Line 212: Line 252:
 
|33
 
|33
 
|XR
 
|XR
 +
|Y
 
|-
 
|-
 
|TransPennine Express
 
|TransPennine Express
Line 217: Line 258:
 
|20
 
|20
 
|TP
 
|TP
 +
|Y
 
|-
 
|-
 
|Virgin Trains
 
|Virgin Trains
Line 222: Line 264:
 
|65
 
|65
 
|VT
 
|VT
 +
|Y
 
|-
 
|-
|Virgin Trains East Coast
+
|London North Eastern Railway
 
|HB
 
|HB
 
|61
 
|61
 
|GR
 
|GR
 +
|Y
 
|-
 
|-
|West Coast Railway Co.
+
|West Coast Railways
 
|PA
 
|PA
 
|50
 
|50
 
|WR
 
|WR
 +
|Y
 
|-
 
|-
 
|}
 
|}
  
'''*Note:''' ''00'' is an obfuscated sector code used for several anonymous non-passenger operators, most of which are not listed above.
+
'''*Note:''' Sector codes which are not whitelisted will be obfuscated and TRUST messages are published for these operators with sector code ''00''.
  
 
{{Navtable-DataFeeds}}
 
{{Navtable-DataFeeds}}

Revision as of 17:20, 26 May 2019

This table lists the codes used to identify Train Operating Companies (TOCs) in the various data feeds available from Network Rail. Different feeds use different sets of codes to refer to the same company.

  • Company Name is the name of the Train Operating Company
  • Business Code is a two-character code used within the TRUST system. It is used in the names of the individual train movement feeds.
  • Sector Code is the sector code used to represent the TOC in TRUST messages.
  • ATOC Code is a two-character code used to representing the TOC in the SCHEDULE feed. Non-passenger operators are represented by an ATOC code of ZZ and are subject to obfuscation in the SCHEDULE feed (with the exception of GB Railfreight services).
Company Name Business Code Sector Code ATOC Code Whitelisted*
Balfour Beatty Rail Ltd. ZB 40 AR N
Arriva Trains Northern ED 23 NT Y
Transport for Wales HL 71 AW Y
c2c HT 79 CC Y
Caledonian Sleeper ES 35 CS Y
Chiltern Railway HO 74 CH Y
CrossCountry EH 27 XC Y
Devon and Cornwall Railways PO 34 ZZ Y
East Midlands Trains EM 28 EM Y
Eurostar GA 06 ES Y
Unmapped (was First Capital Connect) EG 26 FC Y
First Hull Trains PF 55 HT Y
Unmapped (was Gatwick Express) HV 81 GX Y
GB Railfreight PE 54 ZZ Y
Govia Thameslink Railway (Great Northern) ET 88 GN Y
Govia Thameslink Railway (Thameslink) ET 88 TL Y
Grand Central EC 22 GC Y
Great North Western Railway LN 29 LN Y
Great Western Railway EF 25 GW Y
Greater Anglia EB 21 LE Y
Heathrow Connect EE 24 HC Y
Heathrow Express HM 86 HX Y
Island Lines HZ 85 IL Y
Locomotive Services LS 89 LS N
West Midlands Trains EJ 29 LM Y
London Overground EK 30 LO Y
LUL Bakerloo Line XC 91 LT Y
LUL District Line – Richmond XE 93 LT Y
LUL District Line – Wimbledon XB 90 LT Y
Merseyrail HE 64 ME Y
Network Rail (On-Track Machines) LR 15 LR N
Nexus (Tyne & Wear Metro) PG 56 TW Y
North Yorkshire Moors Railway PR 51 NY Y
ScotRail HA 60 SR Y
South Western Railway HY 84 SW Y
South Yorkshire Supertram SJ 19 SJ N
Southeastern HU 80 SE Y
Southern HW 88 SN Y
Swanage Railway SP 18 SP N
TfL Rail EX 33 XR Y
TransPennine Express EA 20 TP Y
Virgin Trains HF 65 VT Y
London North Eastern Railway HB 61 GR Y
West Coast Railways PA 50 WR Y

*Note: Sector codes which are not whitelisted will be obfuscated and TRUST messages are published for these operators with sector code 00.


Network Rail Open Data Feeds
Data Feeds About the Feeds Account States Durable Subscriptions Example Code ( PHP / C# / Java / Ruby / Node.js) • Advanced UsesFAQ Release Notes
RTPPM RTPPM Feed
Train Movements Train Movements Feed Train Activation Train Cancellation Train Movement Train Reinstatement Change of Origin Change of Identity Change of Location TSPEED Field Planned Cancellations Cancellation Codes
TD TD Feed C-Class Messages S-Class Messages Train Describers TD Berths
VSTP VSTP Feed
TSR TSR Feed Route Codes
SCHEDULE SCHEDULE Feed Schedule and Location Records Association Records CIF Codes How Scheduling Works Allowances
Reference Data Reference Data Feed TOC Codes CIF Codes Delay Attribution Codes Identifying Locations (STANOX, TIPLOC, NLC and 3-Alpha Codes) STANOX Geographical Areas Train Planning data