Given a current location (latitude and longitude), speed, direction (in radians), and time elapsed (in seconds), this function calculates the next latitude and longitude. The calculations are based on the assumption of a constant speed and direction during the elapsed time.
next_lat_long(latitude, longitude, speed, direction, dt)A numeric vector of length 2 containing the next latitude and longitude in decimal degrees.
The current latitude in decimal degrees.
The current longitude in decimal degrees.
The speed in kilometers per hour.
The direction of movement in radians from due north (0 radians).
The elapsed time in seconds.