Class Weight

com.yandex.mapkit.transport.masstransit

java.lang.Object ⇽ Weight

public class Weight

Numeric characteristics of a route or a route section.

Constructors

Weight(@NonNull LocalizedValue time, @NonNull LocalizedValue walkingDistance, int transfersCount)
Weight()

Use constructor with parameters in your code.

Methods

LocalizedValue getTime()

Travel time for a route or a route section.

int getTransfersCount()

The number of transfers for a route or a route section.

LocalizedValue getWalkingDistance()

Distance of the pedestrian part of the route or a route section.

void serialize(Archive archive)

Constructor Detail

Weight

public Weight (@NonNull LocalizedValue time, @NonNull LocalizedValue walkingDistance, int transfersCount)

Weight

public Weight ()

Use constructor with parameters in your code.

This one is for bindings only!

Method Detail

getTime

public LocalizedValue getTime ()

Travel time for a route or a route section.

getTransfersCount

public int getTransfersCount ()

The number of transfers for a route or a route section.

getWalkingDistance

public LocalizedValue getWalkingDistance ()

Distance of the pedestrian part of the route or a route section.

serialize

public void serialize (Archive archive)