I am looking for a reference for this result.
Let $S$ be a metric space such that
- it is homeomorphic to a two-dimensional manifold,
- it is 2-homogeneous: given two pairs of points $(x,y)$ and $(x',y')$ such that $d(x,y) = d(x',y')$ there exists an isometry of $S$ that sends $x$ to $x'$ and $y$ to $y'$.
- it is a geodesic space: given two points $x$ and $y$, for $l=d(x,y)$ there exists a curve $\gamma:[0,l]\rightarrow S$ such that $d(\gamma(s), \gamma(t)) =|s-t|$, $\gamma(0) = x$, $\gamma(l) = y$.
Then $S$ is isometric to either the Euclidean plane, some hyperbolic plane, a sphere or its quotient by $\{\mathrm{id}, -\mathrm{id}\}$.
The result appears in a survey in French of Étienne Ghys in a volume entitled "L'héritage scientifique de Poincaré". There is no attribution, only a vague sketch of proof. I browsed Ghys' papers in search of this result without success.