update recent lat and lon function