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

Show users location on Globe instead of map in iOS 5 +

I want to show users location with his profile image on Globe (Circular earth) instead of 2D map. As per my knowledge , latitude & longitude which we get from CLLocationManager are converted from circular by making calculation to display it in 2D…
iOSAppDev
  • 2,755
  • 4
  • 39
  • 77
0
votes
2 answers

how to split out reverse geocoding components?

anyone know how to split out like city, state and address from this code? It returns the entire address, but i only want city and state. //Geocoding Block [_geoCoder2 reverseGeocodeLocation: _currentLocation2.location completionHandler: ^(NSArray…
mreynol
  • 309
  • 3
  • 17
0
votes
1 answer

Placemark not giving zip code to find out weather information

I want to find out the weather from the current location. For that I used the code as -(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation { …
Heena
  • 2,348
  • 3
  • 32
  • 58
0
votes
1 answer

Need distance from stored coordinates to current location

I am trying to get a distance from my longitude and latitude i have stored into core data, to the current location. I have this code, but i cannot figure out how to integrate the code for using the coordinates i have stored in core data. How do i…
mreynol
  • 309
  • 3
  • 17
0
votes
1 answer

iOS how to make iPhone compass heading move around a circle with animation?

I have a circle CGRectMake(0.0, 0.0, 100.0, 100.0) with cornerRadius = 100; I want to move an image around that circle. The image should move around the circle and point to the north. In other words it's a compass, just the heading doesn't rotate,…
spacecash21
  • 1,331
  • 1
  • 19
  • 41
0
votes
1 answer

iPhone Mapview update Callout View

Wonder how I can change the callout view of the pins, depending on my different current userLocation. The Pin stay still at some place. For example, a pin is settled at the church. If I am at home, I want the callout of the pin show message @"the…
JackieLam
  • 668
  • 1
  • 7
  • 20
0
votes
1 answer

How do I obtain the values associated with CLLocationManager - i.e. CLLocationSpeed, CLLocationDirection, CLLocationAccuracy, CLLocationCoordinates?

I have the following code in the .m file. The code is to perform the following tasks: initialize the CLLocationManager class obtain the properties (Speed, Accuracy, Coordinates) convert these values to NSString log these values to the screen via…
0
votes
1 answer

iPhone Getting Location Periodically

Possible Duplicate: Time based GPS location in background (iphone) I am trying to get the iPhone's location periodically. When the app goes into background, a new thread is created and wants to get user's location, and then goes to sleep for X…
Arman Shan
  • 101
  • 1
  • 3
0
votes
2 answers

Getting better accuracy in iOS CLLocation

In iOS when using CLLocationManager to get a device's coordinates the latitude and longitude are given with six decimal places after the dot. I saw an app which gives you the coordinates with thirteen decimal places. How is this possible? Changing…
Ata01
  • 303
  • 4
  • 19
0
votes
2 answers

How do I pass both latitude and longitude coordinates on button press and drop a pin on next map view?

I feel like I'm getting close if someone can just help me on the last stretch! Currently I have the following: { CLLocationCoordinate2D location; location.latitude = (double) 44.4758; location.longitude = (double) -73.2125; str =…
Greg
  • 276
  • 1
  • 3
  • 25
0
votes
1 answer

Asynchronous block in a loop

How can I manage calling an asynchronous block in a loop? My code to be called n-times: - (void) convertToCountries:(NSString*)time longitude:(NSString*)lon latitude:(NSString*)lat { CLLocation *myLocation = [[CLLocation alloc]…
Vanya
  • 4,973
  • 5
  • 32
  • 57
0
votes
2 answers

CLLocationManager ensure best accuracy for iphone

Does anyone have any suggestions on how to obtain the best horizontal accuracy on the location manager? I have set the desired accuracy to NearestTenMeters, but given that the accuracy can always change depending on coverage area, how can I write…
Zap
0
votes
2 answers

How do I pass both latitude and longitude coordinates on button press and drop a pin on next map view (between three views)?

I am seriously struggling on something that has kept me for hours if not days. It'd be awesome if someone can offer input. I figured out how to pass data from a button press to another view, but what I am now trying to do is send longitude and…
Greg
  • 276
  • 1
  • 3
  • 25
0
votes
1 answer

Xcode sort CLLocations by distance to user location

After I spendet lots of time googling I decided to ask here. I hope someone can help me. In my project I have some CLLocations with names to each of them. Now I want a list, maybe a tableview or something similar that the user can see which of the…
Valle
  • 67
  • 1
  • 4
0
votes
2 answers

Getting different result from google distance API and native Distance finding function +iphone

I am working on iphone application where i need to find the points between 2 latitude and longitude I had used:- CLLocation* newlocation = [[CLLocation alloc] initWithLatitude:19.0759837 longitude:72.8776559]; CLLocation* oldLocation = [[CLLocation…
ios developer
  • 3,363
  • 3
  • 51
  • 111