Compartir a través de


Location.Accuracy Property

Definition

Returns the estimated horizontal accuracy radius in meters of this location at the 68th percentile confidence level. -or- Set the horizontal accuracy in meters of this location.

public virtual float Accuracy { [Android.Runtime.Register("getAccuracy", "()F", "GetGetAccuracyHandler")] get; [Android.Runtime.Register("setAccuracy", "(F)V", "GetSetAccuracy_FHandler")] set; }
[<get: Android.Runtime.Register("getAccuracy", "()F", "GetGetAccuracyHandler")>]
[<set: Android.Runtime.Register("setAccuracy", "(F)V", "GetSetAccuracy_FHandler")>]
member this.Accuracy : single with get, set

Property Value

horizontal accuracy of this location

Attributes

Remarks

Property getter documentation:

Returns the estimated horizontal accuracy radius in meters of this location at the 68th percentile confidence level. This means that there is a 68% chance that the true location of the device is within a distance of this uncertainty of the reported location. Another way of putting this is that if a circle with a radius equal to this accuracy is drawn around the reported location, there is a 68% chance that the true location falls within this circle. This accuracy value is only valid for horizontal positioning, and not vertical positioning.

This is only valid if #hasAccuracy() is true. All locations generated by the LocationManager include horizontal accuracy.

Java documentation for android.location.Location.getAccuracy().

Property setter documentation:

Set the horizontal accuracy in meters of this location.

Java documentation for android.location.Location.setAccuracy(float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to