Why is the onLocationChanged of the LocationListener so inaccurate?

0

I'm working with Android gps. I'm using LocationManager.GPS_PROVIDER and it's giving me very bad points, a long way from my location. Has anyone worked with this tool? it's normal? Thank you in advance.

    
asked by anonymous 25.07.2016 / 21:50

1 answer

2

The actual accuracy of a device depends on the chipset, the location where you are (in an enclosed space, tends to be more imprecise), among others.  All Locations generated by LocationManager include precision:    getAccuracy ()

This is informed with 68% confidence!

Normally, the accuracy of a device is given as a distance together with the percentage of measurements that are within the distance of that true location.

The typical accuracy of a handheld GPS device would be something like 30% of your measurements within 50 meters of the actual position (yes, the devices are typically inaccurate).

To get more accurate, consider using more precise Locations only:

 if(location.getAccuracy() < 25.0){
 // Usamos esta localização
}
    
25.07.2016 / 23:24