bearingBetweenTwoGeoPoints method
Calculate the initial bearing from point l1
to point l2
.
Given two geographic points l1
and l2
, this function calculates and returns the initial bearing from point l1
to point l2
in degrees.
Implementation
num bearingBetweenTwoGeoPoints(LatLng l1, LatLng l2) {
return BearingBetweenTwoGeoPoints.bearingBetweenTwoGeoPoints(l1, l2);
}