Now account for the curvature of the Earth.