Figure 1—Given two points on the surface of the earth, a spherical trigonometry formula gives the distance between the points. In order to avoid lengthy code, the familiar formula for the length of the hypotenuse of a right triangle is used instead, with an accuracy that’s close enough (within a mile or so) for any repeaters within range.