Classes
The following classes are available globally.
-
A query object used for fetching specific collections of
See moreTKCollection
objects.Declaration
Objective-C
@interface TKCollectionsQuery : NSObject
Swift
class TKCollectionsQuery : NSObject
-
A query object used for fetching direction data.
See moreDeclaration
Objective-C
@interface TKDirectionsQuery : NSObject
Swift
class TKDirectionsQuery : NSObject
-
A set of directions usable for display.
See moreDeclaration
Objective-C
@interface TKDirectionsSet : NSObject
Swift
class TKDirectionsSet : NSObject
-
A particular direction variant carrying information about a route, its distance and duration.
See moreDeclaration
Objective-C
@interface TKDirection : NSObject
Swift
class TKDirection : NSObject
-
A particular direction step containing an information about a specific route segment.
See moreDeclaration
Objective-C
@interface TKDirectionStep : NSObject
Swift
class TKDirectionStep : NSObject
-
A significant, intermediate stop on the route.
See moreDeclaration
Objective-C
@interface TKDirectionIntermediateStop : NSObject
Swift
class TKDirectionIntermediateStop : NSObject
-
An object containing estimate directions info usable for display.
See moreDeclaration
Objective-C
@interface TKEstimateDirectionsInfo : NSObject
Swift
class TKEstimateDirectionsInfo : NSObject
-
A working manager used to handle direction requests.
See moreDeclaration
Objective-C
@interface TKDirectionsManager : NSObject
Swift
class TKDirectionsManager : NSObject
-
A working manager used to work with Favorites.
See moreDeclaration
Objective-C
@interface TKFavoritesManager : NSObject
Swift
class TKFavoritesManager : NSObject
-
Object entity carrying information about a map point.
See moreDeclaration
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
See moreMKCoordinateRegion
structure.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 moreDeclaration
Objective-C
@interface TKMedium : NSObject
Swift
class TKMedium : NSObject
-
Basic Place model keeping various information about its properties.
See moreDeclaration
Objective-C
@interface TKPlace : NSObject
Swift
class TKPlace : NSObject
-
Place description object.
See moreDeclaration
Objective-C
@interface TKPlaceDescription : NSObject
Swift
class TKPlaceDescription : NSObject
-
Place tag object.
See moreDeclaration
Objective-C
@interface TKPlaceTag : NSObject
Swift
class TKPlaceTag : NSObject
-
Detail object containing further attributes about the Place.
See moreDeclaration
Objective-C
@interface TKPlaceDetail : NSObject
Swift
class TKPlaceDetail : NSObject
-
A working manager used to query for
See morePlace
objects.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
See morequadKeys
(preferred) orbounds
property to specify the area of your interest.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 moreDeclaration
Objective-C
@interface TKReference : NSObject <NSCopying>
Swift
class TKReference : NSObject, NSCopying
-
An object carrying the information about the synchronization loop result.
See moreDeclaration
Objective-C
@interface TKSynchronizationResult : NSObject
Swift
class TKSynchronizationResult : NSObject
-
A working manager used to handle synchronization.
See moreDeclaration
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
See moreTour
objects.Declaration
Objective-C
@interface TKToursManager : NSObject
Swift
class TKToursManager : NSObject
-
Trip Day Item model.
See moreDeclaration
Objective-C
@interface TKTripDayItem : NSObject
Swift
class TKTripDayItem : NSObject
-
Trip Day model.
See moreDeclaration
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
See more-[TKTripsManager saveTrip:]
will store it locally and eventually synchronize after a synchronization loop occurs.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 moreDeclaration
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 moreDeclaration
Objective-C
@interface TKTripConflict : NSObject
Swift
class TKTripConflict : NSObject
-
A working manager used to work with
See moreTrip
objects.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.Declaration
Objective-C
@interface TravelKit : NSObject
Swift
class TravelKit : NSObject