Satellite navigation
How GPS finds you
Your phone never sends anything to a GPS satellite. It only listens, and turns tiny delays into distances. About 30 GPS satellites circle Earth twice a day, 20,200 km up, each broadcasting the time from the atomic clocks on board. Everything here is drawn on a flat slice through Earth, so the spheres of real life become circles. Drag the satellites and the phone to explore.
1. A delay is a distance
Each satellite keeps saying, in effect, “at my clock it is exactly this time.” The signal travels at the speed of light, about 300,000 km every second, so it arrives a little late. Multiply the delay by the speed of light and you know how far away the satellite is. It’s like counting the seconds between lightning and thunder to tell how far away a storm is.
The dashed circle is every place that is exactly that far from the satellite. One satellite can tell your phone how far away it is, but not which way, so you could be anywhere on that circle.
2. Where circles cross
A second satellite gives a second circle, and you must be where the two circles cross. Two circles usually cross in two places, but one of them is far out in space, so the receiver can rule it out. A third satellite settles it: only one spot fits all three distances.
Drag a satellite or the phone. Drag a satellite behind Earth and the phone can no longer hear it: GPS signals don’t pass through the planet.
3. The cheap clock problem
There’s a catch. The satellites carry atomic clocks, but your phone has an ordinary quartz clock. If it is off by just one thousandth of a second, every distance comes out 300 km wrong, all by the same amount. Then the circles no longer meet. The fix is clever: the receiver treats its own clock error as one more unknown, and finds the value that makes all the circles meet at one point.
The phone’s clock is off by a hidden amount. Slide until the three circles meet at a single point. The small cross is the best guess for your position at the current setting. This is why GPS needs one more satellite than there are directions to find: on this flat page, two directions plus the clock make three satellites. In the real, three-dimensional world it takes four. As a bonus, your phone ends up knowing the time very precisely.
4. Spread out is better
No measurement is perfect, so each circle is really a band, and you are somewhere in the patch where all the bands overlap. When the satellites are spread across the sky, the bands cross at wide angles and the patch is small. When they bunch together, the bands cross at shallow angles and the patch stretches out. That’s one reason having more satellites in view helps: some pairs are bound to cross at wide angles.
The timing error here is exaggerated enormously so you can see it: each band is 3,000 km wide. Real receivers measure distances to within a few meters. Under open sky, phones are typically accurate to within about 5 meters. Tall buildings and trees make things worse, because they block signals or bounce them, which adds to the delay.
5. Einstein’s correction
The satellite clocks need one more fix. Gravity is weaker 20,200 km up, which makes clocks tick faster, while the satellites’ speed makes them tick slower. The first effect wins: each satellite clock gains about 38 millionths of a second a day compared with clocks on the ground. That sounds tiny, but every millionth of a second is 300 meters. So the satellite clocks are tuned to tick slightly slow before launch.
About 45.7 millionths of a second a day are gained from weaker gravity and about 7.1 are lost to speed, leaving roughly 38 gained. Without the correction, positions would drift by over 10 km every day.