-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class SpeedLimit implements Parcelable
Speed limit
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSpeedLimit.Companion
-
Constructor Summary
Constructors Constructor Description SpeedLimit(Integer unit, Integer value)
-
Method Summary
Modifier and Type Method Description final IntegergetUnit()The speed unit: SpeedUnit.KPH, SpeedUnit.MPH final IntegergetValue()Speed value -1 INVALID_SPEED_LIMIT indicates speed limit does not exist on road. final DoubletoMetersPerSecond()Convert speed limit from various units to meters per second -
-
Method Detail
-
getUnit
final Integer getUnit()
The speed unit: SpeedUnit.KPH, SpeedUnit.MPH
-
getValue
final Integer getValue()
Speed value -1 INVALID_SPEED_LIMIT indicates speed limit does not exist on road. 0x7FFFFFFF UNLIMITED_SPEED indicates unlimited speed.
-
toMetersPerSecond
final Double toMetersPerSecond()
Convert speed limit from various units to meters per second
-
-
-
-