Class Annotation

com.yandex.mapkit.directions.driving

java.lang.Object ⇽ Annotation

public class Annotation

The annotation that is displayed on the map.

Constructors

Annotation()

Use constructor with parameters in your code.

Annotation(@Nullable Action action, @Nullable String toponym, @NonNull String descriptionText, @NonNull ActionMetadata actionMetadata, @NonNull List< Landmark > landmarks, @Nullable ToponymPhrase toponymPhrase)

Methods

synchronized Action getAction()

Driver action.

synchronized ActionMetadata getActionMetadata()

Action metadata.

synchronized String getDescriptionText()

Description text to display.

synchronized List< Landmark > getLandmarks()

Significant landmarks.

String getNativeName()
synchronized String getToponym()

The toponym of the location.

synchronized ToponymPhrase getToponymPhrase()

The description of the object.

void serialize(Archive archive)

Constructor Detail

Annotation

public Annotation ()

Use constructor with parameters in your code.

This one is for serialization only!

Annotation

public Annotation (@Nullable Action action, @Nullable String toponym, @NonNull String descriptionText, @NonNull ActionMetadata actionMetadata, @NonNull List< Landmark > landmarks, @Nullable ToponymPhrase toponymPhrase)

Method Detail

getAction

public synchronized Action getAction ()

Driver action.

Optional field, can be null.

getActionMetadata

public synchronized ActionMetadata getActionMetadata ()

Action metadata.

getDescriptionText

public synchronized String getDescriptionText ()

Description text to display.

getLandmarks

public synchronized List< Landmark > getLandmarks ()

Significant landmarks.

getNativeName

public static String getNativeName ()

getToponym

public synchronized String getToponym ()

The toponym of the location.

Optional field, can be null.

getToponymPhrase

public synchronized ToponymPhrase getToponymPhrase ()

The description of the object.

Optional field, can be null.

serialize

public void serialize (Archive archive)