Class TravelInfo

com.yandex.mapkit.search

java.lang.Object ⇽ TravelInfo

public class TravelInfo

Describes information about route via driving or walking.

Constructors

TravelInfo()

Use constructor with parameters in your code.

TravelInfo(_NonNull LocalizedValue duration, _NonNull LocalizedValue distance)

Methods

synchronized LocalizedValue getDistance()

Route distance.

synchronized LocalizedValue getDuration()

Route duration.

String getNativeName()
void serialize(Archive archive)

Constructor Detail

TravelInfo

public TravelInfo ()

Use constructor with parameters in your code.

This one is for serialization only!

TravelInfo

public TravelInfo (@NonNull LocalizedValue duration, @NonNull LocalizedValue distance)

Method Detail

getDistance

public synchronized LocalizedValue getDistance ()

Route distance.

getDuration

public synchronized LocalizedValue getDuration ()

Route duration.

getNativeName

public static String getNativeName ()

serialize

public void serialize (Archive archive)