问题描述
我想知道的融合位置,做上述任何使用GPS + wifi网络的结合在一起呢?什么是供应商方面的差异(没有任何它使用了GPS)?从我的文档中看到所不同的只是距离
I'm wondering for the fused location, does any of the above use a combination of gps + wifi network together? what is the difference in terms of provider (does any of it uses the gps)? from what i see in the documentation the difference is only distance
我有previously曾与LocationManager和使用NETWORK_PROVIDER和GPS_PROVIDER合力得到的这两个供应商的组合。
I've previously worked with LocationManager and used NETWORK_PROVIDER and GPS_PROVIDER together to get a combination of those two provider.
推荐答案
新的融合位置提供商采取了略微不同的方法相比,previous方法。现在,开发人员选择多少电量来计算,而不是它的设备组件被用于计算它的位置。它使用任何可用的GPS和Wi-Fi,移动网络和车载传感器的组合来计算位置。
The new fused location providers take a slightly different approach compared to previous methods. Developers now choose how much battery power is used to calculate a location instead of which device components are used to calculate it. It uses any available combination of GPS, Wi-Fi, mobile networks, and onboard sensors to calculate the location.
在 LocationRequest
优先级设置现在:
-
PRIORITY_NO_POWER
(被动侦听来自其他客户端位置更新) -
PRIORITY_LOW_POWER
(〜10公里城市精度) -
PRIORITY_BALANCED_POWER_ACCURACY
(〜百米块的准确度) -
PRIORITY_HIGH_ACCURACY
(准确地在电池寿命为代价)
PRIORITY_NO_POWER
(passively listens for location updates from other clients)PRIORITY_LOW_POWER
(~10km "city" accuracy)PRIORITY_BALANCED_POWER_ACCURACY
(~100m "block" accuracy)PRIORITY_HIGH_ACCURACY
(accurate as possible at the expense of battery life)
谷歌介绍了 LocationRequest
类在这里:http://developer.android.com/reference/com/google/android/gms/location/LocationRequest.html
这篇关于PRIORITY_LOW_POWER VS PRIORITY_BALANCED_POWER_ACCURACY为谷歌游戏服务V2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!