Suppose $(X,d)$ is a metric space with the nearest point property and $a,b \in X$ with $a \ne b$. Suppose there is a path of finite length in $X$ from $a$ to $b$ and let $m$ be the infimum of the lengths of all paths from $a$ to $b$.Then, by Lipschitz reparametrization, there exists a path $g:[0,1] \rightarrow X$ from $a$ to $b$ that satisfies $lth_t(g) = tm ~\forall~t \in [0,1].$ and $g$ is lipschitz with length $m. lth_t(g)$ represents the length of the function $g$ upto a point $t$.
Then is the function $g$ always injective?
I am kind of stuck here and can't think of any counterexamples as well. Any inputs will be appreciated, thanks!