- Convert the starting and ending latitudes and longitudes from degrees to radians.
- Compute the differences in longitude and latitude.
- Ensure longitude difference takes shortest path possible.
- Use the below logarithmic formula to ensure accuracy in computing the latitude difference
- Use the below code snippet, to avoid division by zero
- Use the following formula to compute the rhumb line distance