Class Weight

com.yandex.mapkit.masstransit

java.lang.Object ⇽ Weight

public class Weight

Numeric characteristics of a route or a route section.

Constructors

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

Use constructor with parameters in your code.

Weight(LocalizedValue time, 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)
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 (LocalizedValue time, 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)