Since the earth is a sphere you cant use the distance formula that works for two points in a plane. Distance calculation between two points is possible with midified Pythagorean equation. Function ShowDistance var x1 x2 y1 y2.
6 3 2 6 3 -2 632.
To use kilometers set R 63710710. Var b y2 - y1. Var c z2 - z1. Function distance Calculates.