Warning

This feature is available in the Full MapKit SDK version

MMKSearchBusinessResultMetadata

@interface MMKSearchBusinessResultMetadata : NSObject

Common info for business search response.

Summary

Class methods

+ (nonnull MMKSearchBusinessResultMetadata *)businessResultMetadataWithCategories:(nonnull NSArray<MMKSearchCategory *> *)categories
                                                                           chains:(nonnull NSArray<MMKSearchChain *> *)chains
                                                                  businessFilters:(nonnull NSArray<MMKSearchBusinessFilter *> *)businessFilters
                                                                 importantFilters:(nullable MMKSearchFilterSet *)importantFilters
                                                                 pricesCurrencies:(nonnull NSArray<NSString *> *)pricesCurrencies;

Properties

@property (nonatomic, readonly, nonnull)
    NSArray<MMKSearchCategory *> *categories;

List of categories (also known as rubrics) present in response

@property (nonatomic, readonly, nonnull) NSArray<MMKSearchChain *> *chains;
List of chains present in response

@property (nonatomic, readonly, nonnull)
    NSArray<MMKSearchBusinessFilter *> *businessFilters;

List of applicable filters

@property (nonatomic, readonly, nullable) MMKSearchFilterSet *importantFilters;
Collection of filters that probably are of utmost interest to the user

@property (nonatomic, readonly, nonnull) NSArray<NSString *> *pricesCurrencies;
Relevant currency for the prices

Class methods

businessResultMetadataWithCategories:chains:businessFilters:importantFilters:pricesCurrencies:

+ (nonnull MMKSearchBusinessResultMetadata *)businessResultMetadataWithCategories:(nonnull NSArray<MMKSearchCategory *> *)categories
                                                                           chains:(nonnull NSArray<MMKSearchChain *> *)chains
                                                                  businessFilters:(nonnull NSArray<MMKSearchBusinessFilter *> *)businessFilters
                                                                 importantFilters:(nullable MMKSearchFilterSet *)importantFilters
                                                                 pricesCurrencies:(nonnull NSArray<NSString *> *)pricesCurrencies;


Properties

categories

@property (nonatomic, readonly, nonnull)
    NSArray<MMKSearchCategory *> *categories;

List of categories (also known as rubrics) present in response. Non-empty list means that the request was treated as a 'category request' by the server (for example requests like "where to eat", "cinema", and other).


chains

@property (nonatomic, readonly, nonnull) NSArray<MMKSearchChain *> *chains;

List of chains present in response. Non-empty list means that the request was treaded as 'chain request' (for example "mcdonalds", "starbucks", and other).


businessFilters

@property (nonatomic, readonly, nonnull)
    NSArray<MMKSearchBusinessFilter *> *businessFilters;

List of applicable filters.


importantFilters

@property (nonatomic, readonly, nullable) MMKSearchFilterSet *importantFilters;

Collection of filters that probably are of utmost interest to the user.

Optional field, can be nil.


pricesCurrencies

@property (nonatomic, readonly, nonnull) NSArray<NSString *> *pricesCurrencies;

Relevant currency for the prices