Questions tagged [cllocation]

A CLLocation object represents the location data generated by a CLLocationManager object. This object incorporates the geographical coordinates and altitude of the device’s location along with values indicating the accuracy of the measurements and when those measurements were made. In iOS, this class also reports information about the speed and heading in which the device is moving.

A CLLocation object represents the location data generated by a CLLocationManager object. This object incorporates the geographical coordinates and altitude of the device’s location along with values indicating the accuracy of the measurements and when those measurements were made. In iOS, this class also reports information about the speed and heading in which the device is moving.

Typically, you use a CLLocationManager object to create instances of this class based on the last known location of the user’s device. You can create instances yourself, however, if you want to cache custom location data or get the distance between two points.

This class is designed to be used as is and should not be subclassed.

https://developer.apple.com/library/ios/documentation/CoreLocation/Reference/CLLocation_Class/CLLocation/CLLocation.html#//apple_ref/doc/uid/TP40007126

810 questions
0
votes
1 answer

Does the internal GPS antenas stop working immediately after calling CLLocationManager stopUpdatingLocation

Here is my scenario. In my app there is no need of continuously monitoring user location, but I need the location to be as accurate as possible. So I just call CLLocationManager startUpdatingLocation with kCLLocationAccuracyBestForNavigation set as…
kyurkchyan
  • 2,260
  • 2
  • 23
  • 37
0
votes
1 answer

pass cllocation to tableview

I’m trying app that display distance between user location and target location. I intend to get user location didUpdateToLocation method and store in array. Then, put it in table view delegate “cellForRowAtIndexPath” to calculate distance and show…
0
votes
1 answer

Not calling delegate on timer Objective-C

I all I wonder if anybody can help me once again? I have moved my location coding from my View controller into an NSObject. I have then called this from the App Delegate - (BOOL)application:(UIApplication *)application…
jiffo
  • 7
  • 1
  • 5
0
votes
1 answer

How to draw a walking route by two points Xcode

How would draw a walking route by two point (start and end). I wont use polyline.
0
votes
2 answers

How add polyline in mapView

I would insert in my mapview an polyline! I made it in this way CLLocationCoordinate2D coord[2]; coord[1].latitude = 45.42207; coord[1].longitude = 9.123888; coord[2].latitude = 45.422785; coord[2].longitude = 9.12377; MKPolyline *polyline =…
0
votes
2 answers

How to use bridge for CLLocationCoordinate2D

AM trying to add CLLocationCoordinate2D[] to NSMutableArray and send it as parameter. But (__bridge id) is crashing the app. Struct to id conversion is the problem. Could anyone please let me know how to use this please. CLLocationCoordinate2D…
Manoj
  • 1,482
  • 2
  • 20
  • 53
0
votes
1 answer

mapView and UITable detail

trying to pass my annotation's data (name, address, phone #, url, description, etc) to a DetailViewController with a table. stuck----please read the code. the data isnt passed with calloutAccessoryTapped. Help? -…
0
votes
1 answer

ios 6 - an app which allows user to create mapannotations while on the street returns multiple annotations with same coordinates

Im building an app that lets a user build his own map annotations while he walks around the neighbourhood. Im testing this right now. Everything works smoothly Im seeing that when Im out on the street and I create mapannotations they show up on the…
banditKing
  • 9,405
  • 28
  • 100
  • 157
0
votes
1 answer

Human readable location in iOS 6.1

Since the 6.1 update I can only reverse the first 25% of all the photos containing CLLocation information. After the first 25% I get for all the others: Error Domain=kCLErrorDomain Code=2 "The operation couldn’t be completed. (kCLErrorDomain error…
Nuthinking
  • 1,211
  • 2
  • 13
  • 32
0
votes
1 answer

Passing CLLocationCoordinate2D Array as return type

Hi have a method which has to return CLLocationCoordinate2D array. Is there a way to do this? CLLocationCoordinate2D coordinates[count]; I wanna return coordinates; I don't want to put this on array and send as NSArray, Just want to send as…
Manoj
  • 1,482
  • 2
  • 20
  • 53
0
votes
3 answers

CLLocationDistance returns totally wrong values

I am using this function to get the distance from one CLLocation to another here venue.lat is NSNumber GeoAddress *address = [[GeoAddress new] init]; CLLocationCoordinate2D coord; coord.longitude = (CLLocationDegrees)[venue.lat…
Stpn
  • 6,202
  • 7
  • 47
  • 94
0
votes
1 answer

How to convert NSMutableArray to CLLocationCoordinate2D

I have NSMutableArray: userCoordinates = [[d objectForKey:@"geo"] objectForKey:@"coordinates"]; NSLog(@"%@",userCoordinates); NSLog shows: ( "19.365367", "-99.159887" ) Then I need to convert this array to…
0
votes
1 answer

Display the distance between a user's current location and an annotation in a Label

I want to display the distance between a user's current location and another annotation (displayed on my MapView) in a label on my custom table cell. Each cell displays the name of a cafe (nameLabel), and underneath, I want it to display their…
user1953744
  • 41
  • 1
  • 8
0
votes
1 answer

Convert WGS84 into Latitude and Longitude

I need to convert wgs84 values into latitude and longitude values. I need to convert values into latitude and longitude and drop a pin on mapview. For example in plist i have got values SDO_X1= 39616.4535 and SDO_Y1=37472.9078, How do i convert…
Kashif Jilani
  • 1,207
  • 3
  • 22
  • 49
0
votes
1 answer

Saving coordinates into a string

tearing my hair out here I need to put the values of into an array as a string someone on here advised me to set up like this... [twitterLocation addObject:[NSString stringWithFormat:@"%g,%g", latitude, longitude]]; However this is not working. The…
Alan
  • 63
  • 7