Class Annotation

Warning

This feature is available in the Full MapKit SDK version

Package world.mappable.mapkit.transport.masstransit

java.lang.Object
    ↳ world.mappable.mapkit.transport.masstransit.Annotation

class Annotation implements Serializable

Contains info about actions on part of route.

Either action or landmark should be non-empty.

Summary

Constructors

Signature and Description

Annotation()
Use constructor with parameters in your code.

Annotation(@NonNull PolylinePosition position,
           @Nullable ActionID action,
           @Nullable LandmarkID landmark,
           @Nullable Toponym toponym)

Methods

Type and modifiers

Method and Description

synchronized PolylinePosition

getPosition()
Position of annotation on part of route

synchronized ActionID

getAction()
Action

Optional field, can be null.

synchronized LandmarkID

getLandmark()
Landmark

Optional field, can be null.

synchronized Toponym

getToponym()
The toponym of the location.

void

serialize(world.mappable.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 PolylinePosition position,
           @Nullable ActionID action,
           @Nullable LandmarkID landmark,
           @Nullable Toponym toponym)


Methods

getPosition

@NonNull
PolylinePosition getPosition()

Position of annotation on part of route


getAction

@Nullable
ActionID getAction()

Action

Optional field, can be null.


getLandmark

@Nullable
LandmarkID getLandmark()

Landmark

Optional field, can be null.


getToponym

@Nullable
Toponym getToponym()

The toponym of the location.

Optional field, can be null.


serialize

@Override
void serialize(world.mappable.runtime.bindings.Archive archive)


getNativeName

java.lang.String getNativeName()