Enum LocationSource
Package com.here.sdk.core
Enum LocationSource
- java.lang.Object
-
- java.lang.Enum<LocationSource>
-
- com.here.sdk.core.LocationSource
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<LocationSource>
public enum LocationSource extends java.lang.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 Summary
Enum Constants Enum Constant Description EXTERNAL_SOURCELocation computed outside of the device running HERE SDK.INTERNAL_SOURCELocation computed internally on the device running HERE SDK.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LocationSourcevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static LocationSource[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static LocationSource[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LocationSource c : LocationSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LocationSource valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-