SKSearchResult Class Reference

Inherits from NSObject
Declared in SKSearchResult.h

Overview

SKSearchResult stores the information for a search result retrieved by a search.

  type

Describes what the search object represents (country, state, city, street, POI, etc.).

@property (nonatomic, assign) SKSearchResultType type

Discussion

Describes what the search object represents (country, state, city, street, POI, etc.).

Declared In

SKSearchResult.h

  identifier

The unique id of the object.

@property (nonatomic, assign) NSUInteger identifier

Discussion

The unique id of the object.

Declared In

SKSearchResult.h

  name

The name of the search result.

@property (nonatomic, strong) NSString *name

Discussion

The name of the search result.

Declared In

SKSearchResult.h

  parentSearchResults

Array with the search results' parents (SKSearchResultParent objects). e.g. for a street, it will contain: country, state and city.

@property (nonatomic, strong) NSArray<SKSearchResultParent*> *parentSearchResults

Discussion

Array with the search results' parents (SKSearchResultParent objects). e.g. for a street, it will contain: country, state and city.

Declared In

SKSearchResult.h

  coordinate

The coordinate of the search result.

@property (nonatomic, assign) CLLocationCoordinate2D coordinate

Discussion

The coordinate of the search result.

Declared In

SKSearchResult.h

  category

Available only for POIs. It describes what category the POI belongs to (e.g. bar, pub, hotel, etc.).

@property (nonatomic, assign) SKPOICategory category

Discussion

Available only for POIs. It describes what category the POI belongs to (e.g. bar, pub, hotel, etc.).

Declared In

SKSearchResult.h

  mainCategory

Available only for POIs. It describes what main category the POI belongs to. While there are hundreds of categories, only few main categories are defined, for clearer categorization.

@property (nonatomic, assign) SKPOIMainCategory mainCategory

Discussion

Available only for POIs. It describes what main category the POI belongs to. While there are hundreds of categories, only few main categories are defined, for clearer categorization.

Declared In

SKSearchResult.h

  offlinePackageCode

The code of the offline package containing the map data (e.g. “FR”, “DE”, “ROCITY01”, etc.). Needed when performing offline geocoding.

@property (nonatomic, strong) NSString *offlinePackageCode

Discussion

The code of the offline package containing the map data (e.g. “FR”, “DE”, “ROCITY01”, etc.). Needed when performing offline geocoding.

Declared In

SKSearchResult.h

+ searchResult

Creates a newly initialized SKSearchResult object.

+ (instancetype)searchResult

Discussion

Creates a newly initialized SKSearchResult object.

Declared In

SKSearchResult.h