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
You just can use the google maps computeHeading:
var point1 = new google.maps.LatLng(lat1, lng1); var point2 = new google.maps.LatLng(lat2, lng2); var heading = google.maps.geometry.spherical.computeHeading(point1,point2);