How GPS Finds You
When a phone shows your position as a blue dot on a map, it is using a system of satellites that orbit high above Earth. The system is called GPS, short for Global Positioning System. More than thirty satellites circle the planet, and each one constantly broadcasts a radio signal that includes the exact time the signal was sent.
Your phone does not send anything to the satellites. It only listens. A radio signal travels at the speed of light, so by comparing the time a signal was sent with the time it arrived, the phone can work out how far away that satellite is. The delay is tiny, only a fraction of a second, so the clocks involved must be extremely accurate. Each satellite carries atomic clocks for exactly this reason.
One distance by itself is not enough. A single satellite only tells the phone that it is somewhere on a huge imaginary sphere around that satellite. With a second satellite, the possible locations shrink to a circle where two spheres overlap. A third narrows it to just two points, and one of those is usually far out in space. A fourth signal helps the phone correct its own less precise clock, so it can fix its position and even its height above the ground.
Tall buildings, deep canyons, and tunnels can block or bounce the signals, which is why the blue dot sometimes drifts in a big city. Even so, GPS usually places a phone within a few meters. Delivery drivers, pilots, farmers, and hikers all depend on it, and the same timing signals help keep cell networks in step.