Let $(X,d)$ be a metric space. For a nonempty subset $A$ of $X$ we define the real valued distance function $\rho_A$ by $\rho_A(x) := \inf\{d(x,a) : a \in A\}$ for any $x \in X$.
Now it is quite intuitive, that $$A = \rho_A^{-1}(\{ 0 \})$$ whenever $A$ is closed. The inclusion $A \subseteq \rho_A^{-1}(\{0\})$ is trivial, but somehow I do not exactly know what to use to show the other inclusion. Any hint would be nice.