Trip Planning
TripKit’s trip planning capabilities provide wrappers around SkedGo’s routing APIs, parsing and caching the results, and encapsulating the logic for dealing with regions and available modes.
Refer to the following classes:
- For A-to-B multi-modal routing:
TKRouter
- Routing with waypoints:
TKWaypointRouter
- Real-time updates:
TKRealTimeFetcher
-
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
public class TKRealTimeFetcher
-
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