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

Life without GPS: cell ID positioning and cell tower triangulation


Low cost or price-sensitive mobile phones often come without GPS and Wi-Fi. These phones are meant to do what mobile phones are intended to be used for — Talk. However, the location of the user can still be detected on such phones using cellular towers. Cell ID Positioning and cell tower triangulation are two different ways to get location information from cell towers. Cell ID result accuracy is only 200-1000 meters, hence it is used as the last option for most location detection methodologies.

Cell ID Positioning uses your mobile network's cell tower to find your location. This involves the nearest tower your phone connects to in order to let you place calls. Cell tower triangulation, on the other hand, uses all the Cellular Towers around you to calculate your position based on the signal strength your phone receives from each of the towers. Triangulation is more accurate, but a slower process.

The iOS SDK has a region monitoring API that we will discuss in later chapters. This API is CLRegion, which monitors the iPhone location and triggers an alert if you enter or leave a region. It works by using the Cellular Tower position as the trigger. When the iOS device detects a different Cellular Tower using the Triangulation technique to ascertain that the user has indeed crossed or entered a region, it triggers an alert to the application. This is an efficient way of location tracking without using GPS (and hence, more battery juice).

Note

It is important to acknowledge privacy and security issues for end users while developing your applications and choosing the type of location detection and storage. In April 2011, it was discovered that Apple kept an unencrypted location database on your iPhones, even if the Location Setting was turned off. This file could tell any hacker where you have been and the timing details. Apple rectified this with a software upgrade, but it has been an eye opener for user privacy and security concerns.