Class Weight
com.yandex.mapkit.driving
java.lang.Object ⇽ Weight
public class Weight
Quantitative characteristics of any segment of the route.
Constructors
Weight(LocalizedValue time, LocalizedValue timeWithTraffic, LocalizedValue distance) | |
Weight() | Use constructor with parameters in your code. |
Weight(LocalizedValue time, LocalizedValue timeWithTraffic, 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) |
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 (LocalizedValue time, LocalizedValue timeWithTraffic, 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)