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() |
Annotation(@NonNull PolylinePosition position, |
Methods
Type and modifiers |
Method and Description |
|
getPosition() |
|
getAction() Optional field, can be null. |
|
getLandmark() Optional field, can be null. |
|
getToponym() |
void |
serialize(world.mappable.runtime.bindings.Archive archive) |
|
Constuctors
Annotation
Annotation() |
Use constructor with parameters in your code.
This one is for serialization only!
Annotation
Annotation(@NonNull PolylinePosition position, |
Methods
getPosition
@NonNull |
Position of annotation on part of route
getAction
@Nullable |
Action
Optional field, can be null.
getLandmark
@Nullable |
Landmark
Optional field, can be null.
getToponym
@Nullable |
The toponym of the location.
Optional field, can be null.
serialize
@Override |
getNativeName
java.lang.String getNativeName() |