How much accuracy does PRIORITY_BALANCED_POWER_ACCURACY give?

若如初见. 提交于 2019-12-23 04:47:24

问题


I'd like to receive location updates with a certain accuracy for tracking motorcycle riders in a city, which means that an accuracy range of approximatelly 50m to 200m would be reasonable. How do I map this to the setPriority() parameter ? In other words, given current location services implementation and some set of devices (define them ?) does this map to PRIORITY_BALANCED_POWER_ACCURACY or to PRIORITY_HIGH_ACCURACY ?


回答1:


For 50m- 200m accuray you need GPS all the time.
There is no half power GPS, none of other locationg technics achieve this accuracy. (Cell Tower 1000m, and Wlan spots 50m if you have one, but often there is none.)

If the app has to track them, you have to use GPS_PROVIDER




回答2:


The HIGH_ACCURACY mode use all location providers, However, it prioritize the location providers and include GPS along with location providers. The location accuracy is approximately within 10 meters of range.

The BALANCED_POWER mode exclude GPS for its list of location providers, and use the other providers based including cell towers, wifi etc. In this case, the location accuracy is approximately 40 meters.

The NO_POWER do not use any location provider, instead it is a passive mode of getting location from other apps. The accuracy could be a mile or more. It is solely based on the locations that are fetch by other applications recently.



来源:https://stackoverflow.com/questions/22408867/how-much-accuracy-does-priority-balanced-power-accuracy-give

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