A Global Positioning System (GPS) device can determine its position on Earth once it knows its distance from at least four satellites and uses the process of triangulation.
This allows the GPS to accurately determine its position in three-dimensional space (latitude, longitude, and altitude) and also corrects for any timing discrepancies.