You come out of a station, open a map and watch the blue dot settle on a pavement. How did your phone work out which street you were on? Part of the answer is a set of radio signals that left satellites far overhead and reached the phone at slightly different times. The difference is tiny, but when a signal travels at the speed of light, a tiny difference in time can represent a useful difference in distance.
A network of clocks in orbit
GPS stands for Global Positioning System. It is run by the United States and became fully operational in 1995. Roughly thirty satellites orbit about 20,200 kilometres above Earth. The number in use changes as satellites are added or retired. They’re spread across different orbits so that a receiver with a clear view of the sky can ordinarily see signals from several at once.
Each satellite repeatedly sends a signal with a time reference and information that lets the receiver calculate where the satellite was when it sent the signal. You can think of it as a broadcast that gives you the equivalent of “here is where I was, and here is when I sent this”. Any receiver in range can listen. The satellite doesn’t need to know how many phones are listening or where they are.
Distances narrow down where you can be
If you knew you were exactly two kilometres from a landmark, you’d know that on a flat map you were somewhere on a circle around it. Add a distance from a second landmark, and you’re down to the points where those two circles cross. A third can tell you which point fits. In space the equivalent shapes are spheres. Using distances from known points in this way is called trilateration.
A GPS receiver estimates each signal’s travel time and converts it into a distance. Its own clock is less precise than the atomic clocks aboard the satellites. If the receiver’s clock is slightly off, the same timing error shifts every estimated distance. With signals from at least four satellites, a standard fix works out two things together.
- Position in three dimensions. Latitude and longitude put you on the map, and height locates you in the third dimension.
- The receiver’s clock offset. This is how far its clock is ahead of or behind GPS system time.
More usable signals can improve the estimate, especially when the satellites are well spread out in the sky.
Think of the fourth measurement as a way to check that the distances agree on the same location and the same clock adjustment. If you simply assume the receiver’s clock is right, the spheres you draw from the distance estimates may fail to meet. Shifting the distances by the amount implied by the clock error lets the receiver find a solution that fits the measurements together.
Even relativity matters to the clock
Satellite clocks tick at a slightly different rate from clocks on Earth. Their speed and the weaker gravity at their altitude affect time in opposite ways. Taken together, those effects would make the satellite clocks run faster than clocks on the ground without correction. GPS accounts for relativity so that the times receivers use remain consistent. Precision matters because even a small timing error changes the distance inferred from the signal.
The phone itself only receives signals from the navigation satellites. It doesn’t send its location back to them. A map app can still send your location over the internet if it has permission and is designed to do so. Downloading map tiles and sending location to a service are separate from the calculation the phone makes from satellite signals.
Why the dot can jump to the wrong street
Under open sky, a phone’s GPS position can be accurate to a few metres. Between tall buildings, signals may bounce off surfaces before reaching the phone. A reflected signal travels farther than a direct one, which makes that distance look too long. If much of the sky is blocked, the phone may also have too few well-placed satellites to get a good estimate. Indoors and in tunnels the direct signals can be too weak to use.
GPS is one of several global systems. Russia’s GLONASS, Europe’s Galileo and China’s BeiDou are others. GNSS, short for global navigation satellite systems, is the umbrella term. A phone can use signals from more than one system if its receiver supports them. That can give it more useful measurements, but it still benefits from an open view of the sky.
The map can also make a rough estimate look more settled than it is. A navigation app may use the road you were following to put the dot onto a plausible route. If there are two streets close together, it can pick the wrong one even when the receiver’s estimate is only a little off. Once you reach an open junction, better measurements may help the app choose again.
How to help your phone get a fix
Assisted GPS can use a mobile or Wi-Fi connection to get information that helps the receiver find satellites and obtain its first position faster. Your phone may also use nearby networks as a separate clue to its position. In a station, that can get a dot on the map before the satellite receiver has enough good signals.
- Give it a view of the sky. If the dot is jumping between streets, step away from tall walls or go outside and wait for the estimate to settle.
- Read the circle around the dot. If your app shows one, a large circle usually means your position is uncertain. Check a nearby street sign before following a turn.
- Download the map before going offline. Positioning and displaying a map use different information. An offline map gives your phone something to put the position on without a connection.
Frequently asked questions
Can GPS work without mobile data?
Yes. The receiver can use satellite signals on its own. The first fix can take longer without assistance, and the map app may need a saved map to show streets. A clear view of the sky still helps.
Does GPS know which way I’m facing?
A single position tells you where you are. By comparing successive positions while you’re moving, the phone can estimate your direction of travel. When you’re standing still, it can use an electronic compass and other sensors to work out which way the phone is pointing.