Cockpit crews used to include a navigator, who would calculate position via maps, dead reckoning, later the LORAN radio system. Landmarks, both physical and radio. Also, with certain flight paths, there was even celestial navigation used (navigating using the stars).