Specifically, it obtains trains for the Red, Orange, and Blue Lines. The interface uses a Station
class to obtain station attributes from the RealTimeHeavyRailKeys.csv
file.
The next_trains
method returns a list of incoming trains. Each element in the list contains information about the train, in the order of: Line, Direction, Type (Predicted to Arrive or Arriving), Time of Arrival, Time Until Arrival.