I recently learned Gauss's Theorema Egregium for surfaces embedded in $\mathbb{R}^3$. A TA for my class suggestively said that from this, i.e. that Gaussian curvature depends only on the first fundamental form of a surface, we may calculate the curvature of the earth without leaving its surface.
I understand that with knowledge of the first fundamental form, we may calculate the curvature, but for this question I'm not sure how to proceed, since we don't have a priori the first fundamental form of the earth given. It seems to me like we need to find that.
I saw some answers using the Gauss-Bonnet theorem, but I think that deals with total curvature, and I'm speaking of Gaussian curvature (I may be wrong here, I don't really know that theorem well).
Does it have something to do with measure triangles and angles? And if so, can someone help me relate this back to Gauss's theorem and the first fundamental form?
Another point of confusion: How do I even know what a triangle is on an arbitrary surface? A triangle is made by connecting three points with the curve that attains the shortest possible distance between those points, right? So on a plain, that's the normal line segment, but what about for arbitrary surfaces?
Shortest paths on an arbitrary surface, called (pre-)geodesics, are difficult to describe explicitly in general. On a sphere (a good approximation to the surface of the earth as far as geodesy is concerned), however, they're arcs of great circles.
Generally, if a geodesic triangle on a surface encloses a topological disk $T$, if $\Theta$ denotes the total interior angle of $T$, and if $K$ denotes the Gaussian curvature function, then $$ \iint_{T} K\, dA = \pi + \Theta. $$ Particularly, if $K > 0$, a geodesic triangle has interior angle greater than $\pi$, and if $K < 0$, a geodesic triangle has interior angle less than $\pi$.
On a sphere of radius $R$, we have $K = 1/R^{2}$, so a geodesic triangle of area $A$ has total interior angle $\pi + A/R^{2}$. For instance, a triangle with three right angles (one-eighth of a sphere) has area $4\pi R^{2}/8$ and total interior angle $\frac{3}{2}\pi$.
Curvature can be observed in practice: Longitude lines are geodesics, while latitude lines (except the equator) are not. If a surveyor wants to lay off one-mile (near-)square plots, the plots will fit well east-to-west (because two latitude lines are separated by a constant distance), but not well north-to-south (because two longitude lines get closer the farther from the equator one travels). Consequently, at moderate latitudes, every several miles the north-south boundaries of square plots must "jog" east or west in order for the plots to remain approximately square. The photographs below (own work) show this phenomenon in the nearly-planar plains of eastern Texas, taken from a plane.