Warning

This feature is available in the Full MapKit SDK version

YMKSearchCategory

@interface YMKSearchCategory : NSObject

Single category (also known as rubric) description.

Summary

Class methods

+ (nonnull YMKSearchCategory *)categoryWithName:(nonnull NSString *)name
                                  categoryClass:(nullable NSString *)categoryClass
                                           tags:(nonnull NSArray<NSString *> *)tags;

Properties

@property (nonatomic, readonly, nonnull) NSString *name;
Category name

@property (nonatomic, readonly, nullable) NSString *categoryClass;
Category class

@property (nonatomic, readonly, nonnull) NSArray<NSString *> *tags;
Additional non-structured data for the category

Class methods

categoryWithName:categoryClass:tags:

+ (nonnull YMKSearchCategory *)categoryWithName:(nonnull NSString *)name
                                  categoryClass:(nullable NSString *)categoryClass
                                           tags:(nonnull NSArray<NSString *> *)tags;


Properties

name

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

Category name.


categoryClass

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

Category class. Different categories can have the same class. For example, "Bar", "Cafe" and "Restaurant" categories inhabit "restaurants" category class.

Optional field, can be nil.


tags

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

Additional non-structured data for the category.