LocationAccuracy


public final class LocationAccuracy extends DataPointAccuracy


Accuracy for a DataType.LOCATION data point.

Summary

Public constructors

LocationAccuracy(
    @FloatRange(from = 0.0) double horizontalPositionErrorMeters,
    @FloatRange(from = 0.0) double verticalPositionErrorMeters
)

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 Double.MAX_VALUE if it cannot be provided.

@NonNull String

Public constructors

LocationAccuracy

Added in 1.0.0
public LocationAccuracy(
    @FloatRange(from = 0.0) double horizontalPositionErrorMeters,
    @FloatRange(from = 0.0) double verticalPositionErrorMeters
)

Public methods

getHorizontalPositionErrorMeters

Added in 1.0.0
public final double getHorizontalPositionErrorMeters()

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

getVerticalPositionErrorMeters

Added in 1.0.0
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.

toString

public @NonNull String toString()