Topological equivalence of some variational problem associated to distances