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; |
- (nonnull NSArray<MMKSearchSubtitleItem *> *)details; |
- (BOOL)isCollection; |
- (BOOL)isClosed; |
- (BOOL)isOffline; |
Properties
@property (nonatomic, readonly, nonnull) NSString *id; |
@property (nonatomic, readonly, nonnull) NSString *name; |
@property (nonatomic, readonly, nullable) NSString *categoryClass; Optional property, can be nil |
@property (nonatomic, readonly, nonnull) MMKGeoObject *geoObject; |
@property (nonatomic, readonly, nonnull) MMKPoint *point; |
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