If you were drunk your path may look like $f(t)=g(t)+c\sin(\omega t)$ for sufficiently large $\omega $. In this case your path $f$ will not significantly differ from $g$ in $\Vert\cdot\Vert_\infty$ metric, but the length of your path could be arrbitrary large. Hence you need to reformulate your problem in terms of $\Vert\cdot\Vert_1$ metric or put some restrictions on possible trajectories.