Is there a way to calculate angle between two Latitude/Longitude points?
What I am trying to achieve is to know where the user is heading. For example, user is head
Sample javascript code if the distance between points is less -
brng = Math.atan2(newLat - oldLat, newLong - oldLong); brng = brng * (180 / Math.PI); brng = (brng + 360) % 360; brng = 360 - brng;