Warning

This feature is available in the Full MapKit SDK version

MMKSearchFeature

class 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

 init(id: String,
   value: MMKSearchFeatureVariantValue,
    name: String?,
    aref: String?,
 iconLight: MMKImage?,
 iconDark: MMKImage?)

Properties

var id: String { get }
Machine readable feature identifier

var valueMMKSearchFeatureVariantValue { get }
Feature value (depends on feature type)

var name: String? { get }
Human readable localized representation

var aref: String? { get }
Reference to information source providing given feature (see MMKAttribution)

Optional field, can be nil

var iconLightMMKImage? { get }
Optional field, can be nil

var iconDarkMMKImage? { get }
Optional field, can be nil

Class methods

init(id:value:name:aref:iconLight:iconDark:)

 init(id: String,
   value: MMKSearchFeatureVariantValue,
    name: String?,
    aref: String?,
 iconLight: MMKImage?,
 iconDark: MMKImage?)


Properties

id

var id: String { get }

Machine readable feature identifier.


value

var value: MMKSearchFeatureVariantValue { get }

Feature value (depends on feature type).


name

var name: String? { get }

Human readable localized representation.

Optional field, can be nil.


aref

var aref: String? { get }

Reference to information source providing given feature (see MMKAttribution)

Optional field, can be nil.


iconLight

var iconLight: MMKImage? { get }

Optional field, can be nil.


iconDark

var iconDark: MMKImage? { get }

Optional field, can be nil.