2011-06-27 39 views
0

什么是可能的步骤来提高iPhon的纬度和经度的准确性。如何提高纬度使用核心位置管理器的准确性

由于有很多种方式,通常我们使用

self.TlocationManager = [[[CLLocationManager alloc] init] autorelease]; 

self.TlocationManager.desiredAccuracy = kCLLocationAccuracyBest; 


self.TlocationManager.distanceFilter = kCLLocationAccuracyBestForNavigation; 

self.TlocationManager.delegate = self; 

[self.TlocationManager startUpdatingLocation]; 

Aprat从这个什么额外的,我们需要实现从iPhone获得最佳的位置。

回答

2

好了,你不能改变代码,使其更好...但你可以使在您委托了一些有趣的检查:

- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation 

凡newLocation包含以下属性:

horizontalAccuracy 
    verticalAccuracy 

在开始“使用”lat/long的值之前,您应该监视精度,直到达到您满意的程度。

http://developer.apple.com/library/ios/#documentation/CoreLocation/Reference/CLLocation_Class/CLLocation/CLLocation.html#//apple_ref/doc/c_ref/CLLocation

2

不,这是你可以在代码中做的最好的。