One can define a number of injective functions from $\mathbb{R}^d \to \mathbb{R}$, such as the one based on interleaving the digits of the decimal expansions.
I am looking for an injective function that satisfies that $$|x−y|<|y−z|\implies |f(x)−f(y)|<|f(y)−f(z)|,$$ where $|x−y|$ is the distance between point $x \in \mathbb{R}^d$ and point $y \in \mathbb{R}^d$. I am not sure if the injective function based on interleaving digits satisfies this property.
Roughly speaking, I am looking for an injective function $f: \mathbb{R}^d \to \mathbb{R}$ that preserves (at least approximately or partially) the relative distance between points.