I want to know that what is the meaning of the accuracy value returned by
location.getAccuracy()
For example: If it returns "1" , than what does it means?
GPS: Maps uses satellites to know your location up to around 20 meters. When you're inside buildings or underground, the GPS is sometimes inaccurate. Wi-Fi: The location of nearby Wi-Fi networks helps Maps know where you are. Cell tower: Your connection to mobile data can be accurate up to a few thousand meters.
The whole point of the accuracy level means that you're within X distance. Your returned location value was 20 meters from your actual position; the accuracy was 20 meters. That's the best you can do with that accuracy.
If you specify that you want an accuracy for an example *100 meters* , Android will try to get the location and if it can get a location for accuracy 70 meters, it will return it to you, but if Android can get a location with an accuracy higher than 100 meters, your application will wait and will not receive anything ...
From the Android docs (http://developer.android.com/reference/android/location/Location.html#getAccuracy())
public float getAccuracy ()
Added in API level 1 Get the estimated accuracy of this location, in meters.
We define accuracy as the radius of 68% confidence. In other words, if you draw a circle centered at this location's latitude and longitude, and with a radius equal to the accuracy, then there is a 68% probability that the true location is inside the circle.
In statistical terms, it is assumed that location errors are random with a normal distribution, so the 68% confidence circle represents one standard deviation. Note that in practice, location errors do not always follow such a simple distribution.
This accuracy estimation is only concerned with horizontal accuracy, and does not indicate the accuracy of bearing, velocity or altitude if those are included in this Location.
If this location does not have an accuracy, then 0.0 is returned. All locations generated by the LocationManager include an accuracy.
So basically, if it returns 1, that means there is a 68% probability that you are within 1 meter of the GPS location reported.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With