# How can I calculate the ratio of distance between 2 longitudes at different latitudes?

Suppose i have to calculate the ratio of lengths of AB and CD where A(0° N,0° E) and B(0°N,30° E), and C(30°N,0°E) and D(30°N,30° E) the values are just as an example.Is it possible to get the ratio in terms of theta(latitude of AB) and phi(latitude CD) and not having radius of earth in equation(which i suppose should be cancelled when we take ratio)

Assuming the Earth is a sphere (which is a good approximation) radius $R$, and assuming you want great-circle distances (which you should) then given two points with latitude and longitude $\phi_1, \theta_1$, $\phi_2, \theta_2$ then the great-circle distance between them is
$$R \cos^{-1}\left(\sin\phi_1 \sin\phi_2 + \cos\phi_1 \cos\phi_2 \cos\left(\left|\theta_2 - \theta_1\right|\right)\right)$$
It's easy to see that $R$ cancels if you want only the ratio of distances.
It is like the Thales relation for triangle sides. If $P$ be the north pole then $$\dfrac{PC}{PA}=\dfrac{CD}{AB}$$ since the points locate on pure shpere then arc form is $$\dfrac{60^\circ}{90^\circ}=\dfrac{CD}{AB}=\dfrac23$$