TKUIRoutingResultsViewController

public class TKUIRoutingResultsViewController : TGCardViewController

The TKUIRoutingResultsViewController class provides a user interface for viewing routing options.

Upon selection of a route by the user, the details of the trip will be displayed.

Customisation points:

  • Configure for showing the routes from the user’s current location to the provided location leaving now.

    Declaration

    Swift

    public init(destination: MKAnnotation)

    Parameters

    destination

    Destination of the trip

  • Configure for showing the routes for the provided trip request

    Use this when you want to customise the departure location to something other than the user’s current location, or when you want to set the departure or arrival time.

    Declaration

    Swift

    public init(request: TripRequest)

    Parameters

    request

    The trip request object, which should be instatiated using TripRequest.insert(...)

  • Declaration

    Swift

    required public init(coder aDecoder: NSCoder)