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
-1
votes
2 answers

How to pass CLLocation to different ViewController

My app has two tabs. On the first tab a bunch of tab annotations are created based on an attraction. When you click on the annotation view, it goes to the 2nd tab which is a detail view controller of the attraction. I am wondering how I can pass the…
Varun Varahabotla
  • 548
  • 2
  • 7
  • 16
-1
votes
1 answer

iOS: Create CLLocation with latitude, longitude, speed and timestamp

I'm want to initialize a CLLocation object. To do this I'm using: CLLocation *location = [[CLLocation alloc] initWithLatitude:latitude longitude:longitude]; My location need speed and timestamp, but speed and timestamp are read only parameters.…
Ricardo
  • 2,086
  • 25
  • 35
-1
votes
2 answers

Keep monitoring user's location whenever it changes its position

I am new in location services. I have used startMonitoringSignificantLocationChanges and (void)locationManager:(CLLocationManager *)manager didUpdateToLocation: (CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation method but it is not…
Zalak Patel
  • 1,937
  • 3
  • 26
  • 44
-1
votes
2 answers

Getting coordinates CLLocationManager IOS

I'm trying to getting my current location exact according to my coordinates. I've implemented CLLocationManager in my viewController called myLocation. My problem is, I'm getting not getting my co-ordinates for the first time, but when I again…
developer
  • 668
  • 1
  • 6
  • 24
-1
votes
2 answers

CLLocationManager works with ARC?

All I'm trying to do is get the current position of the User, and show on the map of my app, so I am using CLLocationManager class, as anybody can see below: ViewController.h import #import #import…
Belzum Nulls
  • 41
  • 1
  • 1
  • 9
-1
votes
1 answer

Converting CLLocation objects Array from String

Hi Guys I am trying to parse the below JSON format into CLLocation. { "id": 6, "userId": 62, "name": "town run", **"locations": "(\n \"<+32.09230720,+74.17861462> +/- 5.00m (speed -1.00 mps / course -1.00) @…
-1
votes
2 answers

CLLocation get only coordinates

I need to get an CLLocation array with only the coordinates, like this: var locations = [CLLocation(latitude: 38.5, longitude: -120.2), CLLocation(latitude: 40.7000, longitude: -120.95000), CLLocation(latitude: 43.25200, longitude:…
EricDXS
  • 882
  • 9
  • 11
-1
votes
1 answer

iOS save latitude/longitude cordinates to NSString to output to a label

how can i save latitude and longitude coordinates to a nsstring so that i can use it in another function. basically, i just want to show the values retrieved from the coordinates to be passed to a uilabel. - (void)viewDidLoad { [super…
Mugs
  • 129
  • 10
-1
votes
3 answers

CLLocationManager always returns the exact same location

I am trying to set up a new CLLocation and CLRegion, but the location always returns with the same coordinates, regardless of where I actually am. My main UIViewController conforms to the CLLocationManagerDelegate protocol, as does a custom class.…
-1
votes
4 answers

Separation of Latitude and Longitude Values From JSON Output

I am Having some set of Ploy-line Decoded Strings i store them in an array. No i want to separate Latitude and Longitude values from them. I follow this this link. It is Working fine for one String. if i want to get Lat Long Values from more than…
Suresh Peddisetti
  • 3,782
  • 3
  • 23
  • 26
-1
votes
1 answer

trying to retrieve current location in iOS

I am building an app which requires me to find the distance between a location specified and my current location. I am using CLLocationManager for the same but the coordinates retrieved are 0,0 despite me specifying a custom location in the…
Parth Mody
  • 75
  • 3
  • 8
-1
votes
1 answer

using saved GPS coordinates from CLLocation to plot on the iPhone map

I have been using core data to save the user's location for various times in a table view. Now that I can actually get the location details (coordinates mainly) at various times, I would like to plot the coordinates that are available at each time…
Raj0689
  • 73
  • 1
  • 1
  • 9
-1
votes
1 answer

location based `local Notification` works in the `background` but not in the `foreground`

Notification should activate whenever the location is near, but it only works in the background. Even though the triggering event happens in both the foreground and background. - (void)locationManager:(CLLocationManager *)manager…
-2
votes
0 answers

CLLocationManager giving weird scientific Longitude value

Sometimes CLLocationManager gives Longitude in a scientific value, like 2.44272547E-315. It happens randomly throughout the day. I am still trying to figure out but no luck so far. Does any else had faced this issue before?
-2
votes
1 answer

CLLocationManager permissions iOS 11 and iOS 10

In my application I am using CLLocation services in one of my ViewController. Should I ask user for permission in appdelegate or in that particular ViewController. If I add permission request code in particular ViewController it will not ask…
Sangram Shivankar
  • 3,535
  • 3
  • 26
  • 38
1 2 3
53
54