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:

  • A TKRouter calculates trips for routing requests, it talks to TripGo’s routing.json API.

    See more

    Declaration

    Swift

    @objc
    public class TKRouter : NSObject
  • Undocumented

    See more

    Declaration

    Swift

    public class TKRealTimeFetcher
  • Provides helper methods around TripGo API’s waypoint.json endpoint

    For planning A-to-B-via-C trips, including building trip that follow a specific segment pattern.

    See more

    Declaration

    Swift

    public enum TKWaypointRouter
  • A trip classifier is used to classify TripGroup instances within the same TripRequest.

    Classifications should be string constants.

    For an example see TKMetricClassifier

    See more

    Declaration

    Swift

    public protocol TKTripClassifier
  • Undocumented

    See more

    Declaration

    Swift

    public class TKMetricClassifier : NSObject
    extension TKMetricClassifier: TKTripClassifier