Warning

This feature is available in the Full MapKit SDK version

MMKSearchResultItem

@interface MMKSearchResultItem : NSObject

Wrapper of the GeoObject in response, which makes it easy to get the certain fields from GeoObject

Summary

Instance methods

- (BOOL)hasDetails;
Does the GeoObject contain details for subtitle

- (nonnull NSArray<MMKSearchSubtitleItem *> *)details;
Details for the subtitle

- (BOOL)isCollection;
Is it a collection GeoObject

- (BOOL)isClosed;
Is the organization closed now

- (BOOL)isOffline;
Is the GeoObject found in offline search

Properties

@property (nonatomic, readonly, nonnull) NSString *id;
Id (constructed inside)

@property (nonatomic, readonly, nonnull) NSString *name;
Name (from GeoObject)

@property (nonatomic, readonly, nullable) NSString *categoryClass;
CategoryClass (optional, first if there are several)

Optional property, can be nil

@property (nonatomic, readonly, nonnull) MMKGeoObject *geoObject;
Wrapped GeoObject itself

@property (nonatomic, readonly, nonnull) MMKPoint *point;
Point from the GeoObject

Instance methods

hasDetails

- (BOOL)hasDetails;

Does the GeoObject contain details for subtitle


details

- (nonnull NSArray<MMKSearchSubtitleItem *> *)details;

Details for the subtitle


isCollection

- (BOOL)isCollection;

Is it a collection GeoObject


isClosed

- (BOOL)isClosed;

Is the organization closed now


isOffline

- (BOOL)isOffline;

Is the GeoObject found in offline search


Properties

id

@property (nonatomic, readonly, nonnull) NSString *id;

Id (constructed inside)


name

@property (nonatomic, readonly, nonnull) NSString *name;

Name (from GeoObject)


categoryClass

@property (nonatomic, readonly, nullable) NSString *categoryClass;

CategoryClass (optional, first if there are several)

Optional property, can be nil.


geoObject

@property (nonatomic, readonly, nonnull) MMKGeoObject *geoObject;

Wrapped GeoObject itself


point

@property (nonatomic, readonly, nonnull) MMKPoint *point;

Point from the GeoObject