TKUITimetableViewController

public class TKUITimetableViewController : TGCardViewController

The TKUITimetableViewController class provides a user interface for viewing the departures from a public transport stop or for viewing the public transport connections between two public transport stops.

Upon selection of a departure by the user, the details of the service will be displayed.

Customisation points:

  • Declaration

    Swift

    public var timetableDelegate: TKUITimetableViewControllerDelegate?
  • Configure for showing the departures from a public transport stop.

    Make sure that the stop provides the correct region and stop code, or otherwise you’ll get a blank view. Best to use stop annotations provided from TripKit, e.g., from TKSkedGoGeocoder.

    Declaration

    Swift

    public init(stop: TKUIStopAnnotation, filter: String? = nil)

    Parameters

    stop

    The stop for which to show departures, includes departures from any child stops (e.g., platforms)

    filter

    An optional string used to filter the resulting departures

  • Configure for showing the connections between two public transport stops.

    Declaration

    Swift

    public init(dlsTable: TKDLSTable, startDate: Date = Date())

    Parameters

    dlsTable

    The object describing what pair of stops for which you want connections

    startDate

    Optional date of first connection, defaults to current time

  • Declaration

    Swift

    required public init(coder aDecoder: NSCoder)