Package com.yandex.mapkit

Class GeoObject

java.lang.Object
    ↳ com.yandex.mapkit.GeoObject

class GeoObject implements Serializable

Geo object.

Can be displayed as a placemark, polyline, polygon, and other, depending on the geometry type.

Summary

Constructors

Signature and Description

GeoObject()
Use constructor with parameters in your code.

GeoObject(@Nullable java.lang.String name,
          @Nullable java.lang.String descriptionText,
          @NonNull java.util.List<Geometry> geometry,
          @Nullable BoundingBox boundingBox,
          @NonNull java.util.Map<java.lang.String, Attribution> attributionMap,
          @NonNull TypeDictionary<BaseMetadata> metadataContainer,
          @NonNull java.util.List<java.lang.String> aref)

Methods

Type and modifiers

Method and Description

synchronized java.lang.String

getName()
Object name.

synchronized java.lang.String

getDescriptionText()
The description of the object.

synchronized java.util.List<Geometry>

getGeometry()
The object's geometry.

synchronized BoundingBox

getBoundingBox()
A rectangular box around the object.

synchronized java.util.Map<java.lang.String, Attribution>

getAttributionMap()
The attribution of information to a specific author.

synchronized TypeDictionary<BaseMetadata>

getMetadataContainer()
The object's metadata.

synchronized java.util.List<java.lang.String>

getAref()
The name of the internet resource.

void

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

static java.lang.String

getNativeName()

Constuctors

GeoObject

GeoObject()

Use constructor with parameters in your code.

This one is for serialization only!


GeoObject

GeoObject(@Nullable java.lang.String name,
          @Nullable java.lang.String descriptionText,
          @NonNull java.util.List<Geometry> geometry,
          @Nullable BoundingBox boundingBox,
          @NonNull java.util.Map<java.lang.String, Attribution> attributionMap,
          @NonNull TypeDictionary<BaseMetadata> metadataContainer,
          @NonNull java.util.List<java.lang.String> aref)


Methods

getName

@Nullable
java.lang.String getName()

Object name.

Optional field, can be null.


getDescriptionText

@Nullable
java.lang.String getDescriptionText()

The description of the object.

Optional field, can be null.


getGeometry

@NonNull
java.util.List<Geometry> getGeometry()

The object's geometry.


getBoundingBox

@Nullable
BoundingBox getBoundingBox()

A rectangular box around the object.

Optional field, can be null.


getAttributionMap

@NonNull
java.util.Map<java.lang.String, Attribution> getAttributionMap()

The attribution of information to a specific author.


getMetadataContainer

@NonNull
TypeDictionary<BaseMetadata> getMetadataContainer()

The object's metadata.


getAref

@NonNull
java.util.List<java.lang.String> getAref()

The name of the internet resource.


serialize

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


getNativeName

java.lang.String getNativeName()


Предыдущая
Следующая