I'm trying to write an optimed code to calculate distances given 2 different longitude and latitude references on a PIC18F. there is no need for a great deal of accuracy 5-10% should do or a guide on how to get started.
Convert the Long and Lat of the first point to secs and subtract them from the conveted secs of the second point, then convert the result back to hhmmss and ggddss.