Class Feature

com.yandex.mapkit.search

java.lang.Object ⇽ Feature

public class Feature

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).

Nested Classes

Constructors

Feature()

Use constructor with parameters in your code.

Feature(@NonNull String id, @NonNull VariantValue value, @Nullable String name, @Nullable String aref)

Methods

synchronized String getAref()

Reference to information source providing given feature (see Attribution)

synchronized String getId()

Machine readable feature identifier.

synchronized String getName()

Human readable localized representation.

String getNativeName()
synchronized VariantValue getValue()

Feature value (depends on feature type).

void serialize(Archive archive)

Constructor Detail

Feature

public Feature ()

Use constructor with parameters in your code.

This one is for serialization only!

Feature

public Feature (@NonNull String id, @NonNull VariantValue value, @Nullable String name, @Nullable String aref)

Method Detail

getAref

public synchronized String getAref ()

Reference to information source providing given feature (see Attribution)

Optional field, can be null.

getId

public synchronized String getId ()

Machine readable feature identifier.

getName

public synchronized String getName ()

Human readable localized representation.

Optional field, can be null.

getNativeName

public static String getNativeName ()

getValue

public synchronized VariantValue getValue ()

Feature value (depends on feature type).

serialize

public void serialize (Archive archive)