Book Image

iPhone Location Aware Apps by Example - Beginner's Guide

By : Zeeshan Chawdhary
Book Image

iPhone Location Aware Apps by Example - Beginner's Guide

By: Zeeshan Chawdhary

Overview of this book

<p>From weather apps which give you a forecast based on your current location to fitness apps which track your speed and distance travelled. From Google Maps to Foursquare. Increasing mobility and social networking has made location awareness an integral aspect of modern iPhone applications. <br /><br />This book will teach you everything you need to know about building iPhone location aware apps, from simple Google maps to complex region monitoring and augmented reality. Build five real world location aware apps and get a taste of HTML5-based mobile app development.<br /><br />The book begins by explaining behind-the-scenes working of location-based systems, including GPS. Explore in depth iOS Core Location and the MapKit Framework, using examples depicting each capability of the respective frameworks. Having learnt about location and maps, you will build five location-based apps using the APIs and SDKs publicly available. The book has everything for a beginner as well as advanced users, with chapters devoted to advanced topics such as push notifications, geo fencing and augmented reality.</p>
Table of Contents (17 chapters)
iPhone Location Aware Apps by Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Chapter 3. Using Location in your iOS Apps — Core Location

Having played around with an introductory location app Hello Location, let us dive deeper into the iOS library that handles location — Core Location. Core Location provides all the delegations and functions to detect location via GPS, Wi-Fi, or Cell ID. However, the good part is that the end user need not worry about which location method to employ; the Core Location library handles it for the user.

In this chapter, we will examine the following topics:

  • Overview of Core Location

  • Starting and using the location service

  • Receiving location updates

  • Remembering a user's location with the core data

  • Extending the Hello Location app

  • Building an events app using the eventful.com and Last.fm API

  • Building a Local Search app using Foursquare API

  • Understanding the features of iOS 5 Location Simulator

So let's get on with it...

Core Location framework an — overview

The Core Location framework in the iOS SDK is an asynchronous API that uses delegation to report...