O'Reilly logo

The Complete Idiot's Guide® To iPad and iPhone App Development by Troy Brant

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

Wrapping Up

Location-based applications will undoubtedly become more and more a part of your daily life. And using the Core Location framework, you can easily ride the wave and add location support to your own applications. Using the API only requires that you use two classes: CLLocation and CLLocationManager. Using the CLLocation object, you can get the user’s latitude, longitude, and even their current altitude. Since there is always some degree of inaccuracy, you can access the horizontalAccuracy and verticalAccuracy CLLocation properties to see how sure the phone is of the position data. By building the Distance app, you found out how to filter out bad location data, convert meters to miles, and start getting updates from the CLLocationManager. ...

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