hi ,
in my application i am collecting latitude and longitude when user dialed call or receive call at that time i am calling one function with NSTimer with delay of 15sec , and again i am collecting latitude and longitude.
the problem is that while i am calculating distance between them it give minimum distance 0.87 miles or 1 miles even if i am not moving i used following formula
double distance = (sin(gpslatitudeOld/57.2958) * sin(gpslatitudeNew/57.2958)) + (cos(gpslatitudeOld/57.2958) * cos(gpslatitudeNew/57.2958) * cos(gpslongitudeNew/57.2958 - gpslongitudeOld/57.2958));
from site (http://www.meridianworlddata.com/Distance-Calculation.asp)
i also used
[newLocation getDistanceFrom:startingPoint]
but still not getting other result , in one forum i read that there will be up down of 1mile in two latitude and longitude. so is there any solution fro that ???