Trip Planning
-
A TKRouter calculates trips for routing requests, it talks to TripGo’s
See morerouting.json
API.Declaration
Swift
@objc public class TKRouter : NSObject
-
Undocumented
See moreDeclaration
Swift
From TripKitUI:public class TKRealTimeFetcher
extension TKRealTimeFetcher: @retroactive ReactiveCompatible
-
Provides helper methods around TripGo API’s
waypoint.json
endpointFor planning A-to-B-via-C trips, including building trip that follow a specific segment pattern.
See moreDeclaration
Swift
public enum TKWaypointRouter
-
A trip classifier is used to classify
TripGroup
instances within the sameTripRequest
.Classifications should be string constants.
For an example see
See moreTKMetricClassifier
Declaration
Swift
public protocol TKTripClassifier
-
Undocumented
See moreDeclaration
-
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
Declaration
Swift
@MainActor public class TKUIRoutingResultsViewController : TGCardViewController
-
TKUIRoutingResultsViewControllerDelegate
From TripKitUIUndocumented
Declaration
Swift
public protocol TKUIRoutingResultsViewControllerDelegate : TGCardViewControllerDelegate
-
An interactive card for displaying routing results, including updating from/to location, time and selected modes.
Can be used standalone or via
See moreTKUIRoutingResultsViewController
.Declaration
Swift
@MainActor public class TKUIRoutingResultsCard : TKUITableCard
extension TKUIRoutingResultsCard: UITableViewDelegate
extension TKUIRoutingResultsCard: TKUIRoutingQueryInputCardDelegate
extension TKUIRoutingResultsCard: TKUITimePickerSheetDelegate
-
Undocumented
See moreDeclaration
Swift
public protocol TKUIRoutingResultsCardDelegate : AnyObject
-
An interactive card for searching for from and to locations.
Can be used standalone and is also integrated into
TKUIRoutingResultsCard
.When using standalone, you can provide a
See morequeryDelegate
to determine what to do when the “Route” button is pressed. Otherwise, aTKUIRoutingResultsCard
will be pushed onto the card stack.Declaration
Swift
@MainActor public class TKUIRoutingQueryInputCard : TKUITableCard
extension TKUIRoutingQueryInputCard: UITableViewDelegate
-
Undocumented
See moreDeclaration
Swift
public protocol TKUIRoutingQueryInputCardDelegate : AnyObject
-
The
TKUITripOverviewViewController
class provides a user interface for viewing a individual trip.Customisation points:
TKUICustomization
for the visual style of the cardsTKUITripOverviewCard.config
for the trip detailsTKUITripModeByModeCard.config
for the step-by-step details of a trip
Declaration
Swift
@MainActor public class TKUITripOverviewViewController : TGCardViewController
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUITripOverviewCard : TKUITableCard
extension TKUITripOverviewCard: TKUITripModeByModeCardDelegate
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUITripModeByModeViewController : TGCardViewController
-
TKUITripModeByModeViewControllerDelegate
From TripKitUIUndocumented
Declaration
Swift
public protocol TKUITripModeByModeViewControllerDelegate : TGCardViewControllerDelegate
-
Undocumented
See moreDeclaration
Swift
@MainActor public class TKUITripModeByModeCard : TGPageCard
-
Undocumented
See moreDeclaration
Swift
public protocol TKUITripModeByModePageBuilder