Location getAccuracy() what this function do?

五迷三道 提交于 2019-12-09 08:18:43

问题


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 ?


回答1:


The lower the number, the more accurate it is.




回答2:


getAccuracy() describes the deviation in meters. So, the smaller the number, the better the accuracy.




回答3:


Accuracy reported by getAccuracy() is in meters, ex. 10 meters. Google defines accuracy as the radius of 68% confidence(on sigma), which means if you get 10 meters of accuracy from getAccuracy(), then you are somewhere within 10 meters from the actual location with probability of 68/100 times. If getAccuracy() reported is 20 meteres, then you are somewhere within 20 meters from actual location. So the smaller number reported by getAccuracy() means you are closer to the actual location.




回答4:


And when getAccuracy() return 0.0 - it means that this location does not have an accuracy.



来源:https://stackoverflow.com/questions/7441768/location-getaccuracy-what-this-function-do

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!