Class ToponymObjectMetadata

com.yandex.mapkit.search

java.lang.Object ⇽ ToponymObjectMetadata

public class ToponymObjectMetadata

Additional data for toponym objects.

Constructors

ToponymObjectMetadata()

Use constructor with parameters in your code.

ToponymObjectMetadata(@NonNull Address address, @Nullable Precision precision, @Nullable String formerName, @NonNull Point balloonPoint, @Nullable String id)

Methods

synchronized Address getAddress()

Structured toponym address.

synchronized Point getBalloonPoint()

Point where balloon for the toponym should be shown.

synchronized String getFormerName()

Former name for toponym if any.

synchronized String getId()

Persistent toponym id (available for Yandex-owned regions).

String getNativeName()
synchronized Precision getPrecision()

Toponym precision.

void serialize(Archive archive)

Constructor Detail

ToponymObjectMetadata

public ToponymObjectMetadata ()

Use constructor with parameters in your code.

This one is for serialization only!

ToponymObjectMetadata

public ToponymObjectMetadata (@NonNull Address address, @Nullable Precision precision, @Nullable String formerName, @NonNull Point balloonPoint, @Nullable String id)

Method Detail

getAddress

public synchronized Address getAddress ()

Structured toponym address.

getBalloonPoint

public synchronized Point getBalloonPoint ()

Point where balloon for the toponym should be shown.

Differs for direct and reverse search modes: Direct mode toponym center. Reverse mode toponym nearest point to the given coordinates.

getFormerName

public synchronized String getFormerName ()

Former name for toponym if any.

Optional field, can be null.

getId

public synchronized String getId ()

Persistent toponym id (available for Yandex-owned regions).

Optional field, can be null.

getNativeName

public static String getNativeName ()

getPrecision

public synchronized Precision getPrecision ()

Toponym precision.

Optional field, can be null.

serialize

public void serialize (Archive archive)