Class RelativeDistance

com.yandex.mapkit.search

java.lang.Object ⇽ RelativeDistance

public class RelativeDistance

Describes relative distance info.

Constructors

RelativeDistance()

Use constructor with parameters in your code.

RelativeDistance(_Nullable TravelInfo driving, _Nullable TravelInfo walking)

Methods

synchronized TravelInfo getDriving()

Travel info for driving route.

String getNativeName()
synchronized TravelInfo getWalking()

Travel info for walking route.

void serialize(Archive archive)

Constructor Detail

RelativeDistance

public RelativeDistance ()

Use constructor with parameters in your code.

This one is for serialization only!

RelativeDistance

public RelativeDistance (@Nullable TravelInfo driving, @Nullable TravelInfo walking)

Method Detail

getDriving

public synchronized TravelInfo getDriving ()

Travel info for driving route.

Optional field, can be null.

getNativeName

public static String getNativeName ()

getWalking

public synchronized TravelInfo getWalking ()

Travel info for walking route.

Optional field, can be null.

serialize

public void serialize (Archive archive)