Just measure all angles from vertical, simple. That means you can also determine your position inland, like map surveyors have always done.
Yes, it's geometric, it's just not highschool geometry, with Euclidean straight lines.
One common way is to compute as if Earth's radius was bigger, 7/6...