get GPS meter difference


Can anybody explain to me how I get the difference between two LocationInfos? Because the only values that are get are the altitude latitude and longitude. How can I calculate this to meter?

Assuming that you don’t need super-accuracy, the usual method is to use the Haversine approximation to calculate the great circle distance between those points as if they lay on the surface of a sphere.