LocationAccuracy
public final class LocationAccuracy extends DataPointAccuracy
| java.lang.Object | ||
| ↳ | androidx.health.services.client.data.DataPointAccuracy | |
| ↳ | androidx.health.services.client.data.LocationAccuracy |
Accuracy for a DataType.LOCATION data point.
Summary
Public constructors |
|---|
LocationAccuracy( |
Public methods |
|
|---|---|
final double |
Represents the estimated horizontal accuracy of the location, radial, in meters. |
final double |
Represents the estimated vertical accuracy corresponding to the altitude of the location, radial, in meters, or it will be |
@NonNull String |
toString() |
Public constructors
LocationAccuracy
public LocationAccuracy(
@FloatRange(from = 0.0) double horizontalPositionErrorMeters,
@FloatRange(from = 0.0) double verticalPositionErrorMeters
)
Public methods
getHorizontalPositionErrorMeters
public final double getHorizontalPositionErrorMeters()
Represents the estimated horizontal accuracy of the location, radial, in meters. Range starting from 0.0.
| Throws | |
|---|---|
kotlin.IllegalArgumentException |
if |
getVerticalPositionErrorMeters
public final double getVerticalPositionErrorMeters()
Represents the estimated vertical accuracy corresponding to the altitude of the location, radial, in meters, or it will be Double.MAX_VALUE if it cannot be provided. Range starting from 0.0.
| Throws | |
|---|---|
kotlin.IllegalArgumentException |
if |