Difference between revisions of "TOC Codes"

From Open Rail Data Wiki
Jump to navigation Jump to search
m (stuck a border on it)
m
(41 intermediate revisions by 9 users not shown)
Line 1: Line 1:
* 'Company name' is the legal name of the company
+
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.
* 'Business code' is the two-character code used as part of the NCI sign-in to TRUST etc.
 
* 'Code' is the numeric code used to represent the TOC in TRUST messages
 
  
{| border="1"
+
* ''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_Movements | train movement feeds]].
 +
* ''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. 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).
 +
* ''Whitelisted'' means that the sector code is 'whitelisted' and TRUST messages are published for these operators without obfuscation. Sector codes which are not whitelisted will be obfuscated and TRUST messages are published for these operators with sector code ''00''.
 +
 
 +
{| class="wikitable sortable"
 
|-
 
|-
!Company name
+
!Company Name
 
!Business Code
 
!Business Code
!Code
+
!Sector Code
 +
!ATOC Code
 +
!Whitelisted
 +
|-
 +
|Alliance Rail
 +
|ZB
 +
|14
 +
|AR
 +
|N
 +
|-
 +
|Northern
 +
|ED
 +
|23
 +
|NT
 +
|Y
 
|-
 
|-
|Arriva Trains Wales
+
|Transport for Wales
 
|HL
 
|HL
 
|71
 
|71
 +
|AW
 +
|Y
 
|-
 
|-
 
|c2c
 
|c2c
 
|HT
 
|HT
 
|79
 
|79
 +
|CC
 +
|Y
 +
|-
 +
|Caledonian Sleeper
 +
|ES
 +
|35
 +
|CS
 +
|Y
 +
|-
 +
|Chiltern Railway
 +
|HO
 +
|74
 +
|CH
 +
|Y
 
|-
 
|-
 
|CrossCountry
 
|CrossCountry
 
|EH
 
|EH
 
|27
 
|27
 +
|XC
 +
|Y
 
|-
 
|-
|Devon & Cornwall Railways
+
|DC Rail
|EN
+
|PO
 
|34
 
|34
 +
|ZZ
 +
|Y
 
|-
 
|-
 
|East Midlands Trains
 
|East Midlands Trains
 
|EM
 
|EM
 
|28
 
|28
 +
|EM
 +
|Y
 
|-
 
|-
|Eurostar (UK) Ltd
+
|Eurostar
 
|GA
 
|GA
|6
+
|06
|-
+
|ES
|Ffestiniog Railway
+
|Y
|XJ
 
|94
 
 
|-
 
|-
|First Capital Connect
+
|Unmapped (was First Capital Connect)
 
|EG
 
|EG
 
|26
 
|26
 +
|FC
 +
|Y
 
|-
 
|-
|First Great Western
+
|Hull Trains
|EF
 
|25
 
|-
 
|First Hull Trains
 
 
|PF
 
|PF
 
|55
 
|55
 +
|HT
 +
|Y
 +
|-
 +
|Unmapped (was Gatwick Express)
 +
|HV
 +
|81
 +
|GX
 +
|Y
 
|-
 
|-
|First Scotrail
+
|GB Railfreight
|HA
+
|PE
|60
+
|54
 +
|ZZ
 +
|Y
 
|-
 
|-
|First Transpennine Express
+
|Govia Thameslink Railway (Great Northern)
|EA
+
|ET
|20
+
|88
 +
|GN
 +
|Y
 
|-
 
|-
|Gatwick Express Ltd
+
|Govia Thameslink Railway (Thameslink)
|HV
+
|ET
|81
+
|88
 +
|TL
 +
|Y
 
|-
 
|-
 
|Grand Central
 
|Grand Central
 
|EC
 
|EC
 
|22
 
|22
 +
|GC
 +
|Y
 +
|-
 +
|Great North Western Railway
 +
|LN
 +
|?
 +
|LN
 +
|?
 +
|-
 +
|Great Western Railway
 +
|EF
 +
|25
 +
|GW
 +
|Y
 +
|-
 +
|Greater Anglia
 +
|EB
 +
|21
 +
|LE
 +
|Y
 
|-
 
|-
 
|Heathrow Connect
 
|Heathrow Connect
 
|EE
 
|EE
 
|24
 
|24
 +
|HC
 +
|Y
 
|-
 
|-
|Heathrow Express Ltd
+
|Heathrow Express
 
|HM
 
|HM
 
|86
 
|86
 +
|HX
 +
|Y
 
|-
 
|-
 
|Island Lines
 
|Island Lines
 
|HZ
 
|HZ
 
|85
 
|85
 +
|IL
 +
|Y
 +
|-
 +
|Locomotive Services
 +
|LS
 +
|89
 +
|LS
 +
|N
 
|-
 
|-
|London Midland
+
|West Midlands Trains
 
|EJ
 
|EJ
 
|29
 
|29
 +
|LM
 +
|Y
 
|-
 
|-
 
|London Overground
 
|London Overground
 
|EK
 
|EK
 
|30
 
|30
 +
|LO
 +
|Y
 
|-
 
|-
 
|LUL Bakerloo Line
 
|LUL Bakerloo Line
 
|XC
 
|XC
 
|91
 
|91
 +
|LT
 +
|Y
 
|-
 
|-
 
|LUL District Line – Richmond
 
|LUL District Line – Richmond
 
|XE
 
|XE
 
|93
 
|93
 +
|LT
 +
|Y
 
|-
 
|-
 
|LUL District Line – Wimbledon
 
|LUL District Line – Wimbledon
 
|XB
 
|XB
 
|90
 
|90
 +
|LT
 +
|Y
 
|-
 
|-
|Merseyrail Electrics 2002 Ltd
+
|Merseyrail
 
|HE
 
|HE
 
|64
 
|64
 +
|ME
 +
|Y
 
|-
 
|-
|National Express East Anglia
+
|Network Rail (On-Track Machines)
|EB
+
|LR
|21
+
|15
|-
+
|LR
|National Express East Coast
+
|N
|HB
 
|61
 
 
|-
 
|-
|Nexus
+
|Nexus (Tyne & Wear Metro)
 
|PG
 
|PG
 
|56
 
|56
 +
|TW
 +
|Y
 
|-
 
|-
 
|North Yorkshire Moors Railway
 
|North Yorkshire Moors Railway
 
|PR
 
|PR
 
|51
 
|51
 +
|NY
 +
|Y
 +
|-
 +
|ScotRail
 +
|HA
 +
|60
 +
|SR
 +
|Y
 +
|-
 +
|South Western Railway
 +
|HY
 +
|84
 +
|SW
 +
|Y
 
|-
 
|-
|Northern Rail
+
|South Yorkshire Supertram
|ED
+
|SJ
|23
+
|19
 +
|SJ
 +
|N
 
|-
 
|-
 
|Southeastern
 
|Southeastern
 
|HU
 
|HU
 
|80
 
|80
 +
|SE
 +
|Y
 
|-
 
|-
 
|Southern
 
|Southern
 
|HW
 
|HW
|82
+
|88
 +
|SN
 +
|Y
 +
|-
 +
|Swanage Railway
 +
|SP
 +
|18
 +
|SP
 +
|N
 
|-
 
|-
|Stagecoach South Western Trains Ltd
+
|TfL Rail
|HY
+
|EX
|84
+
|33
 +
|XR
 +
|Y
 
|-
 
|-
|The Chiltern Railway Co. Ltd
+
|TransPennine Express
|HO
+
|EA
|74
+
|20
 +
|TP
 +
|Y
 
|-
 
|-
|Virgin West Coast Trains
+
|Virgin Trains
 
|HF
 
|HF
 
|65
 
|65
 +
|VT
 +
|Y
 
|-
 
|-
|West Coast Railway Co.
+
|London North Eastern Railway
 +
|HB
 +
|61
 +
|GR
 +
|Y
 +
|-
 +
|West Coast Railways
 
|PA
 
|PA
 
|50
 
|50
 +
|WR
 +
|Y
 +
|-
 +
|JSD Rail Research & Development
 +
|RR
 +
|02
 +
|ZZ
 +
|N
 +
|-
 +
|Victa Westlink Rail (defunct)
 +
|PV
 +
|03
 +
|ZZ
 +
|N
 +
|-
 +
|DB Cargo Charters
 +
|WA
 +
|04
 +
|ZZ
 +
|N
 +
|-
 +
|DB Cargo Freight
 +
|WA
 +
|05
 +
|ZZ
 +
|N
 +
|-
 +
|Rail Operations Group
 +
|PH
 +
|07
 +
|ZZ
 +
|N
 +
|-
 +
|DB Cargo International
 +
|DA
 +
|08
 +
|ZZ
 +
|N
 +
|-
 +
|Freightliner
 +
|DB
 +
|09
 +
|ZZ
 +
|N
 +
|-
 +
|Serco Rail Operations
 +
|SD
 +
|10
 +
|ZZ
 +
|N
 +
|-
 +
|Freightliner Heavy Haul
 +
|DH
 +
|11
 +
|ZZ
 +
|N
 +
|-
 +
|Freight Europe (defunct)
 +
|PN
 +
|12
 +
|ZZ
 +
|N
 +
|-
 +
|Europorte Channel
 +
|PT
 +
|13
 +
|ZZ
 +
|N
 +
|-
 +
|LORAM
 +
|LC
 +
|16
 +
|ZZ
 +
|N
 +
|-
 +
|Network Rail (Internal use only)
 +
|QA
 +
|17
 +
|ZZ
 +
|N
 +
|-
 +
|Network Rail Virtual Freight Company
 +
|QJ
 +
|31
 +
|ZZ
 +
|N
 
|-
 
|-
|Wrexham & Shropshire Railway
+
|Wrexham and Shropshire (defunct)
 
|EI
 
|EI
 
|32
 
|32
 +
|WS
 +
|Y
 +
|-
 +
|Vintage Trains
 +
|TY
 +
|36
 +
|TY
 +
|N
 +
|-
 +
|Seco Rail (defunct)
 +
|RU
 +
|37
 +
|ZZ
 +
|N
 +
|-
 +
|Carillion Rail CTRL (Phase 1) (defunct)
 +
|RQ
 +
|38
 +
|ZZ
 +
|N
 +
|-
 +
|Harsco
 +
|RT
 +
|39
 +
|ZZ
 +
|N
 +
|-
 +
|Balfour Beatty Rail
 +
|RZ
 +
|40
 +
|ZZ
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|41
 +
|
 +
|N
 +
|-
 +
|Colas Rail
 +
|RG
 +
|42
 +
|ZZ
 +
|N
 +
|-
 +
|Amey Fleet Services
 +
|RE
 +
|43
 +
|ZZ
 +
|N
 +
|-
 +
|Carillion Rail
 +
|RB
 +
|44
 +
|ZZ
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|45
 +
|
 +
|N
 +
|-
 +
|SB (Swietelsky Babcock) Rail
 +
|RD
 +
|46
 +
|ZZ
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|47
 +
|
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|48
 +
|
 +
|N
 +
|-
 +
|VolkerRail
 +
|RH
 +
|49
 +
|ZZ
 +
|N
 +
|-
 +
|Pre Metro Operations
 +
|PK
 +
|52
 +
|ZZ
 +
|N
 +
|-
 +
|SNCF Freight Services
 +
|PS
 +
|53
 +
|ZZ
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|57
 +
|
 +
|N
 +
|-
 +
|Unmapped (was Advenza Freight)
 +
|PI
 +
|58
 +
|ZZ
 +
|N
 +
|-
 +
|On Route Logistics
 +
|PM
 +
|59
 +
|ZZ
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|62
 +
|
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|63
 +
|
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|66
 +
|
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|67
 +
|
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|68
 +
|
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|69
 +
|
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|70
 +
|
 +
|N
 +
|-
 +
|Legge Infrastructure Services
 +
|LG
 +
|72
 +
|ZZ
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|73
 +
|
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|75
 +
|
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|76
 +
|
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|77
 +
|
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|78
 +
|
 +
|N
 +
|-
 +
|Unmapped (was Southern)
 +
|HW
 +
|82
 +
|SN
 +
|Y
 +
|-
 +
|Unmapped
 +
|
 +
|83
 +
|
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|87
 +
|
 +
|N
 +
|-
 +
|Network Rail Reserved Pathings (non-QJ)
 +
|NR
 +
|92
 +
|ZZ
 +
|N
 +
|-
 +
|Ffestiniog Railway
 +
|XJ
 +
|94
 +
|
 +
|Y
 +
|-
 +
|Unmapped
 +
|
 +
|95
 +
|
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|96
 +
|
 +
|N
 +
|-
 +
|Direct Rail Services
 +
|XH
 +
|97
 +
|ZZ
 +
|N
 +
|-
 +
|Internal Testing
 +
|RM
 +
|98
 +
|ZZ
 +
|N
 +
|-
 +
|Unmapped
 +
|
 +
|99
 +
|
 +
|N
 +
|-
 
|}
 
