Class DrivingSectionMetadata

com.yandex.mapkit.driving

java.lang.Object ⇽ DrivingSectionMetadata

public class DrivingSectionMetadata

Constructors

DrivingSectionMetadata()

Use constructor with parameters in your code.

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

Use constructor with parameters in your code.

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

Methods

synchronized Annotation getAnnotation()
synchronized int getLegIndex()

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

String getNativeName()
synchronized AnnotationSchemeID getSchemeId()

Optional field, can be null.

synchronized List< Integer > getViaPointPositions()

Throughpoints can appear only at nodes of the section's geometry.

synchronized Weight getWeight()
void serialize(Archive archive)
synchronized Annotation getAnnotation()
synchronized int getLegIndex()

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

String getNativeName()
synchronized AnnotationSchemeID getSchemeId()

Optional field, can be null.

synchronized List< Integer > getViaPointPositions()

Throughpoints can appear only at nodes of the section's geometry.

synchronized Weight getWeight()
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, Weight weight, Annotation annotation, AnnotationSchemeID schemeId, List< Integer > viaPointPositions)

Method Detail

getAnnotation

public synchronized Annotation getAnnotation ()

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 ()

Optional field, can be null.

getViaPointPositions

public synchronized List< Integer > getViaPointPositions ()

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 ()

serialize

public void serialize (Archive archive)