core-location

SignificantLocationChanges doesn't work since iOS 8

自闭症网瘾萝莉.ら 提交于 2019-12-20 01:43:54
问题 I have a problem with the SignificantLocationChanges since the release of iOS 8. The method [locationManager startMonitoringSignificantLocationChanges]; is called correctly after checking for availability, the delegates also work nice (I check it with the didChangeAuthorizationStatus method, which is part of the same delegate and object) and compiler has no doubts, but there comes absolutely no updates and no errors from the didFailWithError method. The log says the authorizationStatus is 4,

CLGeocoder geocoding is hopelessly inaccurate

三世轮回 提交于 2019-12-19 12:37:10
问题 I have an App that does forward geocoding (get coordinates given address) to display a bunch of pins on an MKMapView . The app was developed well before iOS supported forward geocoding using CLGeocoder (first available in iOS 5). As such my app uses the Google Maps Geocoding API, which is generally very accurate. Given a full address with a street number it will generally give you the exact location of that address within a couple of metres. I'm doing some updates to my App to support iOS 6

Find the number of routes between two places

六眼飞鱼酱① 提交于 2019-12-19 07:54:36
问题 I need to find out the number of routes from a source to a destination using the Google maps API, and then find, among those, which one is the shortest route. I am able to get one route by using this code -(NSArray*) calculateRoutesFrom:(CLLocationCoordinate2D) f to: (CLLocationCoordinate2D) t { NSString* saddr = [NSString stringWithFormat:@"%f,%f", f.latitude, f.longitude]; NSString* daddr = [NSString stringWithFormat:@"%f,%f", t.latitude, t.longitude]; NSString* apiUrlStr = [NSString

iOS detect mock locations

偶尔善良 提交于 2019-12-19 06:34:55
问题 Currently I'm working on an App which geolocation capabilities are its most important feature. Actually we're very concerned about getting GPS values mocked up. I've read a lot of comments regarding mocking locations on both iOS and Android and most of them tend to explain an unjailbroken iOS device can't mock locations, but the truth is I've created another project, with a GPX file to mock up location on that project and when executed, the entire system believes I'm in another city. All my

iOS detect mock locations

别等时光非礼了梦想. 提交于 2019-12-19 06:34:02
问题 Currently I'm working on an App which geolocation capabilities are its most important feature. Actually we're very concerned about getting GPS values mocked up. I've read a lot of comments regarding mocking locations on both iOS and Android and most of them tend to explain an unjailbroken iOS device can't mock locations, but the truth is I've created another project, with a GPX file to mock up location on that project and when executed, the entire system believes I'm in another city. All my

iOS detect mock locations

我怕爱的太早我们不能终老 提交于 2019-12-19 06:33:26
问题 Currently I'm working on an App which geolocation capabilities are its most important feature. Actually we're very concerned about getting GPS values mocked up. I've read a lot of comments regarding mocking locations on both iOS and Android and most of them tend to explain an unjailbroken iOS device can't mock locations, but the truth is I've created another project, with a GPX file to mock up location on that project and when executed, the entire system believes I'm in another city. All my

iOS detect mock locations

牧云@^-^@ 提交于 2019-12-19 06:33:25
问题 Currently I'm working on an App which geolocation capabilities are its most important feature. Actually we're very concerned about getting GPS values mocked up. I've read a lot of comments regarding mocking locations on both iOS and Android and most of them tend to explain an unjailbroken iOS device can't mock locations, but the truth is I've created another project, with a GPX file to mock up location on that project and when executed, the entire system believes I'm in another city. All my

iOS8 Location: How should one request Always Authorization after user has granted “When In Use” Authorization?

早过忘川 提交于 2019-12-19 06:30:41
问题 When my app launches the map view, I request the iOS8 "When In Use" location permission. Assume user grants that. I would like to request the Always permission only when user opts-in to my geofencing feature. But calling CLLocationManager.requestAlwaysAuthorization has no effect because the current authorization status is no longer kCLAuthorizationStatusNotDetermined. How would one go about requesting the Always permission AFTER user has granted When In Use permission? I would think this is a

Storing high precision latitude/longitude numbers in iOS Core Data

不羁岁月 提交于 2019-12-19 06:03:21
问题 I'm trying to store Latitude/Longitudes in core data. These end up being anywhere from 6-20 digit precision. And for whatever reason, i had them as floats in Core Data, its rounding them and not giving me the exact values back. I tried "decimal" type, with no luck either. Are NSStrings my only other option? EDIT NSManagedObject: @interface Event : NSManagedObject { } @property (nonatomic, retain) NSDecimalNumber * dec; @property (nonatomic, retain) NSDate * timeStamp; @property (nonatomic,

iPhone Core Location: Custom pin image disappears when map type changes

余生长醉 提交于 2019-12-19 03:37:11
问题 I have a segmented controller which sits on a MKMapView. When I change MKMapType, the image of my custom pins revert to the default red. The title and subtitle, along with coordinates remain intact. Can anyone shed some light on a possible solution? 回答1: I had a similar problem a while ago. Why does a custom MKMapView annotation image disappear on touch? Make sure you're using MKAnnotationView instead of MKPinAnnotationView everywhere in your viewForAnnotation method. 来源: https:/