For centuries sailors determined their position by observing the Sun, Moon, and stars. Instruments such as the sextant allowed navigators to measure angles between celestial bodies and the horizon, enabling ships to estimate latitude and longitude.
Reference:
Wikipedia reference
TaskLoco™ — The Sticky Note GOAT