问题
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