Enum Class LocationSource

java.lang.Object
java.lang.Enum<LocationSource>
com.here.sdk.core.LocationSource
All Implemented Interfaces:
Serializable, Comparable<LocationSource>, Constable

public enum LocationSource extends Enum<LocationSource>

Indicates where the location was computed.

Tells whether the location was calculated on the same device running HERE SDK or received from an external source.

Example external sources: GNSS modules connected via serial (e.g., u-blox), or vehicle positioning systems.

Example internal sources: positions computed on the same phone or embedded device using integrated GNSS or sensor fusion components.

  • Enum Constant Details

    • EXTERNAL_SOURCE

      public static final LocationSource EXTERNAL_SOURCE

      Location computed outside of the device running HERE SDK.

    • INTERNAL_SOURCE

      public static final LocationSource INTERNAL_SOURCE

      Location computed internally on the device running HERE SDK.

  • Method Details

    • values

      public static LocationSource[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LocationSource valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null