# LocationCharacterization

Summary:[Constants](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#constants)\|[Methods](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#inhmethods)  

# LocationCharacterization

`
public


class
LocationCharacterization
`  
`

extends Object


``


`

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

<br />

*** ** * ** ***

Used by[VehiclePropertyIds.LOCATION_CHARACTERIZATION](https://developer.android.com/reference/android/car/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](https://developer.android.com/reference/android/location/LocationManager)APIs for the[LocationManager.GPS_PROVIDER](https://developer.android.com/reference/android/location/LocationManager#GPS_PROVIDER)location provider.

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

## Summary

|                                                                                                                      ### Constants                                                                                                                       ||
|-------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [ACCELEROMETER_FUSION](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#ACCELEROMETER_FUSION) Accelerometer data has been used to refine the raw GNSS data.                                         |
| `int` | [CAR_SPEED_FUSION](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#CAR_SPEED_FUSION) Car speed has been used to refine the raw GNSS data.                                                          |
| `int` | [COMPASS_FUSION](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#COMPASS_FUSION) Compass data has been used to refine the raw GNSS data.                                                           |
| `int` | [DEAD_RECKONED](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#DEAD_RECKONED) Some effort is made to dead-reckon location.                                                                        |
| `int` | [GYROSCOPE_FUSION](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#GYROSCOPE_FUSION) Gyroscope data has been used to refine the raw GNSS data.                                                     |
| `int` | [PRIOR_LOCATIONS](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#PRIOR_LOCATIONS) Prior location samples have been used to refine the raw GNSS data (e.g. a Kalman Filter).                       |
| `int` | [RAW_GNSS_ONLY](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#RAW_GNSS_ONLY) Location is based on GNSS satellite signals without sufficient fusion of other sensors for complete dead reckoning. |
| `int` | [STEERING_ANGLE_FUSION](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#STEERING_ANGLE_FUSION) Steering angle has been used to refine the raw GNSS data.                                           |
| `int` | [WHEEL_SPEED_FUSION](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#WHEEL_SPEED_FUSION) Wheel speed has been used to refine the raw GNSS data.                                                    |

|                                                                                                                   ### Public methods                                                                                                                   ||
|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` static String` | ` `[toString](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#toString(int))`(int locationCharacterization) ` Returns a user-friendly representation of an`LocationCharacterization`. |

| ### Inherited methods |
|-----------------------|---|
| From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Constants

### ACCELEROMETER_FUSION

```
public static final int ACCELEROMETER_FUSION
```

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

<br />

Constant Value: 4 (0x00000004)  

### CAR_SPEED_FUSION

```
public static final int CAR_SPEED_FUSION
```

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

<br />

Constant Value: 64 (0x00000040)  

### COMPASS_FUSION

```
public static final int COMPASS_FUSION
```

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

<br />

Constant Value: 8 (0x00000008)  

### DEAD_RECKONED

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

<br />

Constant Value: 128 (0x00000080)  

### GYROSCOPE_FUSION

```
public static final int GYROSCOPE_FUSION
```

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

<br />

Constant Value: 2 (0x00000002)  

### PRIOR_LOCATIONS

```
public static final int PRIOR_LOCATIONS
```

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

<br />

Constant Value: 1 (0x00000001)  

### RAW_GNSS_ONLY

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

<br />

Constant Value: 256 (0x00000100)  

### STEERING_ANGLE_FUSION

```
public static final int STEERING_ANGLE_FUSION
```

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

<br />

Constant Value: 32 (0x00000020)  

### WHEEL_SPEED_FUSION

```
public static final int WHEEL_SPEED_FUSION
```

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

<br />

Constant Value: 16 (0x00000010)

## Public methods

### toString

```
public static String toString (int locationCharacterization)
```

Returns a user-friendly representation of an`LocationCharacterization`.

<br />

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Parameters                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ||
|----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `locationCharacterization` | `int`: Value is[PRIOR_LOCATIONS](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#PRIOR_LOCATIONS),[GYROSCOPE_FUSION](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#GYROSCOPE_FUSION),[ACCELEROMETER_FUSION](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#ACCELEROMETER_FUSION),[COMPASS_FUSION](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#COMPASS_FUSION),[WHEEL_SPEED_FUSION](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#WHEEL_SPEED_FUSION),[STEERING_ANGLE_FUSION](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#STEERING_ANGLE_FUSION),[CAR_SPEED_FUSION](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#CAR_SPEED_FUSION),[DEAD_RECKONED](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#DEAD_RECKONED), or[RAW_GNSS_ONLY](https://developer.android.com/reference/android/car/hardware/property/LocationCharacterization#RAW_GNSS_ONLY) <br /> |

|     Returns      ||
|----------|--------|
| `String` | <br /> |