Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Location getAccuracy() what this function do?

Tags:

I know that this function returns a float indicating the accuracy of a particular location. My question is: Is it right that greater the value returned by this function means more accurate the location is? Or it is the inverse what I am saying ?

like image 517
Khawar Raza Avatar asked Sep 16 '11 08:09

Khawar Raza


People also ask

What is location object in Android?

java.lang.Object. ↳ android.location.Location. A data class representing a geographic location. A location consists of a latitude, longitude, timestamp, accuracy, and other information such as bearing, altitude and velocity.

What is location accuracy mean?

location. getAccuracy() provides the float value representing accuracy in meters (radius). So if it returns 1 that means the object location is accurate to within 1 meter radius. Lower the integer better the accuracy.


1 Answers

The lower the number, the more accurate it is.

like image 74
Finn Larsen Avatar answered Sep 20 '22 19:09

Finn Larsen