Class RouteDistancesObjectMetadata

com.yandex.mapkit.search

java.lang.Object ⇽ RouteDistancesObjectMetadata

public class RouteDistancesObjectMetadata

Snippet data to get route distance info.

Constructors

RouteDistancesObjectMetadata()

Use constructor with parameters in your code.

RouteDistancesObjectMetadata(_Nullable AbsoluteDistance absolute, _Nullable RelativeDistance relative)

Methods

synchronized AbsoluteDistance getAbsolute()

Absolute distance info.

String getNativeName()
synchronized RelativeDistance getRelative()

Relative distance info.

void serialize(Archive archive)

Constructor Detail

RouteDistancesObjectMetadata

public RouteDistancesObjectMetadata ()

Use constructor with parameters in your code.

This one is for serialization only!

RouteDistancesObjectMetadata

public RouteDistancesObjectMetadata (@Nullable AbsoluteDistance absolute, @Nullable RelativeDistance relative)

Method Detail

getAbsolute

public synchronized AbsoluteDistance getAbsolute ()

Absolute distance info.

Optional field, can be null.

getNativeName

public static String getNativeName ()

getRelative

public synchronized RelativeDistance getRelative ()

Relative distance info.

Optional field, can be null.

serialize

public void serialize (Archive archive)