Difference between revisions of "TOC Codes"

From Open Rail Data Wiki
Jump to navigation Jump to search
(Add info on whitelisting)
m (A few updates)
Line 14: Line 14:
 
!Whitelisted*
 
!Whitelisted*
 
|-
 
|-
|Balfour Beatty Rail Ltd.
+
|Alliance Rail
 
|ZB
 
|ZB
|40
+
|14
 
|AR
 
|AR
 
|N
 
|N
 
|-
 
|-
|Arriva Trains Northern
+
|Northern
 
|ED
 
|ED
 
|23
 
|23
Line 56: Line 56:
 
|Y
 
|Y
 
|-
 
|-
|Devon and Cornwall Railways
+
|DC Rail
 
|PO
 
|PO
 
|34
 
|34
Line 80: Line 80:
 
|Y
 
|Y
 
|-
 
|-
|First Hull Trains
+
|Hull Trains
 
|PF
 
|PF
 
|55
 
|55
Line 118: Line 118:
 
|Great North Western Railway
 
|Great North Western Railway
 
|LN
 
|LN
|29
+
|?
 
|LN
 
|LN
|Y
+
|?
 
|-
 
|-
 
|Great Western Railway
 
|Great Western Railway

Revision as of 17:35, 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*
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

*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