在什么情况下 horizontalAccuracy 为负&零以及如何模拟
On what condition horizontalAccuracy is negative&zero and how to simulate
我用
[locations firstObject].horizontalAccuracy
在
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations
我知道
负值表示该位置的经纬度无效。(horizontalAccuracy)
问题:
1)什么条件下horizontalAccuracy
为负数?
是不是说当horizontalAccuracy
为0时位置信息很好(没有遗漏)?
2) 如何模拟 1)?我想知道 1) 什么时候发生,经度和纬度是多少。
非常感谢。
horizontalAccuracy
是 -1
,而传感器正在预热,我们还没有定位。永远不会是0
;如果那样的话,您将获得的最好结果可能是 10
。
您不需要"simulate"任何东西。 运行 您设备上的代码,最初很可能是 -1
。
我用
[locations firstObject].horizontalAccuracy
在
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations
我知道
负值表示该位置的经纬度无效。(horizontalAccuracy)
问题:
1)什么条件下horizontalAccuracy
为负数?
是不是说当horizontalAccuracy
为0时位置信息很好(没有遗漏)?
2) 如何模拟 1)?我想知道 1) 什么时候发生,经度和纬度是多少。
非常感谢。
horizontalAccuracy
是 -1
,而传感器正在预热,我们还没有定位。永远不会是0
;如果那样的话,您将获得的最好结果可能是 10
。
您不需要"simulate"任何东西。 运行 您设备上的代码,最初很可能是 -1
。