cllocation Questions

20

Solved

I want to get the current location, but instead I get an error. This is a snippet of my view controller. - (void)viewDidLoad { self.locationManager = [[CLLocationManager alloc] init]; [location...
Starstarboard asked 17/5, 2011 at 15:10

5

UPDATE: THIS IS NOT A DUPLICATE. I have already added the required key to the info.plist as stated in my original question and the issue remains. I have tried all three keys in various combinations...
Kapok asked 29/12, 2014 at 18:19

13

Solved

I need a way of comparing two CLLocationCoordinate2D's however when I tried using == it wouldn't work. Please can someone help me out with the best way of comparing them?
Entopic asked 17/4, 2012 at 21:4

12

Solved

This my code...... -(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations { location_updated = [locations lastObject]; NSLog(@"updated coordinate are %@",...
Awesome asked 10/3, 2014 at 5:43

10

Solved

I need to check if user location belongs to the MKCoordinateRegion. I was surprised not to find simple function for this, something like: CGRectContainsCGPoint(rect, point). I found following piec...
Newborn asked 11/5, 2012 at 14:13

2

Solved

I need a way of categorising the strength of the GPS signal. So far I have come across the horizontalAccuracy property of CLLocation (Class Reference). To be more specific I need to create somethi...
On asked 20/4, 2012 at 12:54

2

Solved

I have the following code, which aims to loop through all the annotations on the current apple map view and update their location coordinates. for existingMarker in self.mapView.annotations { ex...
Sanfred asked 28/5, 2017 at 23:6

3

I am calling this function once I get the addressString: [[self geocoder] geocodeAddressString:addressString completionHandler:^(NSArray *placemarks, NSError *error) { if (error) { block(nil, n...
Siret asked 7/2, 2014 at 10:5

8

I'm trying to get my current location, but the break point in didUpdateLocations is never being called. LocationManager: locationManager = [[CLLocationManager alloc] init]; [locationManager setDele...
Aftershaft asked 27/10, 2013 at 23:3

2

I am currently testing the background location mode in iOS 13, as I want to track the user´s location and motion (using the CMMotionManager) in the background. Therefore, I have my own (singleton) ...
Tito asked 9/10, 2019 at 6:44

10

Solved

I want to make it so that it will show the amount of distance between two CLLocation coordinates. Is there someway to do this without a complex math formula? If there isn't how would you do it with...
Middlemost asked 23/10, 2015 at 14:4

8

Solved

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 bear...
Coaler asked 13/10, 2010 at 16:38

3

Solved

Trying to get current location with using swiftUI. Below code, couldn't initialize with didUpdateLocations delegate. class GetLocation : BindableObject { var didChange = PassthroughSubject<Ge...
Ainslee asked 10/6, 2019 at 20:22

2

Solved

I am using react-native-sensor to grab the raw data from these sensors. import {magnetometer, acclerometer} from 'react-native-sensors'; const subscription = accelerometer.subscribe(({ x, y, z, ti...

3

Solved

I am trying to save CLLocation data in Core Data. My property is set as a Transformable object. Some sample code out there indicates one can save the location data using this objc converted to an ...
Newsdealer asked 6/11, 2014 at 22:20

2

Solved

I want to use CLLocationManager with RxSwift like in https://github.com/ReactiveX/RxSwift/issues/413 but I found that CLLocationManager extension was moved to RxExample (mentioned here https://gith...
Fasto asked 25/11, 2016 at 19:25

5

Solved

This is the code that I have in my AppDelegate Class - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { CLLocationManager *locationM...
Slipper asked 17/6, 2010 at 4:45

4

Solved

I'm writing an App with a mapView showing some Annotations. Now I want to show the User's current location in the mapView. I get the current Location using this code: - (void)locationManager:(CLL...
Holmgren asked 14/10, 2013 at 10:12

8

I have an array, allCollections, that holds programmatically-created arrays of CLLocations the user has recorded through my iOS app. Each sub-array in allCollections holds all the location points i...
Ko asked 26/11, 2012 at 16:47

4

Solved

How to check that CLLocationCoordinate2D is not empty?
Shornick asked 25/11, 2011 at 18:40

2

Solved

Im trying to convert CLLocationCoordinates2d coordinates to a physical street address. I have tried CLGeocoder with no luck. Here is my code that supplies the latitude and longitude coordinates. ...
Tall asked 18/8, 2018 at 6:19

2

Solved

MapKit's built in function MKCoordinateRegionMakeWithDistance takes distances in meters and turns them into a MKCoordinateRegion: func MKCoordinateRegionMakeWithDistance( _ centerCoordinate: CLLo...

5

Solved

I am working on an iOS application using location services. Having a background in experimental physics, I am wondering what exactly horizontalAccuracy in a location found in locationManager:didUpd...
Enmesh asked 17/5, 2012 at 11:20

3

Solved

I know how to find the true heading/magnetic heading for the location my phone is currently at, but is it possible to find the magnetic deviation/declination for a remote location? What I would li...
Fervor asked 5/6, 2012 at 9:8

6

Solved

What I'm trying to do is pass a CLLocation to the function getPlacemarkFromLocation which then uses the passed CLLocation through reverseGeocodeLocation to set the CLPlacemark? that will be returne...
Sapotaceous asked 21/6, 2014 at 19:50

© 2022 - 2024 — McMap. All rights reserved.