Hi,
You can find usefull information on Wikipedia, the free encyclopedia Haversine_formula.
Hope that helps.
JP Antunes