com.here.msdkui.common

## Class SpeedFormatterUtil

- java.lang.Object
- - com.here.msdkui.common.SpeedFormatterUtil

-     public final class SpeedFormatterUtil
      extends java.lang.Object

  A convenience class to convert velocity in meters per second to velocity in a different unit.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static int` | `format(double metersPerSecond, UnitSystem system)` Converts velocity expressed in meters per second to specified unit system.
    `static java.lang.String` | `getUnitString(android.content.Context context, UnitSystem system)` Returns abbreviation of velocity string in specified unit system.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### format

          public static int format(double metersPerSecond,
                                   UnitSystem system)

      Converts velocity expressed in meters per second to specified unit system.
      Parameters:
        `metersPerSecond` - velocity in meters per second.
        `system` - the unit system `UnitSystem`.
      Returns:
        velocity in specified unit system.

    - #### getUnitString

          public static java.lang.String getUnitString(android.content.Context context,
                                                       UnitSystem system)

      Returns abbreviation of velocity string in specified unit system.
      Parameters:
        `context` - the required context.
        `system` - the unit system `UnitSystem`.
      Returns:
        abbreviation of velocity string in specified unit system.