-
- All Implemented Interfaces:
public final class SpeedInfoContainer of a current speed information including speed limit, road type and subtype.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSpeedInfo.Companion
-
Field Summary
Fields Modifier and Type Field Description private final FloatvehicleSpeedprivate final FloatspeedLimitprivate final IntegercurrentRoadTypeprivate final IntegercurrentRoadSubType
-
Method Summary
Modifier and Type Method Description final FloatgetVehicleSpeed()Vehicle speed in m/s final FloatgetSpeedLimit()Current road speed limit in m/s INVALID_SPEED_LIMIT means speed limit does not exist on road. final IntegergetCurrentRoadType()Current road type. final IntegergetCurrentRoadSubType()Current road subtype. -
-
Method Detail
-
getVehicleSpeed
final Float getVehicleSpeed()
Vehicle speed in m/s
-
getSpeedLimit
final Float getSpeedLimit()
Current road speed limit in m/s INVALID_SPEED_LIMIT means speed limit does not exist on road. UNLIMITED_SPEED means the speed is not limited.
-
getCurrentRoadType
final Integer getCurrentRoadType()
Current road type.
-
getCurrentRoadSubType
final Integer getCurrentRoadSubType()
Current road subtype.
-
-
-
-