I am having such a weird problem...
Apparently, the GPS information received from my code (which is almost exact as Apple's SDK examples) is not as accurate as when using the Maps app on the iPhone.
Interesting enough, if I go into maps app, locate myself, and then go into my app, I get accurate GPS coordinates.
BUT many times, if just going into my app and getting coordinates, they are not accurate at all.
Anyone have this experience too? IS there a way to force the GPS to get more accurate coordinates (yes I know of the distancefilter and desiredAccuracy, but still no dice...

)
This is bugging me out.....
see code below... quite simple....
Code:
// Called when the location is updated
- (void)locationManagerCLLocationManager *)manager
didUpdateToLocationCLLocation *)newLocation
fromLocationCLLocation *)oldLocation
{
NSMutableString *lastTimeUpdated = [[[NSMutableString alloc] init] autorelease];
NSMutableString *currentLatitude = [[[NSMutableString alloc] init] autorelease];
NSMutableString *currentLongitude = [[[NSMutableString alloc] init] autorelease];
// Timestamp
NSDateFormatter *dateFormatter = [[[NSDateFormatter alloc] init] autorelease];
[dateFormatter setDateStyle:NSDateFormatterMediumStyle];
[dateFormatter setTimeStyle:NSDateFormatterMediumStyle];
[lastTimeUpdated appendFormat:@"%@\n\n", [dateFormatter stringFromDate:newLocation.timestamp]];
// Horizontal coordinates
if (signbit(newLocation.horizontalAccuracy))
{
// Negative accuracy means an invalid or unavailable measurement
[currentLatitude appendString:LocStr(@"LatLongUnavailable")];
}
else
{
// CoreLocation returns positive for North & East, negative for South & West
currentLatitude = [NSString stringWithFormat:@"%lf",newLocation.coordinate.lat itude];
currentLongitude = [NSString stringWithFormat:@"%lf",newLocation.coordinate.longitude];
}
lblMyCurrentLatitude.Text = currentLatitude;
lblMyCurrentLongitude.Text = currentLongitude;
}
Thanks for any help you can provide....