Association Records

Associations are relationships between two schedules (i.e. a main train and an associated train.) Association records are contained within the SCHEDULE data feed, and provide information about the possible associations between train schedules. These can list the service that forms a given schedule and / or the service that a given schedule goes on to form.

For further details, see the Network Rail Common Interface Format file specification.

= Record Layout =

Association records are encoded as a JSON hash with a key of "JsonAssociationV1" and a value containing the association data, in the following layout:

JsonAssociationV1: transaction_type main_train_uid assoc_train_uid assoc_start_date assoc_end_date assoc_days category date_indicator location base_location_suffix assoc_location_suffix diagram_type CIF_stp_indicator

= Association Record Fields =