Class Event

com.yandex.mapkit.directions.driving

java.lang.Object ⇽ Event

public class Event

Road event.

Constructors

Event()

Use constructor with parameters in your code.

Event(@NonNull PolylinePosition polylinePosition, @NonNull String eventId, @Nullable String descriptionText, @NonNull List< EventType > types, @NonNull Point location, @Nullable Float speedLimit, @Nullable AnnotationSchemeID annotationSchemeId)

Methods

synchronized AnnotationSchemeID getAnnotationSchemeId()

valid only for cameras The SchemeId of the annotation.

synchronized String getDescriptionText()

The description of the event.

synchronized String getEventId()

The unique ID of the event.

synchronized Point getLocation()

The location of the road event.

String getNativeName()
synchronized PolylinePosition getPolylinePosition()

The position of the polyline.

synchronized Float getSpeedLimit()

The speed limit on the road.

synchronized List< EventType > getTypes()

The types of the road event.

void serialize(Archive archive)

Constructor Detail

Event

public Event ()

Use constructor with parameters in your code.

This one is for serialization only!

Event

public Event (@NonNull PolylinePosition polylinePosition, @NonNull String eventId, @Nullable String descriptionText, @NonNull List< EventType > types, @NonNull Point location, @Nullable Float speedLimit, @Nullable AnnotationSchemeID annotationSchemeId)

Method Detail

getAnnotationSchemeId

public synchronized AnnotationSchemeID getAnnotationSchemeId ()

valid only for cameras The SchemeId of the annotation.

Optional field, can be null.

getDescriptionText

public synchronized String getDescriptionText ()

The description of the event.

Optional field, can be null.

getEventId

public synchronized String getEventId ()

The unique ID of the event.

getLocation

public synchronized Point getLocation ()

The location of the road event.

getNativeName

public static String getNativeName ()

getPolylinePosition

public synchronized PolylinePosition getPolylinePosition ()

The position of the polyline.

getSpeedLimit

public synchronized Float getSpeedLimit ()

The speed limit on the road.

Optional field, can be null.

getTypes

public synchronized List< EventType > getTypes ()

The types of the road event.

serialize

public void serialize (Archive archive)