Package 

Class SpeedInfo

  • All Implemented Interfaces:

    
    public final class SpeedInfo
    
                        

    Container of a current speed information including speed limit, road type and subtype.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class SpeedInfo.Companion
    • Constructor Summary

      Constructors 
      Constructor Description
      SpeedInfo(Float vehicleSpeed, Float speedLimit, Integer currentRoadType, Integer currentRoadSubType)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Float getVehicleSpeed() Vehicle speed in m/s
      final Float getSpeedLimit() Current road speed limit in m/s INVALID_SPEED_LIMIT means speed limit does not exist on road.
      final Integer getCurrentRoadType() Current road type.
      final Integer getCurrentRoadSubType() Current road subtype.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpeedInfo

        SpeedInfo(Float vehicleSpeed, Float speedLimit, Integer currentRoadType, Integer currentRoadSubType)
    • Method Detail

      • 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.