Unit 7: Online data security · User data tracking

Article

Geolocation: data about where you are

8 min read

A blue dot appears on your phone's map, right on your street. Your phone has no window. How does it know where it is? And who else can see the dot? This lesson is about geolocation: finding where a device, and so its owner, is in the real world.

How a device finds where it is

A phone mixes several methods:

MethodHow it worksGood atWeak at
GPSThe phone receives timing signals from several satellites and calculates its position.Outdoors, within a few metresIndoors and between tall buildings
Wi-FiThe phone sees nearby Wi-Fi networks. A stored list says where each network is.Cities and indoorsPlaces with few networks
Cell towersThe phone talks to nearby mobile towers. Which towers, and how strong, gives a position.Anywhere with signalRough: hundreds of metres or more
Internet addressA website guesses your area from your IP address.Nothing preciseGives only a town or city

The satellites do not track your phone. They only send signals, and the phone works out where it is. Your location reaches other people only when an app or service sends it.

Who learns your location

  1. 1

    Satellites → Phone

    Timing signals, sent to everyone

  2. The phone works out where it is. Nothing is sent back to the satellites.
  3. 2

    Phone → Map app server

    My position, and where is the nearest bus stop?

  4. 3

    Map app server → Phone

    A bus stop 120 metres north

The app server learns your position only because the phone sent it.

Check your understanding

Which statement about GPS is correct?

What location is used for

UseExample
Maps and directionsTurn-by-turn walking and driving help
Finding a lost phoneA map shows where the phone last was
Weather and local newsA forecast for your town without typing it
Services nearbyShops, taxis and delivery that find you
EmergenciesIn many places, an emergency call can share where you are
MemoriesA photo tagged with the place it was taken

Companies also use location to show adverts for shops near you. Governments use it for traffic planning, for warnings sent to phones in a danger area, and sometimes for watching where people go.

Location hides in photos

In Unit 5 you met metadata: data about data. A photo can carry its location in its metadata, if the camera's location setting was on. The picture looks normal, but the file may hold exactly where it was taken. A photo taken in your bedroom can tell people where you live.

Many websites remove location data when you upload a photo, but not all do, and a file sent directly may still carry it. To be safe, turn off location for the camera, or remove it before you share.

The risks

One location is not a big secret. A pattern of locations is.

WhenWhere the phone was
Every nightElm Road
Weekdays, 8 to 3Hill School
Saturdays, 10:00The swimming pool

Anyone who sees this table knows where you live, where you study and where you will be on Saturday. Location data can be used by:

  • Stalkers, to find or follow a person
  • Thieves, who learn when a home is empty, for example when you post holiday photos while you are away
  • Advertisers, who may buy it
  • Anyone, if it leaks

Check your understanding

A student posts a photo taken in their bedroom. The camera's location setting was on. What is the most likely privacy concern?

Staying in control

  • Choose the permission. Most phones offer Never, Only while using the app and Always. Choose the least that works.
  • Choose precise or approximate. A weather app needs only your town.
  • Review "Always" apps now and then.
  • Turn off location history if a service keeps one.
  • Share live location only with people you trust, and only for a short time.
  • Post holiday photos after you are home.

Turning off location in settings stops apps from reading it. Your mobile network still knows which tower your phone uses.

Worked example

AppNeeds your location?Best setting
Walking directionsYes, exactlyPrecise, only while using
WeatherOnly your townApproximate, only while using
TorchNoNever
CameraOnly if you want places in photosOff, if you share photos often

Ask: "What does this app do, and what is the least location it needs to do it?"

Common mistakes

  • Thinking satellites track your phone. GPS only receives signals.
  • Thinking only GPS gives your location. Wi-Fi, mobile towers and your Internet address do too.
  • Thinking one location is harmless, so a hundred are too. A pattern shows where you live and go.
  • Thinking a photo's location is only in the picture. It can be in the file's metadata.
  • Thinking that location data is only a risk. It also finds lost phones and helps in emergencies.

On the exam

You may be told about an app that records where a user goes, and asked for a benefit (directions, finding a lost phone, nearby services) and the most likely privacy concern: others can learn where the user lives, studies and goes, and when they are away. Also expect questions on photo metadata. The answer is that location can be stored in the file and shared without the person noticing.

Key words

Geolocation: finding the real-world position of a device.

GPS: a system that lets a device work out its position from satellite signals.

Location history: a record of the places a device has been.

Permission: a setting that allows or blocks an app from using something, such as location.

AP® is a trademark registered by the College Board, which is not affiliated with, and does not endorse, this site. All lessons and questions here are written by JrCodex.