bearingFromUserToLocation static method

double bearingFromUserToLocation(
  1. Position userLocation,
  2. Position location, {
  3. bool approximate = false,
})

Implementation

static double bearingFromUserToLocation(
    Position userLocation, Position location,
    {bool approximate = false}) {
  double bearing = 0;
  if (approximate) {
    bearing = approximateBearingBetween(userLocation, location);
  } else {
    bearing = bearingBetween(userLocation, location);
  }
  return bearing;
}