cllocation Questions

6

Solved

I have the following so far, but can't figure out a tidy way to get the direction letters in without a bunch of messy if statements. Any ideas? Ideally I'd like to extend the CLLocation class with ...
Pomelo asked 13/1, 2012 at 14:9

4

Solved

I have an array of CLLocation data that I would like to archive. Should the NSUserDefaults system be used? Otherwise, how best to archive the CLLocation data?
Starry asked 10/3, 2011 at 13:2

4

I have a MKMapView that has a UISearchBar on the top, and I want the user to be able to type a address, and to find that address and drop a pin on it. What I don't know is how to turn the address s...
Mose asked 1/9, 2013 at 21:21

1

I want to get new location every 1min when my app is in background or killed. Here is my code : Location Service: class LocationService: NSObject, CLLocationManagerDelegate { static let shared ...
Embellish asked 7/1, 2017 at 18:23

5

Solved

How can I get the distance in meters between two CLLocations? CLLocation doesn't provide any method to do it, it seeems.
Guttural asked 3/5, 2012 at 13:6

4

Solved

I'm using CLLocationDistance to get the distance between two points, but I'm getting an error when passing my current location in it. CLLocation *current = [[CLLocation alloc] initWithLatitude:sta...
Git asked 1/4, 2014 at 19:23

4

Solved

I am trying to encode annotations that are on a map, but I read that I am not able to encode CLLocationcoordinate2D variables. Does anyone know how I can solve this? Here is some code. This is whe...
Cajole asked 10/1, 2013 at 22:54

4

Solved

I have a latitude/longitude location that I want to convert to the location name String in Swift. What is the best way to do this? i believe it's best to use the reverseGeocodeLocation function but...
Volumed asked 6/10, 2014 at 23:56

2

Solved

All my geofences are triggering when GPS enters a defined region, at first I thought it was because of the radius, however even after halving it I am having the same problem. import UIKit import C...
Allyn asked 11/8, 2016 at 3:56

13

Solved

CLLocationManager on iPhone Simulator is supposed to fake Cupertino (isn't it?) but it does NOT, it fails with kCLErrorDomain Code=0 instead. LocationManager's delegate receives the message didFail...
Stereoscopic asked 24/6, 2010 at 14:8

2

Solved

I apologise for the redundancy of this topic, but in spite all the given answers, I can't identify the possibility of getting accuracyBest location updates when the app is terminated. I don't want...
Racehorse asked 26/5, 2016 at 2:24

5

I have an app which uses CLLocationManager to track the user's route, drawing dots along the path taken. The app runs in the background using Required background modes > App registers for location ...
Frantz asked 4/1, 2013 at 13:27

3

Solved

I've seen Android developers get the accuracy of a GPS location. Is there a way that I can get the accuracy of my currenct GPS location in iOS? I am using the code from this answer to get my locat...
Syd asked 27/6, 2013 at 7:41

2

I'm working with CLLocationManager class. I want to get location updates periodically. I had found two methods to get location in didUpdateLocations method, that are startUpdatingLocation() and sta...
Arrowwood asked 9/2, 2016 at 6:54

5

Solved

I have two strings representing latitude and longitude like: "-56.6462520", and i want to assign then to a CLLocation object to compare to my current location.I tried the following code but i get e...
Extenuation asked 26/10, 2011 at 19:21

3

Solved

Hello i am using location in iOS app i set the accuracy like this: locationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters and i am using this function to check the accuracy func l...
Chilopod asked 22/12, 2015 at 17:40

5

Solved

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 propertie...
Billionaire asked 26/9, 2010 at 8:55

1

Solved

Swift 2 and watchOS2 has completely changed how Apple Watch extensions work and I have to now recreate them. Originally, I had requested the location on the watch in the normal fashion: self.loca...
Esbenshade asked 6/10, 2015 at 16:50

2

Solved

I use the Google SDK for an application iOS8 (Swift). I want to replace the blue dot (my location) in a GMSMapView by an arrow witch rotate according to the orientation of the smartphone. How can I...
Angy asked 11/3, 2015 at 13:34

3

Solved

How can I calculate the total distance traveled use CoreLocation in Swift I haven't been able to so far find any resources for how to do this in Swift for iOS 8, How would you calculate the total...
Toe asked 9/3, 2015 at 22:15

1

i am using CLLocationManager class in my iPad App to get current location. i am using below code to get Address details, - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(...
Translatable asked 29/7, 2015 at 12:19

3

Solved

I want to allow the users to search for a street name and have the results displayed in a UITableView. For the moment the region is not important, it can be from any region. I could not find any ...
Carvey asked 26/5, 2015 at 14:47

4

I am calling for current location whenever the user logs in, and at several other places. Whenever I do so, the alert view asking for permission by the user appears for a second or so, and then it ...
Singlestick asked 27/7, 2012 at 13:37

2

Solved

Can somebody please help me convert the following Objective-C statement to Swift? CLLocationDistance distance = [fromLocation distanceFromLocation:toLocation]; I know that it must be simple to d...
Derogatory asked 12/8, 2014 at 18:11

2

Solved

In objective C (I have no experience with it) you can initialize a CLLocation object with latitude and longitude likes this: CLLocation *myLocation = [[CLLocation alloc] initWithLatitude:your_lati...

© 2022 - 2024 — McMap. All rights reserved.