Warning

This feature is available in the Full MapKit SDK version

MMKSearchFeature

@interface MMKSearchFeature : NSObject

Describes some common feature of organizations. Can be of three types:

  • boolean (like on/off switch, as for free Wi-Fi availability).

  • enumerated (can have multiple values at once, like cuisine types in a cafe).

  • text (like enumerated but with any strings instead of predefined values).

Summary

Class methods

+ (nonnull MMKSearchFeature *)featureWithId:(nonnull NSString *)id
                                      value:(nonnull MMKSearchFeatureVariantValue *)value
                                       name:(nullable NSString *)name
                                       aref:(nullable NSString *)aref
                                  iconLight:(nullable MMKImage *)iconLight
                                   iconDark:(nullable MMKImage *)iconDark;

Properties

@property (nonatomic, readonly, nonnull) NSString *id;
Machine readable feature identifier

@property (nonatomic, readonly, nonnull) MMKSearchFeatureVariantValue *value;
Feature value (depends on feature type)

@property (nonatomic, readonly, nullable) NSString *name;
Human readable localized representation

@property (nonatomic, readonly, nullable) NSString *aref;
Reference to information source providing given feature (see MMKAttribution)

Optional field, can be nil

@property (nonatomic, readonly, nullable) MMKImage *iconLight;
Optional field, can be nil

@property (nonatomic, readonly, nullable) MMKImage *iconDark;
Optional field, can be nil

Class methods

featureWithId:value:name:aref:iconLight:iconDark:

+ (nonnull MMKSearchFeature *)featureWithId:(nonnull NSString *)id
                                      value:(nonnull MMKSearchFeatureVariantValue *)value
                                       name:(nullable NSString *)name
                                       aref:(nullable NSString *)aref
                                  iconLight:(nullable MMKImage *)iconLight
                                   iconDark:(nullable MMKImage *)iconDark;


Properties

id

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

Machine readable feature identifier.


value

@property (nonatomic, readonly, nonnull) MMKSearchFeatureVariantValue *value;

Feature value (depends on feature type).


name

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

Human readable localized representation.

Optional field, can be nil.


aref

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

Reference to information source providing given feature (see MMKAttribution)

Optional field, can be nil.


iconLight

@property (nonatomic, readonly, nullable) MMKImage *iconLight;

Optional field, can be nil.


iconDark

@property (nonatomic, readonly, nullable) MMKImage *iconDark;

Optional field, can be nil.