# LocationAccuracy

Artifact: [androidx.health:health-services-client](https://developer.android.com/jetpack/androidx/releases/health) [View Source](https://cs.android.com/search?q=file:androidx/health/services/client/data/LocationAccuracy.kt+class:androidx.health.services.client.data.LocationAccuracy) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

*** ** * ** ***

<br />

```
class LocationAccuracy : DataPointAccuracy
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.health.services.client.data.DataPointAccuracy](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataPointAccuracy) ||
|   | ↳ | [androidx.health.services.client.data.LocationAccuracy](https://developer.android.com/reference/kotlin/androidx/health/services/client/data/LocationAccuracy) |

*** ** * ** ***

Accuracy for a `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/DataType#LOCATION()` data point.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/LocationAccuracy#LocationAccuracy(kotlin.Double,kotlin.Double)( horizontalPositionErrorMeters: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html, verticalPositionErrorMeters: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html )` |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/LocationAccuracy#toString()()` |

| ### Public properties |
|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/LocationAccuracy#horizontalPositionErrorMeters()` Represents the estimated horizontal accuracy of the location, radial, in meters. |
| `@https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/LocationAccuracy#verticalPositionErrorMeters()` Represents the estimated vertical accuracy corresponding to the altitude of the location, radial, in meters, or it will be `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/-companion/-m-a-x_-v-a-l-u-e.html` if it cannot be provided. |

## Public constructors

### LocationAccuracy

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

```
LocationAccuracy(
    horizontalPositionErrorMeters: @FloatRange(from = 0.0) Double,
    verticalPositionErrorMeters: @FloatRange(from = 0.0) Double = Double.MAX_VALUE
)
```

## Public functions

### toString

```
open fun toString(): String
```

## Public properties

### horizontalPositionErrorMeters

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

```
val horizontalPositionErrorMeters: @FloatRange(from = 0.0) Double
```

Represents the estimated horizontal accuracy of the location, radial, in meters. Range starting from 0.0.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/LocationAccuracy#(kotlin.Double,kotlin.Double)` is negative |

### verticalPositionErrorMeters

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

```
val verticalPositionErrorMeters: @FloatRange(from = 0.0) Double
```

Represents the estimated vertical accuracy corresponding to the altitude of the location, radial, in meters, or it will be `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/-companion/-m-a-x_-v-a-l-u-e.html` if it cannot be provided. Range starting from 0.0.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if `https://developer.android.com/reference/kotlin/androidx/health/services/client/data/LocationAccuracy#(kotlin.Double,kotlin.Double)` is negative |