Class DrivingRouteMetadata

com.yandex.mapkit.directions.driving

java.lang.Object ⇽ DrivingRouteMetadata

public class DrivingRouteMetadata

Information about driving route metadata.

Constructors

DrivingRouteMetadata()

Use constructor with parameters in your code.

DrivingRouteMetadata(@NonNull Weight weight, @NonNull Flags flags, @Nullable byte[] descriptor, @Nullable byte[] traits, @Nullable Description description, @NonNull List< RoutePoint > routePoints, @NonNull List< String > tags)

Methods

synchronized Description getDescription()

Route description.

synchronized byte[] getDescriptor()

Route descriptor.

synchronized Flags getFlags()

Overall route characteristics.

String getNativeName()
synchronized List< RoutePoint > getRoutePoints()

Selected route arrival points.

synchronized List< String > getTags()

Route tags.

synchronized byte[] getTraits()

Route traits.

synchronized Weight getWeight()

Route "weight".

void serialize(Archive archive)

Constructor Detail

DrivingRouteMetadata

public DrivingRouteMetadata ()

Use constructor with parameters in your code.

This one is for serialization only!

DrivingRouteMetadata

public DrivingRouteMetadata (@NonNull Weight weight, @NonNull Flags flags, @Nullable byte[] descriptor, @Nullable byte[] traits, @Nullable Description description, @NonNull List< RoutePoint > routePoints, @NonNull List< String > tags)

Method Detail

getDescription

public synchronized Description getDescription ()

Route description.

Optional field, can be null.

getDescriptor

public synchronized byte[] getDescriptor ()

Route descriptor.

Optional field, can be null.

getFlags

public synchronized Flags getFlags ()

Overall route characteristics.

getNativeName

public static String getNativeName ()

getRoutePoints

public synchronized List< RoutePoint > getRoutePoints ()

Selected route arrival points.

getTags

public synchronized List< String > getTags ()

Route tags.

getTraits

public synchronized byte[] getTraits ()

Route traits.

Optional field, can be null.

getWeight

public synchronized Weight getWeight ()

Route "weight".

serialize

public void serialize (Archive archive)