Class DrivingSectionMetadata

com.yandex.mapkit.directions.driving

java.lang.Object ⇽ DrivingSectionMetadata

public class DrivingSectionMetadata

Information about section metadata.

Constructors

DrivingSectionMetadata()

Use constructor with parameters in your code.

DrivingSectionMetadata(int legIndex, @NonNull Weight weight, @NonNull Annotation annotation, @Nullable AnnotationSchemeID schemeId, @NonNull List< Integer > viaPointPositions)

Methods

synchronized Annotation getAnnotation()

Section annotations.

synchronized int getLegIndex()

A leg is a section of the route between two consecutive waypoints.

String getNativeName()
synchronized AnnotationSchemeID getSchemeId()

The ID of the annotation scheme.

synchronized List< Integer > getViaPointPositions()

Via points (throughpoints) can appear only at nodes of the section's geometry.

synchronized Weight getWeight()

The "weight" of the section.

void serialize(Archive archive)

Constructor Detail

DrivingSectionMetadata

public DrivingSectionMetadata ()

Use constructor with parameters in your code.

This one is for serialization only!

DrivingSectionMetadata

public DrivingSectionMetadata (int legIndex, @NonNull Weight weight, @NonNull Annotation annotation, @Nullable AnnotationSchemeID schemeId, @NonNull List< Integer > viaPointPositions)

Method Detail

getAnnotation

public synchronized Annotation getAnnotation ()

Section annotations.

getLegIndex

public synchronized int getLegIndex ()

A leg is a section of the route between two consecutive waypoints.

getNativeName

public static String getNativeName ()

getSchemeId

public synchronized AnnotationSchemeID getSchemeId ()

The ID of the annotation scheme.

Optional field, can be null.

getViaPointPositions

public synchronized List< Integer > getViaPointPositions ()

Via points (throughpoints) can appear only at nodes of the section's geometry.

The vector contains the positions of all corresponding nodes. These positions should be listed in ascending order.

getWeight

public synchronized Weight getWeight ()

The "weight" of the section.

serialize

public void serialize (Archive archive)