LocationCharacterization

public class LocationCharacterization
extends Object

java.lang.Object
   ↳ android.car.hardware.property.LocationCharacterization


Used by VehiclePropertyIds.LOCATION_CHARACTERIZATION to enumerate the supported bit flags.

These flags are used to indicate what sort of transformations are performed on the GNSS positions before exposed through the LocationManager APIs for the LocationManager.GPS_PROVIDER location provider.

This enum can be extended in future releases to include additional bit flags.

Summary

Constants

int ACCELEROMETER_FUSION

Accelerometer data has been used to refine the raw GNSS data.

int CAR_SPEED_FUSION

Car speed has been used to refine the raw GNSS data.

int COMPASS_FUSION

Compass data has been used to refine the raw GNSS data.

int DEAD_RECKONED

Some effort is made to dead-reckon location.

int GYROSCOPE_FUSION

Gyroscope data has been used to refine the raw GNSS data.

int PRIOR_LOCATIONS

Prior location samples have been used to refine the raw GNSS data (e.g. a Kalman Filter).

int RAW_GNSS_ONLY

Location is based on GNSS satellite signals without sufficient fusion of other sensors for complete dead reckoning.

int STEERING_ANGLE_FUSION

Steering angle has been used to refine the raw GNSS data.

int WHEEL_SPEED_FUSION

Wheel speed has been used to refine the raw GNSS data.

Public methods

static String toString(int locationCharacterization)

Returns a user-friendly representation of an LocationCharacterization.

Inherited methods

Constants

ACCELEROMETER_FUSION

Added in API level 34
public static final int ACCELEROMETER_FUSION

Accelerometer data has been used to refine the raw GNSS data.

Constant Value: 4 (0x00000004)

CAR_SPEED_FUSION

Added in API level 34
public static final int CAR_SPEED_FUSION

Car speed has been used to refine the raw GNSS data.

Constant Value: 64 (0x00000040)

COMPASS_FUSION

Added in API level 34
public static final int COMPASS_FUSION

Compass data has been used to refine the raw GNSS data.

Constant Value: 8 (0x00000008)

DEAD_RECKONED

Added in API level 34
public static final int DEAD_RECKONED

Some effort is made to dead-reckon location. In particular, this means that relative changes in location have meaning when no GNSS satellite is available.

Constant Value: 128 (0x00000080)

GYROSCOPE_FUSION

Added in API level 34
public static final int GYROSCOPE_FUSION

Gyroscope data has been used to refine the raw GNSS data.

Constant Value: 2 (0x00000002)

PRIOR_LOCATIONS

Added in API level 34
public static final int PRIOR_LOCATIONS

Prior location samples have been used to refine the raw GNSS data (e.g. a Kalman Filter).

Constant Value: 1 (0x00000001)

RAW_GNSS_ONLY

Added in API level 34
public static final int RAW_GNSS_ONLY

Location is based on GNSS satellite signals without sufficient fusion of other sensors for complete dead reckoning. This flag should be set when relative changes to location cannot be relied on when no GNSS satellite is available.

Constant Value: 256 (0x00000100)

STEERING_ANGLE_FUSION

Added in API level 34
public static final int STEERING_ANGLE_FUSION

Steering angle has been used to refine the raw GNSS data.

Constant Value: 32 (0x00000020)

WHEEL_SPEED_FUSION

Added in API level 34
public static final int WHEEL_SPEED_FUSION

Wheel speed has been used to refine the raw GNSS data.

Constant Value: 16 (0x00000010)

Public methods

toString

Added in API level 34
public static String toString (int locationCharacterization)

Returns a user-friendly representation of an LocationCharacterization.

Parameters
locationCharacterization int: Value is PRIOR_LOCATIONS, GYROSCOPE_FUSION, ACCELEROMETER_FUSION, COMPASS_FUSION, WHEEL_SPEED_FUSION, STEERING_ANGLE_FUSION, CAR_SPEED_FUSION, DEAD_RECKONED, or RAW_GNSS_ONLY

Returns
String