Other Classes

The following classes are available globally.

  • Undocumented

    See more

    Declaration

    Objective-C

    @interface TKLocationManager : TKPermissionManager <CLLocationManagerDelegate>
    
    + (TKLocationManager *)sharedInstance NS_REFINED_FOR_SWIFT;
    
    - (BOOL)showBackgroundTrackingOption;
    
    #pragma mark - Helpers
    
    - (BOOL)annotationIsCurrentLocation:(id<MKAnnotation>)currentLocation
                          orCloseEnough:(BOOL)closeEnough;
    
    - (TKImage *)imageForAnnotation:(id<MKAnnotation>)annotation;
    
    - (nullable TKImage *)accessoryImageForAnnotation:(id<MKAnnotation>)annotation;
    
    #pragma mark - Fetching locations
    
    - (id<MKAnnotation>)currentLocationPlaceholder NS_REFINED_FOR_SWIFT;
    
    - (nullable CLLocation *)lastKnownUserLocation;
    
    - (void)updatedLocation:(CLLocation *)newLocation;
    
    - (void)fetchCurrentLocationWithin:(NSTimeInterval)timeInterval
    													 success:(TKLocationManagerLocationBlock)success
    													 failure:(TKLocationManagerFailureBlock)failure;
    
    /**
     * Subscripes to location updates and trigger the update block whenever
     * the location changes enough.
     *
     * If there's a location fix already, it'll trigger the update before returning!
     */
    - (void)subscribeToLocationUpdatesId:(id<NSCopying>)subscriber
    														onUpdate:(TKLocationManagerLocationBlock)update;
    
    - (void)unsubscribeFromLocationUpdates:(id<NSCopying>)subscriber;
    
    - (void)considerStoppingToUpdateLocation; // for subclasses only!
    
    /**
     * Tells the location manager to execute the provided block
     * when the device gets close to the specified coordinate.
     */
    - (void)monitorRegion:(CLRegion *)region
    						inContext:(NSManagedObjectContext *)context
    					 onApproach:(TKLocationManagerMonitorBlock)block;
    
    /**
     * Tells the location manager to stop monitoring the region
     * associated with the given coordinate, radius and identifier.
     */
    - (void)stopMonitoringCoordinate:(CLLocationCoordinate2D)coordinate
    											withRadius:(CLLocationDistance)radius
    									 AndIdentifier:(NSString *)identifier;
    
    - (void)resetMonitoredRegions;
    
    @end

    Swift

    class TKLocationManager : TKPermissionManager, CLLocationManagerDelegate
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface TKStyleManager : NSObject
    
    + (NSLocale *)applicationLocale;
    
    + (TKColor *)darkTextColor DEPRECATED_MSG_ATTRIBUTE("Use dynamic colors that are compatible with Dark Mode, e.g., from TripKitUI");
    
    + (TKColor *)lightTextColor DEPRECATED_MSG_ATTRIBUTE("Use dynamic colors that are compatible with Dark Mode, e.g., from TripKitUI");
    
    #if TARGET_OS_IPHONE
    + (UIButton *)cellAccessoryButtonWithImage:(UIImage *)image
                                        target:(nullable id)target
                                        action:(nullable SEL)selector;
    #endif
    
    #pragma mark - Image names
    
    + (TKImage *)activityImage:(NSString *)partial;
    
    + (TKImage *)imageNamed:(NSString *)name;
    
    + (nullable TKImage *)optionalImageNamed:(NSString *)name;
    
    + (NSBundle *)bundle;
    
    #pragma mark - Date formatting
    
    + (NSString *)timeString:(NSDate *)time
                 forTimeZone:(nullable NSTimeZone *)timeZone;
    
    + (NSString *)timeString:(NSDate *)time
                 forTimeZone:(nonnull NSTimeZone *)timeZone
          relativeToTimeZone:(nullable NSTimeZone *)relativeTimeZone;
    
    + (NSString *)dateString:(NSDate *)time
    						 forTimeZone:(NSTimeZone *)timeZone;
    
    + (NSString *)stringForDate:(NSDate *)date
                    forTimeZone:(NSTimeZone *)timeZone
                       showDate:(BOOL)showDate
                       showTime:(BOOL)showTime;
    
    + (NSString *)stringForDate:(NSDate *)date
                    forTimeZone:(NSTimeZone *)timeZone
                    forceFormat:(NSString *)format;
    
    + (NSString *)stringForDate:(NSDate *)date
                    forTimeZone:(NSTimeZone *)timeZone
                     forceStyle:(NSDateFormatterStyle)style;
    
    @end

    Swift

    class TKStyleManager : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface TKAutocompletionResult : NSObject
    
    + (TKImage *)imageForType:(TKAutocompletionSearchIcon)type;
    
    + (NSUInteger)scoreBasedOnDistanceFromCoordinate:(CLLocationCoordinate2D)coordinate
                                            toRegion:(MKCoordinateRegion)coordinateRegion
                                        longDistance:(BOOL)longDistance;
    
    /**
     0:   not match, e.g., we're missing a word
     25:  same words but wrong order
     33:  has all target words but missing a completed one
     50:  matches somewhere in the word
     66:  contains all words in right order
     75:  matches start of word in search term (but starts don't match)
     100: exact match at start
     */
    
    + (NSUInteger)scoreBasedOnNameMatchBetweenSearchTerm:(NSString *)searchTerm
                                               candidate:(NSString *)candidate;
    
    + (NSUInteger)rangedScoreForScore:(NSUInteger)score
                       betweenMinimum:(NSUInteger)minimum
                           andMaximum:(NSUInteger)maximum;
    
    + (NSString *)stringForScoringOfString:(NSString *)string;
    
    @property (nonatomic, weak, nullable) id provider;
    @property (nonatomic, strong) id object;
    
    @property (nonatomic, copy) NSString *title;
    @property (nonatomic, copy, nullable) NSString *subtitle;
    @property (nonatomic, strong) TKImage *image;
    @property (nonatomic, strong, nullable) TKImage *accessoryButtonImage;
    
    @property (nonatomic, strong, nullable) NSNumber *isInSupportedRegion;
    
    /**
     A score of how this result should be ranked between 0 and 100
     
     0: probably not a good result
     25: matches only in secondary information
     50: an average match
     75: an good result matching the user input well
     100: this gotta be what the user wanted!
     */
    @property (nonatomic, assign) NSInteger score;
    
    - (NSComparisonResult)compare:(TKAutocompletionResult *)other;
    
    @end
    extension TKAutocompletionResult: Comparable

    Swift

    class TKAutocompletionResult : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface Alert : NSManagedObject
    
    @property (nonatomic, retain, nullable) TKNamedCoordinate *location;
    @property (nonatomic, retain) NSNumber * hashCode;
    @property (nonatomic, copy, nullable) NSString * title;
    @property (nonatomic, retain, nullable) NSString * text;
    @property (nonatomic, retain, nullable) NSString * url;
    @property (nonatomic, retain, nullable) NSString * remoteIcon;
    @property (nonatomic, retain) NSNumber * severity; // Don't access this, use alertSeverity instead
    @property (nonatomic, retain, nullable) NSDate * startTime;
    @property (nonatomic, retain, nullable) NSDate * endTime;
    @property (nonatomic, retain, nullable) NSDictionary<NSString *, id> *action;
    
    @property (nonatomic, retain, nullable) NSString *idService;
    @property (nonatomic, retain, nullable) NSString *idStopCode;
    
    // Non core-data properties
    @property (nonatomic, assign) TKAlertSeverity alertSeverity;
    @property (nonatomic, readonly, nullable) NSURL *imageURL;
    
    + (nullable instancetype)fetchAlertWithHashCode:(NSNumber *)hashCode
                                   inTripKitContext:(NSManagedObjectContext *)tripKitContext;
    
    + (NSArray<Alert *> *)fetchAlertsWithHashCodes:(NSArray *)hashCodes
                                  inTripKitContext:(NSManagedObjectContext *)tripKitContext
                              sortedByDistanceFrom:(CLLocationCoordinate2D)coordinate;
    
    + (NSArray<Alert *> *)fetchAlertsForService:(Service *)service;
    
    + (NSArray<Alert *> *)fetchAlertsForStopLocation:(StopLocation *)stopLocation;
    
    @end
    extension Alert: MKAnnotation

    Swift

    class Alert : NSManagedObject
  • Represents a public transport service

    See more

    Declaration

    Objective-C

    @interface Service : NSManagedObject

    Swift

    class Service : NSManagedObject
  • Represents a public transport service stopping at a particular stop (at a particular time)

    See more

    Declaration

    Objective-C

    @interface StopVisits : NSManagedObject
    extension StopVisits: MKAnnotation
    extension StopVisits: UIActivityItemSource
    extension StopVisits: TKURLShareable

    Swift

    class StopVisits : NSManagedObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface Trip : NSManagedObject {
    }
    
    + (nullable Trip *)findSimilarTripTo:(nonnull Trip *)trip
                                  inList:(nonnull id<NSFastEnumeration>)trips;
    
    #pragma mark - Trip properties
    
    @property (nonatomic, readonly, nonnull) TripRequest *request;
    
    @property (nonatomic, strong, nullable) NSURL *shareURL;
    
    @property (nonatomic, strong, nullable, readonly) NSURL *saveURL;
    
    /**
     Checks if trip is in a usable state for CoreData. Bit of an ugly check to use
     in rare cases before accessing nonnull fields on a Trip object that might have
     seen disappeared from CoreData (and would then crash when using from Swift).
     */
    @property (nonatomic, readonly) BOOL isValid;
    
    - (void)setAsPreferredTrip;
    
    @property (nonatomic, assign) BOOL showNoVehicleUUIDAsLift;
    
    @property (nonatomic, assign) BOOL departureTimeIsFixed;
    
    @property (nonatomic, assign) BOOL hasReminder;
    
    @property (nonatomic, assign) BOOL missedBookingWindow;
    
    @property (nonatomic, assign) BOOL isCanceled;
    
    /**
     @note Only includes walking if it's a walking-only trip!
     @return Set of used mode identifiers.
     */
    - (nonnull NSSet<NSString *> *)usedModeIdentifiers;
    
    @property (readonly) BOOL allowImpossibleSegments;
    
    /* Offset in minutes from the specified departure/arrival time.
     * E.g., if you asked for arrive-by, it'll use the arrival time.
     *
     * If the trip does not satisfy the requested time, it's negative.
     */
    - (NSTimeInterval)calculateOffset;
    
    /* Trip duration, i.e., time between departure and arrival. 
     */
    - (nonnull NSNumber *)calculateDuration;
    
    - (nonnull NSString *)constructPlainText;
    
    - (nonnull NSDictionary<NSNumber *, NSString *> *)accessibleCostValues;
    
    - (nonnull NSString *)debugString;
    
    #pragma mark - Segment accessors
    
    /* Returns all associated segment in their correct order.
     */
    @property (nonnull, readonly) NSArray<TKSegment *> *segments;
    
    /* The first major segment of the trip, according to segment properties (use mainSegment() instead)
     */
    - (nullable TKSegment *)inferMainSegment;
    
    /* Call this before changing the segments of a trip.
     */
    - (void)clearSegmentCaches;
    
    /* The first public transport segment of the trip
     */
    @property (readonly, nullable) TKSegment *firstPublicTransport;
    
    /* All public transport segments of the trip
     */
    @property (nonnull, readonly) NSArray<TKSegment *> *allPublicTransport;
    
    #pragma mark - Visualising trips on the map
    
    - (BOOL)usesVisit:(nonnull StopVisits *)visit;
    
    - (BOOL)shouldShowVisit:(nonnull StopVisits *)visit;
    
    #pragma mark - Real-time stuff
    
    @property (readonly) BOOL isImpossible;
    
    @property (readonly) BOOL timesAreRealTime;
    
    @property (nullable, readonly) Alert *primaryAlert;
    
    @end
    extension Trip: TKTrip
    extension Trip: UIActivityItemSource
    extension Trip: TKURLShareable, TKURLSavable

    Swift

    class Trip : NSManagedObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface TripGroup : NSManagedObject
    
    @property (nonatomic, strong, nullable) NSString * classification;
    @property (nonatomic, strong, nullable) NSNumber * frequency;
    
    /// :nodoc:
    @property (nonatomic, strong) NSNumber * flags;
    
    /// :nodoc:
    @property (nonatomic, strong, nullable) NSArray<id<NSCoding, NSObject>> *sourcesRaw;
    
    /// :nodoc:
    @property (nonatomic, strong) NSNumber * visibilityRaw;
    
    @property (nonatomic, strong, null_resettable) TripRequest *request;
    @property (nonatomic, strong) NSSet<Trip *> *trips;
    @property (nonatomic, strong, nullable) Trip *visibleTrip;
    
    // Non-CoreData properties
    
    @property (nonatomic, assign) TKTripGroupVisibility visibility;
    
    /// :nodoc:
    - (void)adjustVisibleTrip;
    
    - (nullable NSDate *)earliestDeparture;
    
    - (NSSet<NSString *> *)usedModeIdentifiers;
    
    /// :nodoc:
    - (NSString *)debugString;
    
    #pragma mark - Caches
    
    /**
     A set of 'pairIdentifiers' for public transport segments for quicker timetable look-up.
     
     @see DLSEntry
     */
    - (void)setPairIdentifiers:(NSSet<NSString *> *)pairIdentifiers forPublicSegment:(TKSegment *)segment;
    
    - (nullable NSSet<NSString *> *)pairIdentifiersForPublicSegment:(TKSegment *)segment;
    
    #pragma mark - User interaction
    
    /// :nodoc:
    @property (nonatomic, assign) BOOL userDidSaveToCalendar;
    
    @end

    Swift

    class TripGroup : NSManagedObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface TripRequest : NSManagedObject
    
    @property (nonatomic, retain) TKNamedCoordinate *fromLocation;
    @property (nonatomic, retain) TKNamedCoordinate *toLocation;
    @property (nonatomic, retain, nullable) NSString *purpose;
    @property (nonatomic, retain, nullable) TripGroup *preferredGroup;
    @property (nonatomic, strong, nullable) NSDate * arrivalTime;
    @property (nonatomic, strong, nullable) NSDate * departureTime;
    @property (nonatomic, strong) NSDate * timeCreated;
    @property (nonatomic, strong) NSNumber * timeType;
    @property (nonatomic, assign) BOOL expandForFavorite;
    @property (nonatomic, retain) NSArray<NSString *> *excludedStops;
    
    @property (nonatomic, strong, nullable) NSSet <TripGroup *> * tripGroups;
    
    /**
     * Non Core Data property
     */
    
    @property (nonatomic, weak, nullable) TripRequest *replacement;
    @property (nonatomic, assign) TKTripGroupVisibility defaultVisibility;
    
    - (BOOL)resultsInSameQueryAs:(TripRequest *)other;
    
    @property (nonatomic, strong, nullable) TripGroup *lastSelection;
    @property (nonatomic, strong, nullable) Trip *preferredTrip;
    
    - (void)adjustVisibilityForMinimizedModeIdentifiers:(NSSet *)minimized
                                  hiddenModeIdentifiers:(NSSet *)hidden;
    
    /**
     @return The region the complete trip takes place in. Can be international if it spanning more than one region.
     */
    - (TKRegion *)spanningRegion;
    
    /**
     @return The local region this trip starts in. Cannot be international and thus might be nil.
     */
    - (nullable TKRegion *)startRegion;
    
    /**
     @return The local region this trip ends in. Cannot be international and thus might be nil.
     */
    - (nullable TKRegion *)endRegion;
    
    - (NSArray <NSString *> *)applicableModeIdentifiers;
    
    - (nullable NSTimeZone *)departureTimeZone;
    
    - (nullable NSTimeZone *)arrivalTimeZone;
    
    - (NSString *)timeSorterTitle;
    
    - (BOOL)hasTrips;
    
    /**
     @return If any trip has pricing information. Also returns `YES` if there are no trips.
     */
    - (BOOL)priceInformationAvailable;
    
    - (NSString *)debugString;
    
    @end
    extension TripRequest: TKURLShareable

    Swift

    class TripRequest : NSManagedObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface Vehicle : NSManagedObject
    
    // Core Data
    
    @property (nonatomic, retain, nullable) NSNumber * latitude;
    @property (nonatomic, retain, nullable) NSNumber * longitude;
    @property (nonatomic, retain, nullable) NSDate * lastUpdate;
    @property (nonatomic, retain, nullable) NSNumber * bearing;
    @property (nonatomic, retain, nullable) NSData * componentsData;
    @property (nonatomic, retain, nullable) NSString * label;
    @property (nonatomic, retain, nullable) NSString * identifier;
    @property (nonatomic, retain, nullable) NSString * icon;
    @property (nonatomic, retain, nullable) Service *service;
    @property (nonatomic, retain) NSSet<Service *> *serviceAlternatives;
    @property (nonatomic, retain, nullable) SegmentReference *segment;
    @property (nonatomic, retain) NSSet<SegmentReference *> *segmentAlternatives;
    
    // Non-persistent
    
    @property (nonatomic, assign) BOOL displayAsPrimary;
    
    - (void)setSubtitle:(nullable NSString *)title;
    
    @end
    extension Vehicle : MKAnnotation

    Swift

    class Vehicle : NSManagedObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface TKActions : NSObject
    
    /*
     @default YES
     */
    @property (nonatomic, assign) BOOL hasCancel;
    
    /*
     @default UIAlertControllerStyleActionSheet
     */
    @property (nonatomic, assign) UIAlertControllerStyle type;
    
    /*
     The message shown on alert sheets.
     */
    @property (nonatomic, copy) NSString *message;
    
    - (instancetype)initWithTitle:(nullable NSString *)title;
    
    - (void)addAction:(NSString *)title handler:(nullable TKActionBlock)handler;
    
    - (void)setTextFieldWithValue:(NSString *)value
                          handler:(TKActionTextfieldBlock)handler;
    
    - (void)showForSender:(nullable id)sender
             inController:(UIViewController *)controller;
    
    @end

    Swift

    class TKActions : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface TKAlertController : NSObject
    
    + (void)showWithText:(NSString *)text inController:(UIViewController *)controller;
    
    + (void)showWithTitle:(NSString *)title message:(NSString *)message inController:(UIViewController *)controller dismiss:(void(^)(void))dismiss;
    
    @end

    Swift

    class TKAlertController : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface TKPermissionManager : NSObject
    
    @property (nonatomic, strong, nullable) TKPermissionsOpenSettingsHandler openSettingsHandler;
    
    // these are the main interface methods
    
    /**
     * Is the app capable and authorized to use these kind of permissions?
     */
    - (BOOL)isAuthorized;
    
    // subclasses need to implement these
    - (BOOL)featureIsAvailable;
    - (void)askForPermission:(TKPermissionCompletionBlock)completion;
    - (BOOL)authorizationRestrictionsApply;
    - (TKAuthorizationStatus)authorizationStatus;
    - (NSString *)authorizationAlertText;
    
    @end

    Swift

    class TKPermissionManager : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface TKLocationHelper : NSObject
    
    + (nullable NSString *)nameFromPlacemark:(CLPlacemark *)placemark;
    + (nullable NSString *)addressForPlacemark:(CLPlacemark *)placemark;
    + (nullable NSString *)suburbForPlacemark:(CLPlacemark *)placemark;
    + (nullable NSString *)regionNameForPlacemark:(CLPlacemark *)placemark;
    
    + (NSString *)expandAbbreviationInAddressString:(NSString *)address;
    
    + (BOOL)coordinate:(CLLocationCoordinate2D)first isNear:(CLLocationCoordinate2D)second;
    
    @end

    Swift

    class TKLocationHelper : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface TKBetaHelper : NSObject
    
    + (BOOL)isBeta;
    
    + (BOOL)isDev;
    
    @end

    Swift

    class TKBetaHelper : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface TKTransportModes : NSObject
    
    ///-----------------------------------------------------------------------------
    /// @name Handling transport mode identifiers
    ///-----------------------------------------------------------------------------
    
    /**
     @return The default set of mode identifiers
     */
    + (NSArray<NSString *> *)defaultModeIdentifiers;
    
    /**
     @return mode-related part of the image name
     */
    + (NSString *)modeImageNameForModeIdentifier:(NSString *)modeIdentifier;
    
    /**
     @return image that stands for the specified transport mode identifier
     */
    + (TKImage *)imageForModeIdentifier:(NSString *)modeIdentifier;
    
    /**
     Groups the mode identifiers
     
     @param modeIdentifiers A set of all the identifiers to be grouped
     @param addAllGroup     If an extra group which has all the identifiers should be added
     
     @return A set of a set of mode identifiers
     */
    + (NSSet<NSSet<NSString *> *> *)groupedModeIdentifiers:(NSArray<NSString *> *)modeIdentifiers
                                        includeGroupForAll:(BOOL)addAllGroup;
    
    /**
     @return The generic mode identifier part, e.g., `pt_pub` for `pt_pub_bus`,
        which can be used as routing input
     */
    + (NSString *)genericModeIdentifierForModeIdentifier:(NSString *)modeIdentifier;
    
    + (BOOL)modeIdentifierIsPublicTransport:(NSString *)modeIdentifier;
    + (BOOL)modeIdentifierIsWalking:(NSString *)modeIdentifier;
    + (BOOL)modeIdentifierIsWheelchair:(NSString *)modeIdentifier;
    + (BOOL)modeIdentifierIsCycling:(NSString *)modeIdentifier;
    + (BOOL)modeIdentifierIsDriving:(NSString *)modeIdentifier;
    + (BOOL)modeIdentifierIsSharedVehicle:(NSString *)modeIdentifier;
    + (BOOL)modeIdentifierIsAffectedByTraffic:(NSString *)modeIdentifier;
    + (BOOL)modeIdentifierIsFlight:(NSString *)modeIdentifier;
    + (BOOL)modeIdentifierIsExpensive:(NSString *)modeIdentifier;
    
    @end

    Swift

    class TKTransportModes : NSObject
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface TKRoutePolyline : MKPolyline
    
    @property(nonatomic, strong) id<TKDisplayableRoute> route;
    
    @property(nonatomic, copy, nullable) NSString *selectionIdentifier;
    
    + (nullable instancetype)routePolylineForRoute:(id <TKDisplayableRoute>)route;
    
    /**
     @param annotations An array of id<MKAnnotation> objects
     
     @return A geodesic polyline connecting the annotations
     */
    + (nullable MKGeodesicPolyline *)geodesicPolylineForAnnotations:(NSArray<id<MKAnnotation>> *)annotations;
    
    @end

    Swift

    class TKRoutePolyline : MKPolyline
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface TKVehicularHelper : NSObject
    
    /**
     @return Converts the vehicle type string back to a vehicle type
     */
    + (TKVehicleType)vehicleTypeForString:(NSString *)vehicleTypeString;
    
    /**
     @return The vehicle type as a human-readable string.
     */
    + (nullable NSString *)stringForVehicleType:(TKVehicleType)vehicleType;
    
    /**
     @return The vehicle type as an icon.
     */
    + (nullable TKImage *)iconForVehicle:(id<TKVehicular>)vehicle;
    
    /**
     @return Vehicles name if there's one, otherwise it's type to a string
     */
    + (nullable NSString *)titleForVehicle:(id<TKVehicular>)vehicle;
    
    /**
     @return The SkedGo API-compliant dictionary representation of this vehicle
     */
    + (NSDictionary<NSString *, id> *)skedGoFullDictionaryForVehicle:(id<TKVehicular>)vehicle;
    
    /**
     @return The SkedGo API-compliant dictionary representation as a reference to this vehicle which should have been elsewhere provided through a call to `skedGoFullDictionaryForVehicle`.
     */
    + (NSDictionary<NSString *, id> *)skedGoReferenceDictionaryForVehicle:(id<TKVehicular>)vehicle;
    
    @end

    Swift

    class TKVehicularHelper : NSObject
  • A DLSEntry represents the connection of a particular service starting at a particular stop and going all the way an end stop without the passanger having to get off.

    Note

    The arrival represents arriving at the endStop not arriving at the starting stop as is the case for usual instances of StopVisits. This means that arrival is always after (or at the same time as) as departure.

    Note

    The service might not be the same when arriving at endStop but it can instead be one of the start’s

    See more

    Declaration

    Objective-C

    @interface DLSEntry : StopVisits

    Swift

    class DLSEntry : StopVisits
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface TKSegmentBuilder : NSObject
    
    + (nullable NSDictionary<NSString *, NSNumber *> *)_buildSegmentVisitsForSegment:(TKSegment *)segment;
    
    + (nullable NSString *)_tripSegmentModeTitleOfSegment:(TKSegment *)segment;
    + (nullable NSString *)_tripSegmentModeSubtitleOfSegment:(TKSegment *)segment;
    
    + (BOOL)_fillInTemplates:(NSMutableString *)string
                  forSegment:(TKSegment *)segment
                     inTitle:(BOOL)title
               includingTime:(BOOL)includeTime
           includingPlatform:(BOOL)includePlatform;
    
    + (nullable NSString *)_buildPrimaryLocationStringForSegment:(TKSegment *)segment;
    
    + (NSString *)_buildSingleLineInstructionForSegment:(TKSegment *)segment
                                          includingTime:(BOOL)includeTime
                                      includingPlatform:(BOOL)includePlatform
                                        isTimeDependent:(BOOL *)isTimeDependent;
    
    @end

    Swift

    class TKSegmentBuilder : NSObject
  • Declaration

    Swift

    open class TKNamedCoordinate : NSObject, NSSecureCoding, Codable, TKClusterable
    extension TKNamedCoordinate: TKSortableAnnotation
    extension TKNamedCoordinate: TKGeocodable
  • Declaration

    Swift

    public class TKAddressFormatter : NSObject
  • A logger that outputs to the debugging console and the device’s console (via os_log)

    See more

    Declaration

    Swift

    public class TKConsoleLogger : TKLogger
  • The main class to log something from TripKit. The actual logging is done by the TKLogger instances set on the .logger property.

    See more

    Declaration

    Swift

    @objc
    public class TKLog : NSObject
  • Declaration

    Swift

    public class TKGeocoderHelper : NSObject
  • Declaration

    Swift

    public class TKGeocodingResultScorer : NSObject
  • Declaration

    Swift

    @objc
    public class TKModeImageFactory : NSObject
  • Declaration

    Swift

    public class TKError : NSError
  • Declaration

    Swift

    public class TKInternationalRegion : TKRegion
  • TKServer subclass that is forced to hit the provided baseURL for SkedGo calls.

    See more

    Declaration

    Swift

    public class TKRoutingServer : TKServer
  • Information to identify and display a transport mode. Kind of like the big sibling of a mode identifier string.

    See more

    Declaration

    Swift

    public class TKModeInfo : NSObject, Codable, NSSecureCoding
  • Declaration

    Swift

    open class TKModeCoordinate : TKNamedCoordinate
  • Declaration

    Swift

    public class TKStopCoordinate : TKModeCoordinate
  • Declaration

    Swift

    public class TKInfoIcon : NSObject
  • This class encapsulates information about the money cost of a trip segment.

    See more

    Declaration

    Swift

    public class TKLocalCost : NSObject, Codable
  • This class encapsulates information about the map tiles of a trip segment.

    See more

    Declaration

    Swift

    public class TKMapTiles : NSObject, Codable
  • Declaration

    Swift

    public class TKModeHelper : NSObject
  • Declaration

    Swift

    public class TKJSONCache : TKFileCache
  • Declaration

    Swift

    public class TKFileCache : NSObject
  • Declaration

    Swift

    @objc
    public class TKRegionOverlayHelper : NSObject
  • Declaration

    Swift

    @objc(Shape)
    public class Shape : NSManagedObject
    extension Shape: TKDisplayableRoute
  • Represents a public transport location

    See more

    Declaration

    Swift

    @objc(StopLocation)
    public class StopLocation : NSManagedObject
    extension StopLocation: MKAnnotation
    extension StopLocation: UIActivityItemSource
    extension StopLocation: TKURLShareable
  • Declaration

    Swift

    public class TKColoredRoute : NSObject
    extension TKColoredRoute: TKDisplayableRoute
  • Declaration

    Swift

    public class TKDLSTable : NSObject
  • Declaration

    Swift

    public class TKBikePodLocation : TKModeCoordinate
    extension TKBikePodLocation: TKDeepLinkable
  • Declaration

    Swift

    public class TKCarPodLocation : TKModeCoordinate
    extension TKCarPodLocation: TKDeepLinkable
  • Declaration

    Swift

    public class TKCarParkLocation : TKModeCoordinate
    extension TKCarParkLocation: TKDeepLinkable
  • Declaration

    Swift

    public class TKCarRentalLocation : TKModeCoordinate
    extension TKCarRentalLocation: TKDeepLinkable
  • Declaration

    Swift

    public class TKFreeFloatingVehicleLocation : TKModeCoordinate
    extension TKFreeFloatingVehicleLocation: TKDeepLinkable
  • Declaration

    Swift

    public class TKOnStreetParkingLocation : TKModeCoordinate
  • Declaration

    Swift

    @objc(TKNamedCoordinateValueTransformer)
    public final class TKNamedCoordinateValueTransformer : NSSecureUnarchiveFromDataTransformer
  • Declaration

    Swift

    public class TKSegment : NSObject
    extension TKSegment: TKTripSegment
    extension TKSegment: MKAnnotation
    extension TKSegment: UIActivityItemSource
    extension TKSegment: TKURLShareable
  • Declaration

    Swift

    public class TKTripPattern : NSObject
  • Declaration

    Swift

    public class TKReporter
  • Declaration

    Swift

    public class TKShareHelper : NSObject
  • Declaration

    Swift

    public class TKShareURLProvider : UIActivityItemProvider