How GPS Knows Where You Are

Written by

in

My phone can tell me where I am without asking me, and it can do it in a parking lot, on a highway, or in the middle of nowhere. It is not guessing from a map, and it is not watching me with a camera. It is listening. High above me, satellites are broadcasting timing signals, and my phone works out its position from how long those signals took to arrive.

Satellites are clocks in the sky

The Global Positioning System is a set of satellites orbiting Earth. Each satellite carries a very precise clock and continuously broadcasts two things: where it is, and exactly when it sent the signal. My phone’s receiver listens for those broadcasts. It does not send anything back to the satellites, which is why so many devices can use GPS at once without overloading it. The system is one-way, like listening to a radio station.

Distance comes from time

Radio signals travel at the speed of light, which is extremely fast but still finite. If my phone knows when a signal was sent and when it arrived, it can work out how far away the satellite was. A tiny delay means a short distance; a longer delay means a greater distance. The trick is precision. A timing error of even a fraction of a second would translate into an enormous distance error, so the satellites use atomic clocks, and my phone’s much cheaper clock is corrected as part of the calculation.

Trilateration, in plain words

One distance alone does not tell me where I am. It only tells me I am somewhere on a sphere around that satellite. Two satellites narrow it down to a circle where two spheres overlap. Three satellites narrow it further to just a couple of possible points, and one of those is usually obviously wrong, such as a point far out in space. A fourth satellite helps pin down my altitude and corrects my phone’s clock. This is called trilateration, and it is different from triangulation, which uses angles. GPS uses distances, not angles.

Why the sky matters

GPS works best with a clear view of the sky, because the receiver needs signals from several satellites at once. Buildings, tunnels, and dense tree cover can block or reflect signals. A reflected signal takes a longer path, so it arrives late and can confuse the calculation, which is why my position sometimes jumps around in a city center. Indoors, my phone usually switches to other clues, such as nearby Wi-Fi networks, to estimate location, but that is a different method from pure GPS.

Errors, and why they are small

Many small things can shift the result: the atmosphere slows signals slightly, satellite positions are not perfect, and my receiver’s clock is imperfect. Engineers correct for much of this with models and with extra signals. The result, for an ordinary phone in open sky, is usually accurate enough to place me on the correct road, though not always in the correct lane. That level of accuracy is enough for navigation, and it is remarkable given that the satellites are thousands of miles away and moving quickly.

How navigation uses the position

Once my phone knows its position, it can compare that position with a map and work out where I am on a road. As I move, it keeps recalculating, so the blue dot follows me. Directions are then a separate job: the app finds a route through the road network, estimates travel time from road speeds, and updates the route if I miss a turn. GPS itself does not know about traffic or road closures; those come from other data layered on top.

The simple picture

So GPS is not magic, and it is not surveillance by the satellites. It is a set of precise clocks broadcasting from space, a receiver measuring tiny delays, and a bit of geometry turning distances into a position. I am somewhere on a sphere around one satellite, on a circle from two, and at a point fixed by three or four. From that point, a map can show me where I stand, and a route can guide me onward. It is an elegant idea: find yourself by listening carefully to the sky.