Schedule Records

From Open Rail Data Wiki
Revision as of 06:39, 20 May 2013 by Jonathon Hurley (talk | contribs) (First version, added details on schedule fields)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Schedule records are contained within the SCHEDULE data feed, and provide information about the possible schedules available for trains. For a given train service, there may be multiple schedules listed - the date of the train service and any short / very-short term plans will affect which schedule is current.

Schedule records are encoded as a JSON hash with a key of "JsonScheduleV1" and a value containing the schedule data.

Schedule Record Fields

Field Description
CIF_train_uid The unique identifier for the schedule.

This is made up of a letter plus five numbers. There may be multiple schedules for one schedule UID. See also the train_uid field of the TRUST Train Activation message type.

transaction_type create or delete
schedule_start_date The start date of the schedule
schedule_end_date The end date of the schedule
schedule_days_runs A seven-character field; character 1 represents Monday, character 7 represents Sunday. A 1 in a character position means that the service runs on that day, while a 0 means that it does not.

Note: this field is called schedule_days_runs within the JSON file.

CIF_bank_holiday_running Bank holiday running code
  • X - Does not run on specified Bank Holiday Mondays
  • G - Does not run on Glasgow Bank Holidays
train_status Train status

See codes used in CIF files

CIF_train_category Train category

See codes used in CIF files

signalling_id For passenger services, this is the headcode of the service. For freight services this will be blank.
CIF_headcode Blank
CIF_course_indicator Not used
CIF_train_service_code Divides trains into service groups and used for revenue reasons
CIF_business_sector Formery used to denote the business sector running the service; now represent the Portion ID for services which join or split
CIF_power_type Power type

See codes used in CIF files

CIF_timing_load Timing load

See codes used in CIF files

CIF_speed Planned speed of the train service
CIF_operating_characteristics Operating characteristics

See codes used in CIF files

CIF_train_class Seating classes available:
  • Blank or B - First and standard
  • S - Standard class only
CIF_sleepers Sleeping accommodation available:
  • B - First and standard class
  • F - First Class only
  • S - Standard class only
CIF_reservations Reservation recommendations:
  • A - Reservations compulsory
  • E - Reservations for bicycles essential
  • R - Reservations recommended
  • S - Reservations possible from any station
CIF_connection_indicator Not used
CIF_catering_code Up to two characters from the following:
  • C - Buffet Service
  • F - Restaurant Car available for First Class passengers
  • H - Hot food available
  • M - Meal included for First Class passengers
  • P - Wheelchair only reservations
  • R - Restaurant
  • T - Trolley service
CIF_service_branding Service brand:
  • E - Eurostar
CIF_stp_indicator STP (short-term planning) schedule indicator
  • C - STP cancellation of permanent schedule
  • N - New STP schedule (not an overlay)
  • O - STP overlay of permanent schedule
  • P - Permanent
traction_class Not used
uic_code Union Internationale des Chemins de Fer code for the service
atoc_code ATOC code

See codes used in CIF files

applicable_timetable Applicable timetable service?
  • Y - Train is subject to performance monitoring (Applicable Timetable Service)
  • N - Train is not subject to performance monitoring (Not Applicable Timetable Service)