Skip to Content

iPhone 101: Location data and GPS

gps data in a photoUpdate: Look here for official word on the iPhone location data controversy from Apple.

Recently, the Apple community has become interested in location data as gathered by iPhones. Specifically, The Guardian has reported that researcher and former Apple employee Pete Wardensome and data visualization scientist Alasdair Allan believe that your iPhone's travel history is backed up to a file on your Mac, eliciting questions and concerns about iOS location services.

With that in mind, TUAW offers this brief primer so that you can better understand what's going on under the hood of your iOS device when it comes to location matters.

What are location services and how do they work?

Location services allow certain apps to determine your iPhone's approximate location and make use of that information. This is done through a combination of cellular network triangulation, Wi-Fi triangulation and the Global Positioning System, or GPS.

Here's how it works. Your iPhone will first attempt to communicate with GPS satellites to determine its approximate location. This is a series of medium Earth orbit satellites deployed by the US Department of Defense several years ago. For a more in-depth explanation, look here.

When a solid GPS connection is unavailable (the iPhone is indoors, amid many tall trees outside, etc.), the iPhone tries Wi-Fi triangulation. As our own Auntie TUAW recently explained, this works because Wi-Fi hotspots rarely move. Apple has amassed a database of known hotspots and, when your iPhone is connected to one of those, can use them to determine an iPhone's approximate place on the Earth. Of course, this method is less accurate than GPS.

Finally, determining location via cellular towers works in a similar fashion. Nearly every cell tower is built in a known, constant location (except for COWs). These fixed positions allow your iPhone to determine an approximate location by triangulating its distance from the nearest towers. Cell towers are less accurate because there are fewer of them than there are Wi-Fi hot spots. Therefore, you're dealing with larger distances.

The first time an app tries to access location data, it asks for permission. A dialog box asks to use your current location. If you're OK with that, tap Allow. Otherwise, tapping Don't Allow prevents the app from accessing your location data until you turn it back on as described below.

Can I turn it off?

Yes. In fact, you can disable location services on a case-by-case (or app-by-app) basis or in one fell swoop. Here's how.

First, tap the Settings app, then tap Location Services. You'll see a list of the installed apps that use location data. To disable services for an individual app, move its slider from On to Off. Or, move the Location Services slider at the top of the screen to disable them all at once. Note, however, that many apps (like Apple's Maps) become significantly less useful with location services disabled.

What does it record?

Location services record your iPhone's approximate location as well as a time stamp. Your iPhone does not record how long you spend at a given location.

Which apps use location services?

Each app uses location data differently. For example, Maps provides directions for traveling from Point A to Point B by car, public transportation or by foot. Camera+ allows you to geotag (the process of adding geographical identification metadata to images) your photos, and Tweetbot lets you do the same with your Tweets.

Speaking of photos, some people get freaked out by geographical data in their images. If that's you, here are two things you can do to calm your nerves. First, disable location services for photography apps, like Apple's Camera and Tap Tap Tap's Camera+ as described above.

You can remove location information from existing photos by converting JPG to PNG (this strips out EXIF data, save the date) or using an EXIF editor. Here's how to remove data with iPhoto '11.

First, select your image. Next, choose Export from the File menu. A pop-up screen appears. Click the File Export tab and ensure that the Location information checkbox is not selected. Finally, click Export. Your photo is exported without location information.

If iPhoto doesn't float your boat, try Reveal or ExifRenamer for editing this information.

What's the hubbub about location services?

As we pointed out the other day, it seems that the iPhone creates a cache of your iPhone's travel history on your Mac. As far as anyone can tell, there's absolutely no evidence that Apple or your carrier is accessing this information.

We hope this overview of location services was useful. For those of you interested in exploring EXIF and GPS data in your photos further, check TUAW later today.



Categories

iPhone 101

Update: Look here for official word on the iPhone location data controversy from Apple. Recently, the Apple community has become...
 

Add a Comment

*0 / 3000 Character Maximum Comment Moderation Enabled. Your comment will appear after it is cleared by an editor.

12 Comments

Filter by:
Devidmora

Hi friends,

Really this is amazing blog post. I saw and read your site; this site is useful to all its
visitors.....
Local Positioning Systems

May 26 2011 at 11:32 AM Report abuse rate up rate down Reply
Buzz

Erm... no GPS unit "communicates with satellites." They listen, but do not talk back.

There is no shared or exchanged information—the basis for the word "communicate."

Perhaps you meant that they simply "municate?"

April 27 2011 at 11:11 AM Report abuse rate up rate down Reply
sucrose

It's Pete Warden, not Pete Wardensome

April 27 2011 at 10:19 AM Report abuse rate up rate down Reply
Brian Allen

The article is not correct on the order of sources. The cell towers are used for the first location, which has a GPS location and signal. Next, the WiFi information is used. Finally, the assisted GPS is used. Also, cell towers know their location and it is not that they have a fixed location cataloged somewhere. They actually have a GPS function in them.

