I'm having trouble proving this. I am able to prove other metrics, I think it is possibly the format of the railway metric that is confusing me...
Consider the function $d : \mathbb{R}^2 \times \mathbb{R}^2 \rightarrow [0, \infty)$ given by
$d(x,y)=\begin{cases} d_2(x,y)~\text{if $x,y,0$ are collinear}\\d_2(x,0) + d_2(0,y) ~\text{otherwise}\end{cases}$
I have also tried to attach a photo of the question)