Consider attempting to derive the distance formula
$$d((x_1, y_1), (x_2, y_2)) = \operatorname{arcosh} \left( 1 + \frac{ {(x_2 - x_1)}^2 + {(y_2 - y_1)}^2 }{ 2 y_1 y_2 } \right)$$
from the metric of the Poincare upper half-plane model
$$(ds)^2 = \frac{(dx)^2 + (dy)^2}{y^2}$$
See e.g. here. Though, from what I can see, this is not a straightforward calculation, since it involves solving the geodesic equation.
The problem I have is, what if I need a distance formula for a hyperbolic metric such as from this post, for some $t \in [0,1]$,
$$e^{2ty}(dx)^2+(dy)^2$$
I can no longer fall back on the standard theory of the distance in hyperbolic space to derive the first formula above, since the space no longer has sectional curvature $-1$. Can a distance formula be given in a similar way for $t \in [0,1]$? Would I need to solve the geodesic equation from scratch?
I would have just integrated along a geodesic in the usual way to find the arc length, given the metric as a function of $t$, but even the simple case $t=1$ seems intractable.