01 How does distance and bearing work?

In the function “Distance and bearing” the distance between two entered coordinates as well as the direction from one to the other is calculated and output according to the desired unit of length. The directions are determined both from A to B and from B to A.