What was implemented was the simple option 1 for calculating the distance param ... a better option exists. Test whether the better option is needed, and then decided to execute that work (or close this ticket).
See #53, where it's detailed a 2nd better way to calculate the distance variable.
Also see #50 for more context...