Classes
The following classes are available globally.
-
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
-
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.
See moreDeclaration
Objective-C
@interface TKReference : NSObject <NSCopying>
Swift
class TKReference : NSObject, NSCopying
-
Basic Tour model keeping various information about its properties.
See moreDeclaration
Objective-C
@interface TKTour : NSObject
Swift
class TKTour : 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 TKPlace object with details [kit detailedPlaceWithID:@"poi:530" completion:^(TKPlace *place, NSError *e) { if (place) NSLog(@"Let's visit %@!", place.name); else NSLog(@"Something went wrong :/"); }];
Warning
API key must be provided, otherwise using any methods listed below will result in an error being returned in a call completion block.Declaration
Objective-C
@interface TravelKit : NSObject
Swift
class TravelKit : NSObject