Warning

This feature is available in the Full MapKit SDK version

YMKSearchResponse

@interface YMKSearchResponse : NSObject

Top level structure for search response.

Summary

Class methods

+ (nonnull YMKSearchResponse *)responseWithMetadata:(nonnull YMKSearchMetadata *)metadata
                                         collection:(nonnull YMKGeoObjectCollection *)collection
                                          isOffline:( BOOL)isOffline;

Properties

@property (nonatomic, readonly, nonnull) YMKSearchMetadata *metadata;
Extended response information

@property (nonatomic, readonly, nonnull) YMKGeoObjectCollection *collection;
List of objects (organizations, toponyms) in search response

@property (nonatomic, readonly) BOOL isOffline;
Flag describing if this response was built offline

Class methods

responseWithMetadata:collection:isOffline:

+ (nonnull YMKSearchResponse *)responseWithMetadata:(nonnull YMKSearchMetadata *)metadata
                                         collection:(nonnull YMKGeoObjectCollection *)collection
                                          isOffline:( BOOL)isOffline;


Properties

metadata

@property (nonatomic, readonly, nonnull) YMKSearchMetadata *metadata;

Extended response information.


collection

@property (nonatomic, readonly, nonnull) YMKGeoObjectCollection *collection;

List of objects (organizations, toponyms) in search response.


isOffline

@property (nonatomic, readonly) BOOL isOffline;

Flag describing if this response was built offline.