Class Weight
com.yandex.mapkit.transport.bicycle
java.lang.Object ⇽ Weight
public class Weight
Quantitative characteristics of a route or route section.
Constructors
Methods
LocalizedValue | getDistance() | Distance to travel. |
LocalizedValue | getTime() | Time to travel. |
void | serialize(Archive archive) |
LocalizedValue | getDistance() | Distance to travel. |
LocalizedValue | getTime() | Time to travel. |
void | serialize(Archive archive) |
Constructor Detail
Weight
public Weight (@NonNull LocalizedValue time, @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.
serialize
public void serialize (Archive archive)