Quote:
Originally Posted by nbajjuri
I am using CLLocation to get the current location. And we can also save the previous location information.
How can we calculate the distance between these 2 locations?
|
A few years ago when I got my first GPS unit, I wrote a program in Java that does just that. I won't bother to include that code, but if you are not successful in solving the problem, let me know - off line -- and I'll be happy to send you the code. All it requires is the latitude and longitude of the two locations.
Sam (sam@hcc.hawaii.edu)