Class AbsoluteDistance

com.yandex.mapkit.search

java.lang.Object ⇽ AbsoluteDistance

public class AbsoluteDistance

Describes absolute distance info.

Constructors

AbsoluteDistance()

Use constructor with parameters in your code.

AbsoluteDistance(_Nullable TravelInfo driving, _Nullable TravelInfo walking, _Nullable TransitInfo transit)

Methods

synchronized TravelInfo getDriving()

Travel info for driving route.

String getNativeName()
synchronized TransitInfo getTransit()

Travel info for masstransit route.

synchronized TravelInfo getWalking()

Travel info for walking route.

void serialize(Archive archive)

Constructor Detail

AbsoluteDistance

public AbsoluteDistance ()

Use constructor with parameters in your code.

This one is for serialization only!

AbsoluteDistance

public AbsoluteDistance (@Nullable TravelInfo driving, @Nullable TravelInfo walking, @Nullable TransitInfo transit)

Method Detail

getDriving

public synchronized TravelInfo getDriving ()

Travel info for driving route.

Optional field, can be null.

getNativeName

public static String getNativeName ()

getTransit

public synchronized TransitInfo getTransit ()

Travel info for masstransit route.

Optional field, can be null.

getWalking

public synchronized TravelInfo getWalking ()

Travel info for walking route.

Optional field, can be null.

serialize

public void serialize (Archive archive)