cllocation

CLLocationCoordinate2D without knowing how many will be in the array?

I need to build an array using something like the following: CLLocationCoordinate2D points[4]; points[0] = CLLocationCoordinate2DMake(41.000512, -109.050116); points[1] = CLLocationCoordinate2DMake(41.002371, -102.052066); points[2] = CLLocationCoordinate2DMake(36.993076, -102.041981); points[3] = CLLocationCoordin...

cllocation tracking a location

i've a gps tracker that now works great, except when iphone lost gps connection. When the connection is lost the track make one or more point to a random location (as you can see in this image: In which way i can discard this bad values? I've think to do in this way: before save my data i can do a sum of my integer values of current l...

Sharing location via MMS or email on iPhone

From the native iPhone map app, it is possible to share a position via email or MMS. How (if) can this be achieved in a custom app? ...

CLlocation Getting best results Iphone

Hello, I'm trying to make a query based on the user location. The thing is that I can only query upon the first location result, with the lat/lon result as the query parameter. How do I make sure I get the best result of a user location and then execute the sqlite query? Thanks in advance! ...

Can't obtain location data, unless it's direct GPS Fix

Starting this morning my application can not obtain CLLocation data unless direct GPS Fix established. I received few dozen complaints from SouthEast Asia and all my US customers are out of luck since the midnight. I noticed that Echophone and Zillow apps are malfunctioning too. Apple's own Maps.app does not check CLLocation's timestamp ...

How to store CLLocation using Core Data (iPhone)?

Hi, I'm trying to save a location and retrieve the location on a map afterward using Core Location, MapKit and Core Data frameworks. What I've done is I just made entity named POI and added properties such as latitude (double type), longitude (double type) with few others. Simply put, my app saves POI with two NSNumbers. (lat and l...

CLLocation memory issues

Hi guys, I've some memory issues with CLLocation. CLLocation *annotation = [[CLLocation alloc] initWithLatitude:[[tempDict objectForKey:@"lat"] doubleValue] longitude:[[tempDict objectForKey:@"lon"]doubleValue]]; CLLocation *item2 = [[CLLocation alloc] initWithLatitude:[newLatString doubleValue] longitude:[newLongString doubleValue]]; ...

IPhone CLLocation course accuracy

Hi, I'm writting and small app to get the course from the gps. I've tested it outdoor with my car, and newLocation.course always gives even numbers, 0, 2, 4, ... 180, 182, ... 356, 358. I've set distancefilter to none and accuracy to best. ¿Is this a known issue of corelocation?. Am I doing something wrong? Here's is the code (void)l...

CCLocation (iPhone SDK) accuracy

Hi everybody, How accurate is the CCLocation class? 20 meters? more or less? Because I'd like to get the most accurate values from the user's location. Thanks, Regards ...

iPhone SDK Point to a specific location

Hi, I'm trying to develop an application that use the GPS and Compass of the iPhone in order to point some sort of pointer to a specific location (like the compass always point to the North). The location is fixed and I always need the pointer to point to that specific location no matter where the user is located. I have the Lat/Long coo...

CLLocation Category for Calculating Bearing w/ Haversine function

I'm trying to write a category for CLLocation to return the bearing to another CLLocation. I believe I'm doing something wrong with the formula (calculous is not my strong suit). The returned bearing is always off. I've been looking at this question and tried applying the changes that were accepted as a correct answer and the webpage i...

How to find the long and lat of a city on the iphone?

Hi, I am trying to find the long and lat of a city on the iphone. Say the user is searching for London, I would call some function that would retrieve the long and lat of London. I have looked on the web and found you can use a Google API but there must be an Apple function somewhere to handle this? I have come accross the MKReverseGeoc...

CLLocation generates strange Error

Hi, I have got a problem with a CLLocation. I wanted to know the distance between two coordinates to show it next to the title of the location in a tableView: static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewC...

iPhone horizontal accuracy not getting above 100.00

I'm using CLLocationManager to get a location, and I need I within about 40-50 meters. I have desiredAccuracy set to nearest ten meters (also tried with best). It always comes up as 100.00. No higher, no lower. Don't have cell service on the phone, just going off GPS and WiFi. iPhone 3G. Also tried with Apple's LocateMe sample proj...