core-location

iphone CLLocationmanager Region monitoring callbacks not triggered

…衆ロ難τιáo~ 提交于 2019-12-21 04:46:06
问题 I am trying to use monitoring regions to track if users have visited landmarks. the location manager is initialized in a viewcontroller along with a mapkit in viewdidload of the view controller: if (self.locationManager == nil) { // NSLog(@"creating location manager"); self.locationManager = [[CLLocationManager alloc] init]; locationManager.delegate = self; locationManager.desiredAccuracy = kCLLocationAccuracyBestForNavigation; locationManager.distanceFilter = kCLDistanceFilterNone; } NSSet*

Plotting a users route taken on a map using MKPolyline

家住魔仙堡 提交于 2019-12-21 02:51:19
问题 I'm quite new to Objective-c. In my app, I'm trying to plot the users taken route onto a map. Here is what I have so far that just gets the users current location: #import "StartCycleViewController.h" #import "CrumbPath.h" @interface StartCycleViewController () @property (nonatomic, strong) CLLocationManager *locationManager; @property (nonatomic, strong) IBOutlet MKMapView *map; @property (nonatomic, strong) UIView *containerView; @end @implementation StartCycleViewController @synthesize

MKReverseGeocoder server returned error: 503

孤者浪人 提交于 2019-12-21 02:01:33
问题 Currently i am developing an iPhone application where i have to show user's current city and location for which i am using Mapkit Framework.When i build the application it works fine and show me the exact city details .But right now when i try to build the application again application shows following error message in my log /SourceCache/ProtocolBuffer_Sim/ProtocolBuffer-26/Runtime/PBRequester.m:523 server returned error: 503 reverseGeocoder: didFailWithError:Error Domain

MKReverseGeocoder server returned error: 503

佐手、 提交于 2019-12-21 02:01:28
问题 Currently i am developing an iPhone application where i have to show user's current city and location for which i am using Mapkit Framework.When i build the application it works fine and show me the exact city details .But right now when i try to build the application again application shows following error message in my log /SourceCache/ProtocolBuffer_Sim/ProtocolBuffer-26/Runtime/PBRequester.m:523 server returned error: 503 reverseGeocoder: didFailWithError:Error Domain

What are the rules behind “X would like to use your current location” on the iPhone?

百般思念 提交于 2019-12-20 12:09:42
问题 Using location-awareness on the iPhone triggers the "X would like to use your current location" - "Don't allow"/"OK". In the CLLocationManager documentation, it is stated: "The user has the option of denying an application’s access to the location service data. During its initial uses by an application, the Core Location framework prompts the user to confirm that using the location service is acceptable. If the user denies the request, the CLLocationManager object reports an appropriate error

iPhone development - Locate address from user's position

限于喜欢 提交于 2019-12-20 10:58:19
问题 Is it possible to get the street/area where the user currently is by using the CoreLocation framework? So if I get the user's longitude and latitude position, can I get the address (xx street, yy city, z state) from that position? Thanks. Someone had already posted the question before. Just found out Get street address at lat/long pair 回答1: What you would need is a reverse geocoding service, that will translate a lat/lon coordinate set in to an address. I doubt that this, or access to one, is

iOS CoreLocation (null) crash

会有一股神秘感。 提交于 2019-12-20 10:09:20
问题 I've been getting this error in my app through Crashlytics. I can't find where and how this crash occurs. Here is the log from Crashlytics: Thread : Crashed: com.apple.main-thread 0 CoreLocation 0x0000000183f62304 (null) + 60044 1 CoreLocation 0x0000000183f230f0 (null) + 1436 2 CoreLocation 0x0000000183f230f0 (null) + 1436 3 CoreLocation 0x0000000183f2261c (null) + 1980 4 CoreFoundation 0x0000000183754c9c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28 5 CoreFoundation

how to get the current location in latitude and longitude in objective c

烈酒焚心 提交于 2019-12-20 09:24:52
问题 I am using the following code to get the current location,I have added the corelocation framework - (void)viewDidLoad { [super viewDidLoad]; locationManager = [[CLLocationManager alloc] init]; locationManager.delegate = self; locationManager.distanceFilter = kCLDistanceFilterNone; // whenever we move locationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters; // 100 m [locationManager startUpdatingLocation]; } - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:

how to find nearest latitude and longitude form current place?

感情迁移 提交于 2019-12-20 06:07:27
问题 I have a dictionary with a collection of n number of latitude, longitude and address. I want to calculate which (latitude and langitude)point is closest from current user location(latitude ,langitude) in ios? Thanks in advance 回答1: If you want to calculate based on the co-ordinates , here is simple scenario : Just take all of the "CLLocationCoordinate2D" from your dictionary . For ex: MKPointAnnotation *annotaion=[MKPointAnnotaion alloc]alloc]; CLLocationCoordinate2D pointACoordinate =

how to find nearest latitude and longitude form current place?

倖福魔咒の 提交于 2019-12-20 06:06:04
问题 I have a dictionary with a collection of n number of latitude, longitude and address. I want to calculate which (latitude and langitude)point is closest from current user location(latitude ,langitude) in ios? Thanks in advance 回答1: If you want to calculate based on the co-ordinates , here is simple scenario : Just take all of the "CLLocationCoordinate2D" from your dictionary . For ex: MKPointAnnotation *annotaion=[MKPointAnnotaion alloc]alloc]; CLLocationCoordinate2D pointACoordinate =