Estimates the hiking time for a planned route by considering horizontal distance, elevation gain and elevation loss.
This function implements the DIN 33466 of the German Alpine Club. Different speeds are assumed according to this standard:
4 kilometers per hour in the horizontal direction
300 vertical meters in the ascent per hour
500 vertical meters in the descent per hour
hiking_time(distance, elevation_gain, elevation_loss)
a numeric
of length 1. The total distance of the hike
(in kilometers). Must be strictly positive.
a numeric
of length 1. The total elevation gain
(cumulative positive elevation). Must be positive or zero.
a numeric
of length 1. The total elevation loss
(cumulative negative elevation). Must be positive or zero.
A character
of length 1 returning the hiking time as "23h59"
.
## Lac du Montagnon par le Col d’Iseye
## https://www.visorando.com/randonnee-lac-du-montagnon-par-le-col-d-iseye/
hiking_time(distance = 20, elevation_gain = 1460, elevation_loss = 1460)
#> [1] "10h17"