Class TransitInfo

com.yandex.mapkit.search

java.lang.Object ⇽ TransitInfo

public class TransitInfo

Describes information about route via masstransit.

Constructors

TransitInfo()

Use constructor with parameters in your code.

TransitInfo(_NonNull LocalizedValue duration, int transferCount)

Methods

synchronized LocalizedValue getDuration()

Route duration.

String getNativeName()
synchronized int getTransferCount()

Number of transfers for the route.

void serialize(Archive archive)

Constructor Detail

TransitInfo

public TransitInfo ()

Use constructor with parameters in your code.

This one is for serialization only!

TransitInfo

public TransitInfo (@NonNull LocalizedValue duration, int transferCount)

Method Detail

getDuration

public synchronized LocalizedValue getDuration ()

Route duration.

getNativeName

public static String getNativeName ()

getTransferCount

public synchronized int getTransferCount ()

Number of transfers for the route.

This includes both transfers inside single type of transit (i.e. change from one underground line to another) and transfers between different transit types (i.e. transfer from bus to underground).

serialize

public void serialize (Archive archive)