O'Reilly logo

iPhone Location Aware Apps by Example by Zeeshan Chawdhary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Core location services

The Core Location framework provides the following services:

  • Standard location
  • Significant change
  • Region monitoring
  • Geocoding and reverse Geocoding — CLGeocoder (Added in iOS 5 SDK)
  • Direction using heading information

Standard location

Standard Location is the latitude and longitude information retrieved from Core Location. The Core Location Manager (the CLLocationManager object in the iOS SDK) returns this information in the CLLocation object. Recall from the Hello Location example in Chapter 2, where we used the following code to retrieve the latitude information (which is the most common way to grab a user's location).

NSString *latitudeTextData = [[NSString alloc]initWithFormat: @"%g",locMgr.location.coordinate.latitude]; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required