/nai

My personal take on Naismith's Rule, a hiking time estimation technique

Primary LanguageShellGNU General Public License v3.0GPL-3.0

nai

My personal take on Naismith's Rule, a hiking time estimation technique.

Usage

This is meant for day hikes.

nai --length 5 --elevation 321
# ╭───────────────────┬───────┬───────────╮
# │     component     │ value │   time    │
# ├───────────────────┼───────┼───────────┤
# │ length            │ 5km   │ 1hr 0min  │
# │ elevation change  │ 321m  │ 0hr 32min │
# │ endurance penalty │ 0.0%  │ 0hr 0min  │
# │ breaks            │       │ 0hr 0min  │
# │ total             │       │ 1hr 32min │
# ╰───────────────────┴───────┴───────────╯

nai --length 19.4 --elevation 1676 --break 60
# ╭───────────────────┬────────┬───────────╮
# │     component     │ value  │   time    │
# ├───────────────────┼────────┼───────────┤
# │ length            │ 19.4km │ 3hr 52min │
# │ elevation change  │ 1676m  │ 2hr 46min │
# │ endurance penalty │ 14.4%  │ 0hr 57min │
# │ breaks            │        │ 1hr 0min  │
# │ total             │        │ 8hr 36min │
# ╰───────────────────┴────────┴───────────╯

The endurance penalty is based on total time hiking, and is hard-coded to estimate my own fitness level.

Dependencies

This script is written in Nushell.

Installation

If you have Nushell installed, download the script, chmod +x nai, and run it.