{"id":1474,"date":"2012-01-23T13:52:03","date_gmt":"2012-01-23T13:52:03","guid":{"rendered":"http:\/\/www.mobisoftinfotech.com\/blog\/?p=1474"},"modified":"2018-12-12T18:30:21","modified_gmt":"2018-12-12T13:00:21","slug":"ios-5-core-location","status":"publish","type":"post","link":"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location","title":{"rendered":"iOS 5 Core Location"},"content":{"rendered":"<p>The following tutorial explains the use of Core Location Framework from iOS 5.<\/p>\n<p>This application demonstrates use of<br>\n1) Core Location to track the location of the iphone<br>\n2) Map kit to visualize the location of the iphone<br>\n3) It places waypoint<\/p>\n<div style=\"display: none;\"><a title=\"buy clomid online\" href=\"http:\/\/buycheapclomidonline.org\/\">buy clomid online<\/a><\/div>\n<p>s on the map after every 10 seconds and<br>\n4) Joins those waypoints using a black colored line.<\/p>\n<p><strong>Note<\/strong> : It is suggested to try out the application on the actual device as you cannot simulate location changes on the simulator<\/p>\n<p>The Screenshots below explain how to<br>\n1) Create an xcode project using Xcode 4<br>\n2) Adding frameworks to the project (Mapkit and Core Location Framework)<br>\n3) Adding Delegates (MKMapViewDelegate, CLLocationManagerDelegate, UITextFieldDelegate)<br>\n4) Adding the basic UI elements using Interface builder<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><noscript><img decoding=\"async\" class=\"aligncenter  wp-image-1532\" title=\"Add_Frameworks\" src=\"http:\/\/https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Frameworks-300x187.jpg\" alt width=\"Infinity\" height=\"187\" srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Frameworks-300x187.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Frameworks-1024x639.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Frameworks.jpg 1245w\" sizes=\"(max-width: 300px) 100vw, 300px\"><\/noscript><img decoding=\"async\" class=\"aligncenter  wp-image-1532 lazyload\" title=\"Add_Frameworks\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20Infinity%20187%22%3E%3C%2Fsvg%3E\" alt width=\"Infinity\" height=\"187\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20Infinity%20187%22%3E%3C%2Fsvg%3E Infinityw\" sizes=\"(max-width: 300px) 100vw, 300px\" data-srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Frameworks-300x187.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Frameworks-1024x639.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Frameworks.jpg 1245w\" data-src=\"http:\/\/https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Frameworks-300x187.jpg\"><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><noscript><img decoding=\"async\" class=\"aligncenter size-medium wp-image-1533\" title=\"Add_Delegates\" src=\"http:\/\/https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Delegates-300x122.jpg\" alt width=\"300\" height=\"122\" srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Delegates-300x122.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Delegates.jpg 713w\" sizes=\"(max-width: 300px) 100vw, 300px\"><\/noscript><img decoding=\"async\" class=\"aligncenter size-medium wp-image-1533 lazyload\" title=\"Add_Delegates\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20300%20122%22%3E%3C%2Fsvg%3E\" alt width=\"300\" height=\"122\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20300%20122%22%3E%3C%2Fsvg%3E 300w\" sizes=\"(max-width: 300px) 100vw, 300px\" data-srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Delegates-300x122.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Delegates.jpg 713w\" data-src=\"http:\/\/https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Delegates-300x122.jpg\"><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><noscript><img decoding=\"async\" class=\"aligncenter size-medium wp-image-1534\" title=\"Add_Interface_Elements\" src=\"http:\/\/https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Interface_Elements-300x187.jpg\" alt width=\"300\" height=\"187\" srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Interface_Elements-300x187.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Interface_Elements-1024x639.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Interface_Elements.jpg 1245w\" sizes=\"(max-width: 300px) 100vw, 300px\"><\/noscript><img decoding=\"async\" class=\"aligncenter size-medium wp-image-1534 lazyload\" title=\"Add_Interface_Elements\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20300%20187%22%3E%3C%2Fsvg%3E\" alt width=\"300\" height=\"187\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20300%20187%22%3E%3C%2Fsvg%3E 300w\" sizes=\"(max-width: 300px) 100vw, 300px\" data-srcset=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Interface_Elements-300x187.jpg 300w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Interface_Elements-1024x639.jpg 1024w, https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Interface_Elements.jpg 1245w\" data-src=\"http:\/\/https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2012\/01\/Add_Interface_Elements-300x187.jpg\"><\/p>\n<p>&nbsp;<\/p>\n<p>After this, I have included the header file which contains the properties and IBOutlets for the interface elements.<\/p>\n<pre>[objc]\n\/\/ iosViewController.h\n\/\/ Tracker\n\/\/ Created by Pratik Hande.\n\/\/ Copyright (c) 2012. All rights reserved.\n#import &amp;amp;amp;amp;lt;UIKit\/UIKit.h&amp;amp;amp;amp;gt;\n#import &amp;amp;amp;amp;lt;CoreLocation\/CoreLocation.h&amp;amp;amp;amp;gt;\n#import &amp;amp;amp;amp;lt;MapKit\/MapKit.h&amp;amp;amp;amp;gt;\n@interface iosViewController : UIViewController &amp;amp;amp;amp;lt;MKMapViewDelegate, CLLocationManagerDelegate, UITextFieldDelegate&amp;amp;amp;amp;gt;{\n    \/\/ IBOutlets for the results of core location updates to be displayed\n    IBOutlet UITextField *latitudeLongitude;\n    IBOutlet UITextField *time;\n    IBOutlet UITextField *speed;\n    IBOutlet UITextField *distance;\n    \/\/ Core Location Manager for managing location updates\n    CLLocationManager *locationManager;\n    \/\/ Map View for displaying results to a map\n    IBOutlet MKMapView *map;\n    \/\/ An array of way points where pins would be dropped on the map\n    NSMutableArray *wayPoints;\n    \/\/ Timer elements for timing location updates\n    NSTimer *stopTimer;\n    NSDate *stopTime;\n    NSDate *startTime;\n    \/\/ Total distance form the starting location\n    float totalDistance;\n    \/\/ Location instances to save inetermediate locations\n    CLLocation *tempNewLocation, *tempOldLocation;\n    \/\/ To draw the connecting line between waypoints\n    MKPolyline * routeLine;\n}\n@property(nonatomic,retain) IBOutlet UITextField *latitudeLongitude;\n@property(nonatomic,retain) IBOutlet UITextField *time;\n@property(nonatomic,retain) IBOutlet UITextField *speed;\n@property(nonatomic,retain) IBOutlet UITextField *distance;\n@property(nonatomic, retain) CLLocationManager *locationManager;\n@property(nonatomic, retain) IBOutlet MKMapView *map;\n@property(nonatomic, retain) MKPolyline *routeLine;\n@end\n[\/objc]<\/pre>\n<p>Implementation explained<br>\nIn viewDidLoad()<br>\n1) We first create an instance of CLLocationManager and provide a delegate for it which is self. 2) We set the desiredAccuracy to 6.0 which indicates the accuracy desired on location horizontally.<br>\n3) We set the distanceFilter, which indicates the distance change after which a location update is received.<br>\n4) We call startUpdatingLocation method to start receiving location updates.<br>\n5) We assign a delegate for map view to self.<br>\n6) The setShowsUserLocation:YES shows a blue marker on the map view indicating the current location.<br>\n7) The call to setUserTrackingMode:MKUserTrackingModeFollow animated:YES allows the tracking of location on the map in an animated manner.<br>\n8) We also initialize an array for waypoints which would hold the locations on the map which have been marked.<br>\n9) Next we create, stop timer for based on a 10 second interval.<\/p>\n<pre>[objc]\n\/\/  iosViewController.m\n\/\/  Tracker\n\/\/  Created by Pratik Hande.\n\/\/  Copyright (c) 2012. All rights reserved.\n\/\/\n#import &amp;amp;amp;quot;iosViewController.h&amp;amp;amp;quot;\n@implementation iosViewController\n@synthesize latitudeLongitude, time, speed, distance, locationManager, map, routeLine;\n- (void)didReceiveMemoryWarning\n{\n    [super didReceiveMemoryWarning];\n    \/\/ Release any cached data, images, etc that aren't in use.\n}\n#pragma mark - View lifecycle\n- (void)viewDidLoad\n{\n    [super viewDidLoad];\n    locationManager = [[CLLocationManager alloc] init];\n    locationManager.delegate = self;\n    locationManager.desiredAccuracy = 6.0;\n    locationManager.distanceFilter = 6.0;\n    [locationManager startUpdatingLocation ];\n    map.delegate = self;\n    [map setShowsUserLocation:YES];\n    [map setUserTrackingMode:MKUserTrackingModeFollow animated:YES];\n    wayPoints = [[NSMutableArray alloc] initWithCapacity:30];\n    totalDistance = 0.0;\n    stopTime = [NSDate dateWithTimeIntervalSinceNow:140];\n    startTime = [NSDate date];\n    SEL sel = @selector(timerTargetMethod);\n    NSInvocation* inv = [NSInvocation invocationWithMethodSignature:\n                         [self methodSignatureForSelector:sel]];\n    [inv setTarget:self];\n    [inv setSelector:sel];\n    stopTimer = [NSTimer scheduledTimerWithTimeInterval:10 invocation:inv repeats:true];\n}\n- (void)viewDidUnload\n{\n    [super viewDidUnload];\n    \/\/ Release any retained subviews of the main view.\n    \/\/ e.g. self.myOutlet = nil;\n}\n- (void)viewWillAppear:(BOOL)animated\n{\n    [super viewWillAppear:animated];\n}\n- (void)viewDidAppear:(BOOL)animated\n{\n    [super viewDidAppear:animated];\n}\n- (void)viewWillDisappear:(BOOL)animated\n{\n\t[super viewWillDisappear:animated];\n}\n- (void)viewDidDisappear:(BOOL)animated\n{\n\t[super viewDidDisappear:animated];\n}\n- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation\n{\n    \/\/ Return YES for supported orientations\n    return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);\n}\n- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation\n{\n    if(newLocation != nil &amp;amp;amp;amp;amp;&amp;amp;amp;amp;amp; oldLocation != newLocation)\n    {\n        tempNewLocation = newLocation;\n        tempOldLocation = oldLocation;\n    }\n}\n- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error\n{\n}\n- (void)mapView:(MKMapView *)mv didAddAnnotationViews:(NSArray *)views\n{\n    MKAnnotationView *annotationView = [views objectAtIndex:0];\n    id mp = [annotationView annotation];\n    MKCoordinateRegion region = MKCoordinateRegionMakeWithDistance([mp coordinate] ,250,250);\n    [mv setRegion:region animated:YES];\n}\n\/\/ MKMapViewDelegate\n- (MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id )overlay\n{\n    MKOverlayView* overlayView = nil;\n    MKPolylineView  * routeLineView = [[MKPolylineView alloc] initWithPolyline:self.routeLine];\n    routeLineView.fillColor = [UIColor colorWithRed:0.0-1.0 green:0.0-1.0 blue:0.0-1.0 alpha:1.0f];\n    routeLineView.strokeColor = [UIColor colorWithRed:0.0-1.0 green:0.0-1.0 blue:0.0-1.0 alpha:1.0f];\n    routeLineView.lineWidth = 10;\n    routeLineView.lineCap = kCGLineCapSquare;\n    overlayView = routeLineView;\n    return overlayView;\n}\n\/\/define the targetmethod\n-(void) timerTargetMethod\n{\n    if([[NSDate date] timeIntervalSinceDate:startTime] &amp;amp;amp;amp;gt;= 140)\n    {\n        [stopTimer invalidate];\n        [locationManager stopUpdatingLocation];\n        NSLog(@&amp;amp;amp;quot;Time started at %@&amp;amp;amp;quot;, startTime);\n        NSLog(@&amp;amp;amp;quot;Time up at %@&amp;amp;amp;quot;, stopTime);\n    }\n    else if (tempOldLocation.coordinate.latitude == tempNewLocation.coordinate.latitude   &amp;amp;amp;amp;amp;&amp;amp;amp;amp;amp; tempNewLocation.coordinate.longitude == tempOldLocation.coordinate.longitude)\n    {\n        NSLog(@&amp;amp;amp;quot; Fix location found &amp;amp;amp;quot;);\n    }\n    else if( [[NSDate date] timeIntervalSinceDate:startTime] &amp;amp;amp;amp;gt;= 19 )\n    {\n        if(roundf([[NSDate date] timeIntervalSinceDate:startTime]) == 20)\n        {\n            NSLog(@&amp;amp;amp;quot;First Time Location Update&amp;amp;amp;quot;);\n            latitudeLongitude.text = [[ NSString alloc] initWithFormat:@&amp;amp;amp;quot;%g , %g&amp;amp;amp;quot;, tempNewLocation.coordinate.latitude, tempNewLocation.coordinate.longitude];\n            float interval = [[NSDate date] timeIntervalSinceDate:startTime];\n            int okInterval = roundf(interval);\n            NSLog(@&amp;amp;amp;quot;Interval 1 , %d&amp;amp;amp;quot;, okInterval );\n            time.text = [[ NSString alloc] initWithFormat:@&amp;amp;amp;quot;%d&amp;amp;amp;quot;, okInterval  - 20];\n            speed.text = @&amp;amp;amp;quot;0&amp;amp;amp;quot;;\n            totalDistance =  0;\n            distance.text = @&amp;amp;amp;quot;0 meters&amp;amp;amp;quot;;\n        }\n        else\n        {\n            latitudeLongitude.text = [[ NSString alloc] initWithFormat:@&amp;amp;amp;quot;%g , %g&amp;amp;amp;quot;, tempNewLocation.coordinate.latitude, tempNewLocation.coordinate.longitude];\n            float interval = [[NSDate date] timeIntervalSinceDate:startTime];\n            int okInterval = roundf(interval);\n            time.text = [[ NSString alloc] initWithFormat:@&amp;amp;amp;quot;%d&amp;amp;amp;quot;, okInterval  - 20];\n            NSLog(@&amp;amp;amp;quot;Interval 2 , %d , %f&amp;amp;amp;quot;, okInterval , interval);\n            if((tempNewLocation.coordinate.latitude == tempOldLocation.coordinate.latitude &amp;amp;amp;amp;amp;&amp;amp;amp;amp;amp; tempNewLocation.coordinate.longitude == tempOldLocation.coordinate.longitude) || tempNewLocation.speed = 0)\n                totalDistance +=  [tempNewLocation distanceFromLocation:tempOldLocation] - (tempNewLocation.horizontalAccuracy \/ 2);\n            else\n                totalDistance +=  [tempNewLocation distanceFromLocation:tempOldLocation];\n            if (totalDistance &amp;amp;amp;amp;lt; 0)\n                distance.text = @&amp;amp;amp;amp;quot;0 meters&amp;amp;amp;amp;quot;;\n            else\n                distance.text = [[ NSString alloc] initWithFormat:@&amp;amp;amp;amp;quot;%g meters&amp;amp;amp;amp;quot;, totalDistance];\n        }\n        MKPointAnnotation *pa = [[MKPointAnnotation alloc] init];\n        pa.coordinate = tempNewLocation.coordinate;\n        [map addAnnotation:pa];\n        [wayPoints addObject:tempNewLocation];\n        MKMapPoint * pointsArray =\n        malloc(sizeof(CLLocationCoordinate2D)*2);\n        pointsArray[0]= MKMapPointForCoordinate(tempOldLocation.coordinate);\n        pointsArray[1]= MKMapPointForCoordinate(tempNewLocation.coordinate);\n        routeLine = [MKPolyline polylineWithPoints:pointsArray count:2];\n        free(pointsArray);\n        if (tempNewLocation.coordinate.latitude - tempOldLocation.coordinate.latitude &amp;amp;amp;amp;lt; 1) {\n            [map addOverlay:routeLine];\n        }\n    }\n}\n@end\n[\/objc]<\/pre>\n<p>Here is the source code for the project. Tracker Source Code<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following tutorial explains the use of Core Location Framework from iOS 5. This application demonstrates use of 1) Core Location to track the location of the iphone 2) Map kit to visualize the location of the iphone 3) It places waypoint buy clomid online s on the map after every 10 seconds and 4) [&hellip;]<\/p>\n","protected":false},"author":26,"featured_media":7467,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"yes","footnotes":""},"categories":[3],"tags":[179,173,177,180,175,172,176,174,178,181],"class_list":["post-1474","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-iphone","tag-core-location","tag-corelocation","tag-google-map","tag-gps","tag-gps-iphone","tag-ios5","tag-iphone-google-map","tag-location-tracking","tag-map-integration-iphone","tag-speed-iphone-user"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>iOS 5 Core Location - Mobisoft Infotech<\/title>\n<meta name=\"description\" content=\"Click to access the following tutorial which explains the use of Core Location Framework on iOS 5. You can also download the source code for the project.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"iOS 5 Core Location - Mobisoft Infotech\" \/>\n<meta property=\"og:description\" content=\"Click to access the following tutorial which explains the use of Core Location Framework on iOS 5. You can also download the source code for the project.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location\" \/>\n<meta property=\"og:site_name\" content=\"Mobisoft Infotech\" \/>\n<meta property=\"article:published_time\" content=\"2012-01-23T13:52:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-12-12T13:00:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/iOS-5-Core-Location_l-min.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"550\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"pratik.hande\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"pratik.hande\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location#article\",\"isPartOf\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location\"},\"author\":{\"name\":\"pratik.hande\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/f8f357a5c88b64a1a825e2ce4fa3b8dd\"},\"headline\":\"iOS 5 Core Location\",\"datePublished\":\"2012-01-23T13:52:03+00:00\",\"dateModified\":\"2018-12-12T13:00:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location\"},\"wordCount\":283,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/iOS-5-Core-Location_l-min.jpg\",\"keywords\":[\"Core location\",\"CoreLocation\",\"Google Map\",\"GPS\",\"GPS iPhone\",\"iOS5\",\"iPhone Google map\",\"Location Tracking\",\"Map integration iPhone\",\"Speed iPhone user\"],\"articleSection\":[\"iPhone - iPad\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location\",\"url\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location\",\"name\":\"iOS 5 Core Location - Mobisoft Infotech\",\"isPartOf\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location#primaryimage\"},\"image\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/iOS-5-Core-Location_l-min.jpg\",\"datePublished\":\"2012-01-23T13:52:03+00:00\",\"dateModified\":\"2018-12-12T13:00:21+00:00\",\"author\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/f8f357a5c88b64a1a825e2ce4fa3b8dd\"},\"description\":\"Click to access the following tutorial which explains the use of Core Location Framework on iOS 5. You can also download the source code for the project.\",\"breadcrumb\":{\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location#primaryimage\",\"url\":\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/iOS-5-Core-Location_l-min.jpg\",\"contentUrl\":\"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/iOS-5-Core-Location_l-min.jpg\",\"width\":1920,\"height\":550,\"caption\":\"iOS 5 Core Location_l-min\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mobisoftinfotech.com\/resources\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"iOS 5 Core Location\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#website\",\"url\":\"https:\/\/mobisoftinfotech.com\/resources\/\",\"name\":\"Mobisoft Infotech\",\"description\":\"Discover Mobility\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mobisoftinfotech.com\/resources\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/f8f357a5c88b64a1a825e2ce4fa3b8dd\",\"name\":\"pratik.hande\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/1c8ebcd137709edf966121f45f589cb5cb5a084e82dee33ecfe8fe577f2dd9ed?s=96&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1c8ebcd137709edf966121f45f589cb5cb5a084e82dee33ecfe8fe577f2dd9ed?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1c8ebcd137709edf966121f45f589cb5cb5a084e82dee33ecfe8fe577f2dd9ed?s=96&r=g\",\"caption\":\"pratik.hande\"},\"sameAs\":[\"http:\/\/www.mobisoftinfotech.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"iOS 5 Core Location - Mobisoft Infotech","description":"Click to access the following tutorial which explains the use of Core Location Framework on iOS 5. You can also download the source code for the project.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location","og_locale":"en_US","og_type":"article","og_title":"iOS 5 Core Location - Mobisoft Infotech","og_description":"Click to access the following tutorial which explains the use of Core Location Framework on iOS 5. You can also download the source code for the project.","og_url":"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location","og_site_name":"Mobisoft Infotech","article_published_time":"2012-01-23T13:52:03+00:00","article_modified_time":"2018-12-12T13:00:21+00:00","og_image":[{"width":1920,"height":550,"url":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/iOS-5-Core-Location_l-min.jpg","type":"image\/jpeg"}],"author":"pratik.hande","twitter_card":"summary_large_image","twitter_misc":{"Written by":"pratik.hande","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location#article","isPartOf":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location"},"author":{"name":"pratik.hande","@id":"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/f8f357a5c88b64a1a825e2ce4fa3b8dd"},"headline":"iOS 5 Core Location","datePublished":"2012-01-23T13:52:03+00:00","dateModified":"2018-12-12T13:00:21+00:00","mainEntityOfPage":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location"},"wordCount":283,"commentCount":0,"image":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location#primaryimage"},"thumbnailUrl":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/iOS-5-Core-Location_l-min.jpg","keywords":["Core location","CoreLocation","Google Map","GPS","GPS iPhone","iOS5","iPhone Google map","Location Tracking","Map integration iPhone","Speed iPhone user"],"articleSection":["iPhone - iPad"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location#respond"]}]},{"@type":"WebPage","@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location","url":"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location","name":"iOS 5 Core Location - Mobisoft Infotech","isPartOf":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location#primaryimage"},"image":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location#primaryimage"},"thumbnailUrl":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/iOS-5-Core-Location_l-min.jpg","datePublished":"2012-01-23T13:52:03+00:00","dateModified":"2018-12-12T13:00:21+00:00","author":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/f8f357a5c88b64a1a825e2ce4fa3b8dd"},"description":"Click to access the following tutorial which explains the use of Core Location Framework on iOS 5. You can also download the source code for the project.","breadcrumb":{"@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location#primaryimage","url":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/iOS-5-Core-Location_l-min.jpg","contentUrl":"https:\/\/mobisoftinfotech.com\/resources\/wp-content\/uploads\/2015\/01\/iOS-5-Core-Location_l-min.jpg","width":1920,"height":550,"caption":"iOS 5 Core Location_l-min"},{"@type":"BreadcrumbList","@id":"https:\/\/mobisoftinfotech.com\/resources\/blog\/iphone\/ios-5-core-location#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mobisoftinfotech.com\/resources\/"},{"@type":"ListItem","position":2,"name":"iOS 5 Core Location"}]},{"@type":"WebSite","@id":"https:\/\/mobisoftinfotech.com\/resources\/#website","url":"https:\/\/mobisoftinfotech.com\/resources\/","name":"Mobisoft Infotech","description":"Discover Mobility","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mobisoftinfotech.com\/resources\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/mobisoftinfotech.com\/resources\/#\/schema\/person\/f8f357a5c88b64a1a825e2ce4fa3b8dd","name":"pratik.hande","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1c8ebcd137709edf966121f45f589cb5cb5a084e82dee33ecfe8fe577f2dd9ed?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1c8ebcd137709edf966121f45f589cb5cb5a084e82dee33ecfe8fe577f2dd9ed?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1c8ebcd137709edf966121f45f589cb5cb5a084e82dee33ecfe8fe577f2dd9ed?s=96&r=g","caption":"pratik.hande"},"sameAs":["http:\/\/www.mobisoftinfotech.com"]}]}},"_links":{"self":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts\/1474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/users\/26"}],"replies":[{"embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/comments?post=1474"}],"version-history":[{"count":51,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts\/1474\/revisions"}],"predecessor-version":[{"id":13642,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/posts\/1474\/revisions\/13642"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/media\/7467"}],"wp:attachment":[{"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/media?parent=1474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/categories?post=1474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mobisoftinfotech.com\/resources\/wp-json\/wp\/v2\/tags?post=1474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}