Warning

This feature is available in the Full MapKit SDK version

YMKSearchMetadata

@interface YMKSearchMetadata : NSObject <YMKBaseMetadata>

Additional info for search response;

Summary

Class methods

+ (nonnull YMKSearchMetadata *)searchMetadataWithFound:( NSInteger)found
                                           displayType:( YMKSearchDisplayType)displayType
                                           boundingBox:(nullable YMKBoundingBox *)boundingBox
                                                  sort:(nullable YMKSearchSort *)sort
                                               toponym:(nullable YMKGeoObject *)toponym
                                 toponymResultMetadata:(nullable YMKSearchToponymResultMetadata *)toponymResultMetadata
                                businessResultMetadata:(nullable YMKSearchBusinessResultMetadata *)businessResultMetadata
                                                 reqid:(nonnull NSString *)reqid
                                               context:(nonnull NSString *)context
                                           requestText:(nonnull NSString *)requestText
                                  correctedRequestText:(nullable NSString *)correctedRequestText
                                    requestBoundingBox:(nullable YMKBoundingBox *)requestBoundingBox;

Properties

@property (nonatomic, readonly) NSInteger found;
Approximate number of found objects

@property (nonatomic, readonly) YMKSearchDisplayType displayType;
Display type

@property (nonatomic, readonly, nullable) YMKBoundingBox *boundingBox;
Bounding box of the response as a whole

@property (nonatomic, readonly, nullable) YMKSearchSort *sort;
Server-chosen sorting

@property (nonatomic, readonly, nullable) YMKGeoObject *toponym;
Geocoder response to the toponym part of the query

@property (nonatomic, readonly, nullable)
    YMKSearchToponymResultMetadata *toponymResultMetadata;

Additional info for the response from toponym search

@property (nonatomic, readonly, nullable)
    YMKSearchBusinessResultMetadata *businessResultMetadata;

Additional info for the response from organization search

@property (nonatomic, readonly, nonnull) NSString *reqid;
Server-generated request ID

@property (nonatomic, readonly, nonnull) NSString *context;
Server-generated request context

@property (nonatomic, readonly, nonnull) NSString *requestText;
Initial request text

@property (nonatomic, readonly, nullable) NSString *correctedRequestText;
Initial request text with correction of spelling mistakes

@property (nonatomic, readonly, nullable) YMKBoundingBox *requestBoundingBox;
Initial request bounding box

Class methods

searchMetadataWithFound:displayType:boundingBox:sort:toponym:toponymResultMetadata:businessResultMetadata:reqid:context:requestText:correctedRequestText:requestBoundingBox:

+ (nonnull YMKSearchMetadata *)searchMetadataWithFound:( NSInteger)found
                                           displayType:( YMKSearchDisplayType)displayType
                                           boundingBox:(nullable YMKBoundingBox *)boundingBox
                                                  sort:(nullable YMKSearchSort *)sort
                                               toponym:(nullable YMKGeoObject *)toponym
                                 toponymResultMetadata:(nullable YMKSearchToponymResultMetadata *)toponymResultMetadata
                                businessResultMetadata:(nullable YMKSearchBusinessResultMetadata *)businessResultMetadata
                                                 reqid:(nonnull NSString *)reqid
                                               context:(nonnull NSString *)context
                                           requestText:(nonnull NSString *)requestText
                                  correctedRequestText:(nullable NSString *)correctedRequestText
                                    requestBoundingBox:(nullable YMKBoundingBox *)requestBoundingBox;


Properties

found

@property (nonatomic, readonly) NSInteger found;

Approximate number of found objects.


displayType

@property (nonatomic, readonly) YMKSearchDisplayType displayType;

Display type.


boundingBox

@property (nonatomic, readonly, nullable) YMKBoundingBox *boundingBox;

Bounding box of the response as a whole.

Optional field, can be nil.


sort

@property (nonatomic, readonly, nullable) YMKSearchSort *sort;

Server-chosen sorting.

Optional field, can be nil.


toponym

@property (nonatomic, readonly, nullable) YMKGeoObject *toponym;

Geocoder response to the toponym part of the query.

Optional field, can be nil.


toponymResultMetadata

@property (nonatomic, readonly, nullable)
    YMKSearchToponymResultMetadata *toponymResultMetadata;

Additional info for the response from toponym search.

Optional field, can be nil.


businessResultMetadata

@property (nonatomic, readonly, nullable)
    YMKSearchBusinessResultMetadata *businessResultMetadata;

Additional info for the response from organization search.

Optional field, can be nil.


reqid

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

Server-generated request ID.


context

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

Server-generated request context.


requestText

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

Initial request text.


correctedRequestText

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

Initial request text with correction of spelling mistakes.

Optional field, can be nil.


requestBoundingBox

@property (nonatomic, readonly, nullable) YMKBoundingBox *requestBoundingBox;

Initial request bounding box.

Optional field, can be nil.