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:
TKUICustomization
for the visual style of the cardsTKUIRoutingResultsCard
.TKUIRoutingResultsCard/config
for the comparison of routing optionsTKUITripOverviewCard
.TKUITripOverviewCard/config
for the trip detailsTKUITripModeByModeCard
.TKUITripModeByModeCard/config
for the step-by-step details of a trip
-
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(from:to:for:timeType:info:)
-
Undocumented
Declaration
Swift
required public init(coder aDecoder: NSCoder)