Hardware and Sensors

Different devices running iOS will have different hardware sensors to provide location data. The most accurate sensor for outdoor use is the GPS, which can provide accuracy down to a few meters, but it isn’t available on iPod touch or the Wi-Fi iPad versions. The iPhone and 3G iPad can also take advantage of cell tower triangulation, and all devices can use the location of Wi-Fi access points to provide location data. Some devices also have a GPS and altimeter built in to provide data on where the device is headed and how high it is above or below sea level. Whenever a location or heading is reported, it also reports an accuracy that you can use to understand the quality of the data received.

As a developer, you don’t decide ...

Get Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.