The GPS is assisted GPS in the iPhone, which is different than typical GPS and WAAS GPS. To use GPS, a device needs to acquire the GPS signal, which take a great deal of time if your device doesn't know the it's current location, date, and time. These pieces of data are used to acquire the correct signal.

The assisted GPS gets this help by knowing the said information of the nearest cell towers.

The easy way to think of it is that the location services start with least accurate and progress towards the most accurate. The least accurate takes the least amount of time while the most accurate require the most amount of time.

April 27 2011 at 7:56 AM Report abuse rate up rate down Reply
2 replies to Brian Allen's comment
sockatume

I was under the impression that A-GPS used an ephemeris stream from the internet as a substitute for the ephemeris data that's normally received from the satellite network. Cell triangulation's often conflated with A-GPS but I think it's actually a completely independent process.

April 27 2011 at 8:48 AM Report abuse rate up rate down Reply
Brian Allen

@ sockatume, here are the details:

I believe that the iPhone and most phones use a combination of 1a, 1b, and 1d.

Assistance falls into two categories:

1) Information used to more quickly acquire satellites

a) It can supply orbital data or almanac for the GPS satellites to the GPS receiver, enabling the GPS receiver to lock to the satellites more rapidly in some cases.

b) The network can provide precise time.

c) The device captures a snapshot of the GPS signal, with approximate time, for the server to later process into a position.

d) Accurate, surveyed coordinates for the cell site towers allow better knowledge of local ionospheric conditions and other conditions affecting the GPS signal than the GPS receiver alone, enabling more precise calculation of position.

2) Calculation of position by the server using information from the GPS receiver

a) The assistance server has a good satellite signal, and plentiful computation power, so it can compare fragmentary signals relayed to it

April 27 2011 at 9:06 AM Report abuse rate up rate down Reply
Massimo Fiorentino

If you're freaked out by the iPhone tracking data on your Mac, turn on backup encryption in iTunes. Data is not uploaded anywhere like on Android.

April 27 2011 at 7:48 AM Report abuse rate up rate down Reply
DavidG

A "101" style article on this hot topic should get one thing 100% right: the iPhone consolidated.db does NOT record user location. It's amazing that this is still bring reported.

Rather, the cache file contains the best-guess position of the cell towers and wifi APs themselves. Further, each is represented by only one entry in the file, so past connections to these reference locations are overwritten when the phone reconnects and updates the location estimate. Thus, there's no actual travel path stored.

There is now a tool to plot the consolidated.db data, unfuzzed, from any HTML5 browser: http://markolson.github.com/js-sqlite-map-thing/

Folks can see for themselves that the recorded points typically come nowhere near their actual travels and cluster near their local antennas.

The purpose is to speed up the process of looking up this info prior to triangulation when GPS is absent. The on-phone cache is quicker to access than an internet database transfer.

April 27 2011 at 7:43 AM Report abuse rate up rate down Reply
William Hook

The recent fuss that's been made about the iPhone tracking your location isn't much of an issue if you ask me. Here's what it looks like around my home: http://kosmictech.com/ss/2011/04/Map_45759.png

Result? You can't see where I live. You can see where I travel though: http://kosmictech.com/ss/2011/04/Map_42839.png

April 27 2011 at 7:32 AM Report abuse rate up rate down Reply
2 replies to William Hook's comment
William Hook

Oh, and, I should also mention, notice Walton High School, near the bottom right of the image of my town? Jonny Ive (the Apple designer) went to school there. =D

http://en.wikipedia.org/wiki/Jonathan_Ive

April 27 2011 at 7:39 AM Report abuse rate up rate down Reply
Benjamin

You can't see where you live using that application, because it interprets the data over a weekly period and snaps it to a grid for privacy reasons.

It would be reasonably easy to find out where you live using the RAW data, for example by finding the coordinates you spend most time at during the evenings.

So the real issue is if someone was to get hold of your consolidated.db file...

April 27 2011 at 7:47 AM Report abuse rate up rate down Reply
sockatume

A well-needed article, given that most people don't take an interest in how things work until they break. (I learned rather a lot about positioning systems and various other tech when I was hanging around Nokia's support forum.)

A bit of useful extra info: cellular- and wifi-based triangulation normally require a network conneciton to function, because the database they talk to isn't stored on the phone. I wouldn't be surprised if the phone used consolidated.db as a cache so it could consult the database while it's offline.

Also, wifi-based positioning can get confused if the transmitter moves around. Wifi-based positioning can get very muddled when you're on a train with its own access point, for example. Also if you move home and take your access point, it can take a few days for the database to update with its new location, during which time your iPhone etc. will assume you're back at your old address.

GPS doesn't require a network connection. If you do have a network connection then your GPS is "assisted" by a stream of data that helps it lock on more quickly. That's known as A-GPS.

April 27 2011 at 7:22 AM Report abuse rate up rate down Reply
Buy an ad here

Tweets

© 2012 AOL Inc. All Rights Reserved.