getQiblaDirection function
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;
}
}