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(Address address, Precision precision, String formerName, Point balloonPoint, String id) |
ToponymObjectMetadata() | Use constructor with parameters in your code. |
ToponymObjectMetadata(Address address, Precision precision, String formerName, Point balloonPoint, 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) |
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
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)