fixup! Altitude gain calculation and test
Elevation retrieval factored out of view code

To make it reusable in achievement calculation logic.