Важно

This feature is available in the Full MapKit SDK version

YMKSearchBusinessResultMetadata

class YMKSearchBusinessResultMetadata : NSObject

Common info for business search response.

Summary

Class methods

 init(categories: [YMKSearchCategory],
          chains: [YMKSearchChain],
 businessFilters: [YMKSearchBusinessFilter],
 importantFilters: YMKSearchFilterSet?,
 pricesCurrencies: [String])

Properties

var categories: [YMKSearchCategory] { get }
List of categories (also known as rubrics) present in response

var chains: [YMKSearchChain] { get }
List of chains present in response

var businessFilters: [YMKSearchBusinessFilter] { get }
List of applicable filters

var importantFiltersYMKSearchFilterSet? { get }
Collection of filters that probably are of utmost interest to the user

var pricesCurrencies: [String] { get }
Relevant currency for the prices

Class methods

init(categories:chains:businessFilters:importantFilters:pricesCurrencies:)

 init(categories: [YMKSearchCategory],
          chains: [YMKSearchChain],
 businessFilters: [YMKSearchBusinessFilter],
 importantFilters: YMKSearchFilterSet?,
 pricesCurrencies: [String])


Properties

categories

var categories: [YMKSearchCategory] { get }

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

var chains: [YMKSearchChain] { get }

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

var businessFilters: [YMKSearchBusinessFilter] { get }

List of applicable filters.


importantFilters

var importantFilters: YMKSearchFilterSet? { get }

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

Optional field, can be nil.


pricesCurrencies

var pricesCurrencies: [String] { get }

Relevant currency for the prices