Class Annotation

Warning

This feature is available in the Full MapKit SDK version

Package com.yandex.mapkit.directions.driving

java.lang.Object
    ↳ com.yandex.mapkit.directions.driving.Annotation

class Annotation implements Serializable

The annotation that is displayed on the map.

Summary

Constructors

Signature and Description

Annotation()
Use constructor with parameters in your code.

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

Methods

Type and modifiers

Method and Description

synchronized Action

getAction()
Driver action.

synchronized java.lang.String

getToponym()
The toponym of the location.

synchronized java.lang.String

getDescriptionText()
Description text to display.

synchronized ActionMetadata

getActionMetadata()
Action metadata.

synchronized java.util.List<Landmark>

getLandmarks()
Significant landmarks.

synchronized java.util.List<ToponymPhrase>

getToponymPhrase()
Toponym phrases with positions for pronunciation.

void

serialize(com.yandex.runtime.bindings.Archive archive)

static java.lang.String

getNativeName()

Constuctors

Annotation

Annotation()

Use constructor with parameters in your code.

This one is for serialization only!


Annotation

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


Methods

getAction

@NonNull
Action getAction()

Driver action.


getToponym

@Nullable
java.lang.String getToponym()

The toponym of the location.

Optional field, can be null.


getDescriptionText

@NonNull
java.lang.String getDescriptionText()

Description text to display.


getActionMetadata

@Nullable
ActionMetadata getActionMetadata()

Action metadata.

Optional field, can be null.


getLandmarks

@NonNull
java.util.List<Landmark> getLandmarks()

Significant landmarks.


getToponymPhrase

@NonNull
java.util.List<ToponymPhrase> getToponymPhrase()

Toponym phrases with positions for pronunciation.


serialize

@Override
void serialize(com.yandex.runtime.bindings.Archive archive)


getNativeName

java.lang.String getNativeName()