Classes

The following classes are available globally.

  • 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
  • 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.

    See more

    Declaration

    Objective-C

    @interface TKReference : NSObject <NSCopying>

    Swift

    class TKReference : NSObject, NSCopying
  • Basic Tour model keeping various information about its properties.

    See more

    Declaration

    Objective-C

    @interface TKTour : NSObject

    Swift

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

    See more

    Declaration

    Objective-C

    @interface TKToursQuery : NSObject <NSCopying, NSMutableCopying>

    Swift

    class TKToursQuery : NSObject, NSCopying, NSMutableCopying
  • 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.
    See more

    Declaration

    Objective-C

    @interface TravelKit : NSObject

    Swift

    class TravelKit : NSObject