I'm trying to retrieve data from GPS, but it's not so accurate. Here is a screenshot :
It worked great with GPS emulation on the simulator. I want to know how to improve this.
Here is the code I tried :
UserLocation = [[CLLocationManager alloc] init];
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 60000
[UserLocation setPausesLocationUpdatesAutomatically:NO];
[UserLocation setActivityType:CLActivityTypeFitness];
#endif
UserLocation.delegate = self;
[UserLocation setDistanceFilter:kCLDistanceFilterNone];
[UserLocation setDesiredAccuracy:kCLLocationAccuracyBestForNavigation];
[UserLocation startUpdatingLocation];
and then I retrieve data every second and check if it's different than the previous one.