|}
 +
 +
{{Navtable-DataFeeds}}
 +
 +
[[Category:Reference Data]]
 +
[[Category:Train Movement Data]]
 +
[[Category:Schedule Data]]

Revision as of 18:25, 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).
  • Whitelisted means that the sector code is 'whitelisted' and TRUST messages are published for these operators without obfuscation. Sector codes which are not whitelisted will be obfuscated and TRUST messages are published for these operators with sector code 00.
Company Name Business Code Sector Code ATOC Code Whitelisted
Alliance Rail ZB 14 AR N
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
DC Rail 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
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 ? LN ?
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
JSD Rail Research & Development RR 02 ZZ N
Victa Westlink Rail (defunct) PV 03 ZZ N
DB Cargo Charters WA 04 ZZ N
DB Cargo Freight WA 05 ZZ N
Rail Operations Group PH 07 ZZ N
DB Cargo International DA 08 ZZ N
Freightliner DB 09 ZZ N
Serco Rail Operations SD 10 ZZ N
Freightliner Heavy Haul DH 11 ZZ N
Freight Europe (defunct) PN 12 ZZ N
Europorte Channel PT 13 ZZ N
LORAM LC 16 ZZ N
Network Rail (Internal use only) QA 17 ZZ N
Network Rail Virtual Freight Company QJ 31 ZZ N
Wrexham and Shropshire (defunct) EI 32 WS Y
Vintage Trains TY 36 TY N
Seco Rail (defunct) RU 37 ZZ N
Carillion Rail CTRL (Phase 1) (defunct) RQ 38 ZZ N
Harsco RT 39 ZZ N
Balfour Beatty Rail RZ 40 ZZ N
Unmapped 41 N
Colas Rail RG 42 ZZ N
Amey Fleet Services RE 43 ZZ N
Carillion Rail RB 44 ZZ N
Unmapped 45 N
SB (Swietelsky Babcock) Rail RD 46 ZZ N
Unmapped 47 N
Unmapped 48 N
VolkerRail RH 49 ZZ N
Pre Metro Operations PK 52 ZZ N
SNCF Freight Services PS 53 ZZ N
Unmapped 57 N
Unmapped (was Advenza Freight) PI 58 ZZ N
On Route Logistics PM 59 ZZ N
Unmapped 62 N
Unmapped 63 N
Unmapped 66 N
Unmapped 67 N
Unmapped 68 N
Unmapped 69 N
Unmapped 70 N
Legge Infrastructure Services LG 72 ZZ N
Unmapped 73 N
Unmapped 75 N
Unmapped 76 N
Unmapped 77 N
Unmapped 78 N
Unmapped (was Southern) HW 82 SN Y
Unmapped 83 N
Unmapped 87 N
Network Rail Reserved Pathings (non-QJ) NR 92 ZZ N
Ffestiniog Railway XJ 94 Y
Unmapped 95 N
Unmapped 96 N
Direct Rail Services XH 97 ZZ N
Internal Testing RM 98 ZZ N
Unmapped 99 N


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