The formula to calculates distance between two points with geo-coordinates WGS84:
| Data |
Definition |
| ACOS |
Function that returns arccosine of a number (available in programming language
or Excel) |
| COS |
Function that returns cosine of a number (available in programming language or Excel) |
| SIN |
Function that returns sine of a number (available in programming language or Excel) |
| PI |
Constant π (PI) with value of 3.141592654, built in function in SQL or
programming language |
| LatA |
Latitude of point A, converted to radians: Degrees * PI / 180 |
| LngA |
Longitude of point A converted in radian: Degrees * PI / 180 |
| LatB |
Latitude of point B, converted to radians: Degrees * PI / 180 |
| LngB |
Longitude of point B converted to radians: Degrees * PI / 180 |