Is there a way to map from $\mathbb{R}^2$ to $\mathbb{R}^1$, such that every point in $\mathbb{R}^2$ has a unique point in $\mathbb{R}^1$ and you preserve the distance (isometry) relations of $\mathbb{R}^2$?
Injective map from $\mathbb{R}^2$ to $\mathbb{R}$ gives an example on how to map $\mathbb{R}^2$ to $\mathbb{R}^1$. I'm curious if there is a way to do this and while maintaining $\mathbb{R}^2$'s triangle inequality, which is for $x,y,z\in\Bbb R^2$ we have $|f(x)-f(z)|\leq|f(x)-f(y)|+|f(y)-f(z)|$.