TKPlace
@interface TKPlace : NSObject
Basic Place model keeping various information about its properties.
-
Global identifier.
Note
You can find IDs of countries in Google Sheets or CSV file, you can also find IDs of top cities in Google Sheets and CSV file as well.Declaration
Objective-C
@property (readwrite, copy, nonatomic) NSString *_Nonnull ID;
Swift
var ID: String { get set }
-
Displayable name of the place, translated if possible. Example: Buckingham Palace.
Declaration
Objective-C
@property (readwrite, copy, nonatomic) NSString *_Nonnull name;
Swift
var name: String { get set }
-
Displayable name suffix. Example: London, United Kingdom.
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSString *suffix;
Swift
var suffix: String? { get set }
-
Denotable place level. Each place has a level property that describes the type of the place by administration level.
See
TKPlaceLevel
Declaration
Objective-C
@property (assign, readwrite, atomic) TKPlaceLevel level;
Swift
var level: TKPlaceLevel { get set }
-
Short perex introducing the place.
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSString *perex;
Swift
var perex: String? { get set }
-
Location of the place.
Declaration
Objective-C
@property (readwrite, strong, nonatomic) CLLocation *_Nonnull location;
Swift
var location: CLLocation { get set }
-
18-character Quad key representing map tile coordinate using Mercator (Google/Bing) projection. For details see Bing Maps docs or maptiler.org .
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSString *quadKey;
Swift
var quadKey: String? { get set }
-
Bounding box. Object with south-west and north-east point in degrees. Specifies bounds of places that have an area.
Declaration
Objective-C
@property (readwrite, strong, nonatomic, nullable) TKMapRegion *boundingBox;
Swift
var boundingBox: TKMapRegion? { get set }
-
Global rating value.
Note
Possible values: double in range0
–10.0
.Declaration
Objective-C
@property (readwrite, strong, nonatomic, nullable) NSNumber *rating;
Swift
var rating: NSNumber? { get set }
-
Marker identifier usable for displayable icon. For more information please see Sygic Travel API .
Note
For a full list of all available markers see Markers sheetDeclaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSString *marker;
Swift
var marker: String? { get set }
-
List of Category slugs assigned. For more information please see Sygic Travel API .
See
TKPlaceCategory
Declaration
Objective-C
@property (assign, readwrite, atomic) TKPlaceCategory categories;
Swift
var categories: TKPlaceCategory { get set }
-
List of Parent IDs. Parent IDs are IDs of other places. These parent places can be for example the geographical units the place is part of. This can be useful when working with a map, searching for cities by location, etc.
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSArray<NSString *> *parents;
Swift
var parents: [String]? { get set }
-
List of custom flags.
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSArray<NSString *> *flags;
Swift
var flags: [String]? { get set }
-
Thumbnail URL to an image of size 150×150 pixels.
Declaration
Objective-C
@property (readwrite, strong, nonatomic, nullable) NSURL *thumbnailURL;
Swift
var thumbnailURL: URL? { get set }
-
Default HEX colour value. Values
0x000000
through0xFFFFFF
.Declaration
Objective-C
@property (readonly, atomic) NSUInteger displayableHexColor;
Swift
var displayableHexColor: UInt { get }