getQiblaDirection function

double getQiblaDirection(
  1. double latitude,
  2. double longitude,
  3. double headingValue
)

to get Qibla direction

Implementation

double getQiblaDirection(
    double latitude, double longitude, double headingValue) {
  if (latitude != 0 && longitude != 0) {
    final offSet = Utils.getOffsetFromNorth(latitude, longitude);

    // Adjust Qiblah direction based on North direction
    return offSet;
  } else {
    return 0;
  }
}