With issue #1 fixed, accumulated elevations can be calculated directly from turnpoints in the DEM like done in [Waymarked Trails](https://github.com/lonvia/waymarked-trails-site/issues/112).