Classes

The following classes are available globally.

  • A query object used for fetching specific collections of TKCollection objects.

    See more

    Declaration

    Objective-C

    @interface TKCollectionsQuery : NSObject

    Swift

    class TKCollectionsQuery : NSObject
  • A query object used for fetching direction data.

    See more

    Declaration

    Objective-C

    @interface TKDirectionsQuery : NSObject

    Swift

    class TKDirectionsQuery : NSObject
  • A set of directions usable for display.

    See more

    Declaration

    Objective-C

    @interface TKDirectionsSet : NSObject

    Swift

    class TKDirectionsSet : NSObject
  • A particular direction variant carrying information about a route, its distance and duration.

    See more

    Declaration

    Objective-C

    @interface TKDirection : NSObject

    Swift

    class TKDirection : NSObject
  • A particular direction step containing an information about a specific route segment.

    See more

    Declaration

    Objective-C

    @interface TKDirectionStep : NSObject

    Swift

    class TKDirectionStep : NSObject
  • A significant, intermediate stop on the route.

    See more

    Declaration

    Objective-C

    @interface TKDirectionIntermediateStop : NSObject

    Swift

    class TKDirectionIntermediateStop : NSObject
  • An object containing estimate directions info usable for display.

    See more

    Declaration

    Objective-C

    @interface TKEstimateDirectionsInfo : NSObject

    Swift

    class TKEstimateDirectionsInfo : NSObject
  • A working manager used to handle direction requests.

    See more

    Declaration

    Objective-C

    @interface TKDirectionsManager : NSObject

    Swift

    class TKDirectionsManager : NSObject
  • A working manager used to work with Favorites.

    See more

    Declaration

    Objective-C

    @interface TKFavoritesManager : NSObject

    Swift

    class TKFavoritesManager : NSObject
  • Object entity carrying information about a map point.

    See more

    Declaration

    Objective-C

    @interface TKMapPlaceAnnotation : NSObject <MKAnnotation>

    Swift

    class TKMapPlaceAnnotation : NSObject, MKAnnotation
  • Object entity carrying information about a coordinate region.

    This is a simple object whose main purpose is to wrap up the MKCoordinateRegion structure.

    See more

    Declaration

    Objective-C

    @interface TKMapRegion : NSObject

    Swift

    class TKMapRegion : NSObject
  • Entity preserving information about a remote displayable Medium, f.e. an Image or a Video.

    See more

    Declaration

    Objective-C

    @interface TKMedium : NSObject

    Swift

    class TKMedium : NSObject
  • Basic Place model keeping various information about its properties.

    See more

    Declaration

    Objective-C

    @interface TKPlace : NSObject

    Swift

    class TKPlace : NSObject
  • Place description object.

    See more

    Declaration

    Objective-C

    @interface TKPlaceDescription : NSObject

    Swift

    class TKPlaceDescription : NSObject
  • Place tag object.

    See more

    Declaration

    Objective-C

    @interface TKPlaceTag : NSObject

    Swift

    class TKPlaceTag : NSObject
  • Detail object containing further attributes about the Place.

    See more

    Declaration

    Objective-C

    @interface TKPlaceDetail : NSObject

    Swift

    class TKPlaceDetail : NSObject
  • A working manager used to query for Place objects.

    See more

    Declaration

    Objective-C

    @interface TKPlacesManager : NSObject

    Swift

    class TKPlacesManager : NSObject
  • A query object used for fetching specific collections of TKPlace objects.

    To perform regional queries, use either quadKeys (preferred) or bounds property to specify the area of your interest.

    See more

    Declaration

    Objective-C

    @interface TKPlacesQuery : NSObject <NSCopying, NSMutableCopying>

    Swift

    class TKPlacesQuery : NSObject, NSCopying, NSMutableCopying
  • Entity handling basic information about additional linked content. References are entities that represent places’ relations to other websites, articles, social networks, rental options, passes, tickets, tours, accomodation providers, parkings, transfers and other services. For more information please see Sygic Travel API

    See more

    Declaration

    Objective-C

    @interface TKReference : NSObject <NSCopying>

    Swift

    class TKReference : NSObject, NSCopying
  • An object carrying the information about the synchronization loop result.

    See more

    Declaration

    Objective-C

    @interface TKSynchronizationResult : NSObject

    Swift

    class TKSynchronizationResult : NSObject
  • A working manager used to handle synchronization.

    See more

    Declaration

    Objective-C

    @interface TKSynchronizationManager : NSObject

    Swift

    class TKSynchronizationManager : NSObject
  • Declaration

    Objective-C

    @interface TKTour : NSObject

    Swift

    class TKTour : NSObject
  • A working manager used to query for Tour objects.

    See more

    Declaration

    Objective-C

    @interface TKToursManager : NSObject

    Swift

    class TKToursManager : NSObject
  • Query object used for fetching specific collections of TKTour objects from Viator.

    See more

    Declaration

    Objective-C

    @interface TKToursViatorQuery : NSObject <NSCopying, NSMutableCopying>

    Swift

    class TKToursViatorQuery : NSObject, NSCopying, NSMutableCopying
  • Query object used for fetching specific collections of TKTour objects from GetYourGuide.

    See more

    Declaration

    Objective-C

    @interface TKToursGYGQuery : NSObject <NSCopying, NSMutableCopying>

    Swift

    class TKToursGYGQuery : NSObject, NSCopying, NSMutableCopying
  • Trip Day Item model.

    See more

    Declaration

    Objective-C

    @interface TKTripDayItem : NSObject

    Swift

    class TKTripDayItem : NSObject
  • Trip Day model.

    See more

    Declaration

    Objective-C

    @interface TKTripDay : NSObject

    Swift

    class TKTripDay : NSObject
  • The primary Trip model to work with.

    You may work with this object freely. Once you edit its contents according to needs, simply saving the trip via -[TKTripsManager saveTrip:] will store it locally and eventually synchronize after a synchronization loop occurs.

    See more

    Declaration

    Objective-C

    @interface TKTrip : NSObject

    Swift

    class TKTrip : NSObject
  • Lightweight, read-only Trip Info model. Useful for listings, collections and similar stuff. Includes same information as TKTrip, but does not carry whole TKTripDayItems, but only information about their count. TKTripInfo can not be used to delete whole trip.

    See more

    Declaration

    Objective-C

    @interface TKTripInfo : NSObject

    Swift

    class TKTripInfo : NSObject
  • Trip Conflict model.

    This object is used to specify the user’s decision whether to keep a local (on device) version of a particular trip or prefer the the remote (server) version contributed in the meantime.

    See more

    Declaration

    Objective-C

    @interface TKTripConflict : NSObject

    Swift

    class TKTripConflict : NSObject
  • A working manager used to work with Trip objects.

    See more

    Declaration

    Objective-C

    @interface TKTripsManager : NSObject

    Swift

    class TKTripsManager : NSObject
  • The main class currently used for authentication and data fetching. It provides a singleton instance with the public +sharedKit method which may be used to work with the Travel backend.

    The basic workflow is pretty straightforward – to start using TravelKit, you only need a couple of lines to get the desired data.

    // Get shared instance
    TravelKit *kit = [TravelKit sharedKit];
    
    // Set your API key
    kit.APIKey = @"<YOUR_API_KEY_GOES_HERE>";
    
    // Ask kit for Eiffel Tower TKDetailedPlace object with details
    [kit.places detailedPlaceWithID:@"poi:530" completion:^(TKDetailedPlace *place, NSError *e) {
        if (place) NSLog(@"Let's visit %@!", place.name);
        else NSLog(@"Something went wrong :/");
    }];
    
     // Use shared instance to set your API key
     TravelKit.shared.apiKey = "<YOUR_API_KEY_GOES_HERE>"
    
     // Ask TKPlaceManager for Eiffel Tower TKDetailedPlace object with details
     TravelKit.shared.places.detailedPlace(withID: "poi:530") { (place, e) in
         if let place = place {
            print("Let's visit \(place.name)")
         }
         else {
            print("Something went wrong :/")
         }
     }
    

    Warning

    API key must be provided, otherwise using any methods listed above will result in an error being returned in a call completion block.
    See more

    Declaration

    Objective-C

    @interface TravelKit : NSObject

    Swift

    class TravelKit : NSObject