Static double latitude2 190821978. Here is the formula to find the distance between two points. Distance between the two points x1y1 x2y2 d radius arccossinx1 sinx2 cosx1 cosx2 cosy1 - y2 Radius of the earth r 637101 Kilometers.
Write a Java program to compute the distance between two points on the surface of earth. Return Mathsqrtdx dx dy dy. If we want to calculate the distance between two places in kilometers use the value 6 3788 which is the radius of Earth. Input the latitude of coordinate 1.