CIF File Format: Difference between revisions

From Open Rail Data Wiki
Jpl (talk | contribs)
mNo edit summary
m →‎Record Types: Link to CIF Location page
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
The CIF file contains a sequence of records.  Each record is 80 character long.  The first two bytes of a record identifies the type of a record.
The Common Interface File (CIF) format is the industry standard for transfer of schedules electronically from Network Rail's Integrated Train Planning System (ITPS) to downstream operational and information systems.
 
The CIF file is a text file containing one record per row.  Each record has a fixed length of 80 characters.  The first two characters of a row identify the ''Record Type''.


== Record Types ==
== Record Types ==


* '''HD''' - [[CIF_Header | Header record]]
* '''HD''' - [[CIF_Header | Header record]]
* '''TI''' - [[CIF_Tiploc_Insert | TIPLOC Insert record]]
* TIPLOC Records
* '''TA''' - [[CIF_Tiploc_Amend | TIPLOC Amend record]]
** '''TI''' - [[CIF_Tiploc_Insert | TIPLOC Insert record]]
* '''TD''' - [[CIF_Tiploc_Delete | TIPLOC Delete record]]
** '''TA''' - [[CIF_Tiploc_Amend | TIPLOC Amend record]]
* '''AA''' - [[CIF_Association | Association record]]
** '''TD''' - [[CIF_Tiploc_Delete | TIPLOC Delete record]]
* '''BS''' - [[CIF_Basic_schedule | Basic schedule record]]
* '''AA''' - [[CIF_Association_Records | Association Records]]
* '''BX''' - [[CIF_Basic_schedule_extra | Basic schedule extra details record]]
* [[CIF_Schedule_Records | Train Schedule Records]]:
* '''LO''' - [[CIF_Origin_location | Origin location record]]
** '''BS''' - [[CIF_Basic_Schedule | Basic Schedule]]
* '''LI''' - [[CIF_Intermediate_location | Intermediate location record]]
** '''BX''' - [[CIF_Basic_Schedule_Extended | Basic Schedule Extra Details]]
* '''CR''' - [[CIF_Change_en_route | Change en Route]]
** '''TN''' - Train Specific Note (unused)
* '''LT''' - [[CIF_Terminating_location | Terminating location record]]
** '''LO''' - [[CIF Location#LO - Origin Location Record Fields | Origin Location]]
** '''LI''' - [[CIF Location#LI - Intermediate Location Record Fields | Intermediate Location]]
** '''CR''' - [[CIF Location#CR - Change-en-Route Record Fields | Change en Route]]
** '''LT''' - [[CIF Location#LT - Terminating Location Record Fields | Terminating Location]]
** '''LN''' - Location Specific Note (unused)
* '''ZZ''' - Trailer record (End of File)
* '''ZZ''' - Trailer record (End of File)


The [[http://www.atoc.org/download/clientfiles/files/RSPDocuments/CIF%20USER%20SPEC%20v29%20FINAL.pdf|CIF End User Specification]] is also available from ATOC's website, which details the format of the CIF file and the fields within.
== Specification ==
* [https://www.rspaccreditation.org/publicDocumentation.php#RSPS5xxx RSPS5046 Timetable information data feed interface specification (PDF)] (Rail Delivery Group specification based on the Network Rail specification)
* [[:File:CIF End User Spec v29.pdf|Common Interface File (CIF) End User Specification Version 29 (PDF)]] (original Network Rail specification)
 
{{Navtable-CifSchedule}}


{{Navtable-DataFeeds}}
{{Navtable-DataFeeds}}


[[Category:Schedule Data]]
[[Category:Schedule Data]]

Latest revision as of 14:57, 31 July 2024

The Common Interface File (CIF) format is the industry standard for transfer of schedules electronically from Network Rail's Integrated Train Planning System (ITPS) to downstream operational and information systems.

The CIF file is a text file containing one record per row. Each record has a fixed length of 80 characters. The first two characters of a row identify the Record Type.

Record Types

Specification


CIF
CIF HD (Header) • ZZ (End of File)
TIPLOC TI (TIPLOC Insert) TA (TIPLOC Amend) TD (TIPLOC Delete)
Association AA (Association)
Location BS (Basic Schedule) BX (Basic Schedule Extended) LO (Location Origin) LI (Location Intermediate) CR (Change-en-Route) LT (Location Terminate)


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 TIPLOC Records 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 (BPLAN)