currlat = oldlat + d * sin (angle)/ (radius); currlon = oldlon + d * cos (angle)/ (radius * cos(oldlat));
where d is the distance traveled and the angle is in radians. This implies a land circumference of 40,000 km both at the equator and across the poles. You can convert in radians ...
He also suggests that the angle (direction) refers to the equator line.
Obviously, this requires correction of the spheroid.
if you go south, the values โโof sin will become negative, and in the north - positive. If you go west, it will become negative, and in the east it will become positive.
d * sin (angle) and d * cos (angle) gives you changes. and you just calculate the new lat / long based on the fact that it scales along the circumference of the earth.
source share