如何刪除這是由CLLocationManager以及如何發送,以增加其accuracy.Every時我啓動它給了我緩存數據和一些再寄一次更新後,它的應用已經看到幾個線程,但我緩存數據我無法得到一個具體的解決方案。任何人都可以提供我的代碼? 我使用下面的方法來獲取位置數據....CLLoacationManager類歸國緩存數據
- (void)locationManager:(CLLocationManager *)manager
didUpdateToLocation:(CLLocation *)newLocation
fromLocation:(CLLocation *)oldLocation
我已經設置委託和準確性這裏.....
- (void)viewDidLoad {
[super viewDidLoad];
bestEffortAtLocation = nil;
latLocationArray = [[NSMutableArray alloc]init];
longLocationArray = [[NSMutableArray alloc]init];
locationManager =[[CLLocationManager alloc]init];
locationManager.delegate = self;
locationManager.distanceFilter = kCLDistanceFilterNone;
locationManager.desiredAccuracy = kCLLocationAccuracyBest;
[locationManager startUpdatingLocation];
}
也可以我使用CLLocationManager來計算人的旅行距離?
THX paxswill ....但我仍然得到緩存值 – Siddharth 2010-06-22 13:24:30