Class Weight

com.yandex.mapkit.directions.driving

java.lang.Object ⇽ Weight

public class Weight

Quantitative characteristics of any segment of the route.

Constructors

Weight(@NonNull LocalizedValue time, @NonNull LocalizedValue timeWithTraffic, @NonNull LocalizedValue distance)
Weight()

Use constructor with parameters in your code.

Methods

LocalizedValue getDistance()

Distance to travel.

LocalizedValue getTime()

Time to travel, not considering traffic.

LocalizedValue getTimeWithTraffic()

Time to travel, considering traffic.

void serialize(Archive archive)

Constructor Detail

Weight

public Weight (@NonNull LocalizedValue time, @NonNull LocalizedValue timeWithTraffic, @NonNull LocalizedValue distance)

Weight

public Weight ()

Use constructor with parameters in your code.

This one is for bindings only!

Method Detail

getDistance

public LocalizedValue getDistance ()

Distance to travel.

getTime

public LocalizedValue getTime ()

Time to travel, not considering traffic.

getTimeWithTraffic

public LocalizedValue getTimeWithTraffic ()

Time to travel, considering traffic.

serialize

public void serialize (Archive archive)