Question: how to calculate bearing from distance?
Answer: Convert the starting point latitude 'lat1' (in the range -90 to 90) to radians. lat1 = lat1 * PI/180. Convert the starting point longitude 'lon1' (in the range -180 to 180) to radians. lon1 = lon1 * PI/180. Convert the bearing 'brg' (in the range 0 to 360) to radians.