Some time we have to calculate distance between source and distination.we have currunt/source geo points like Lat and Lon and distination geo points like Lat and lon.so only we have to pass these points to this function and this will return distance in miles.