qibla 1.0.0
qibla: ^1.0.0 copied to clipboard
Qibla direction, great-circle path, and haversine distance for Dart and Flutter. Pure math, zero dependencies. Computes bearing to the Ka'bah from any point on Earth.
Changelog #
1.0.0 - 2026-03-08 #
Added #
qiblaAngle(lat, lng)computes the initial bearing to the Ka'bah in degrees.compassDir(bearing)returns an eight-point compass abbreviation (N, NE, E, etc.).compassName(bearing)returns the full compass direction name (North, Northeast, etc.).qiblaGreatCircle(lat, lng, [steps])generates waypoints along the great circle to the Ka'bah via spherical linear interpolation.distanceKm(lat1, lng1, lat2, lng2)computes haversine distance between two points.- Constants:
kaabaLat,kaabaLng,earthRadiusKm. - RangeError validation for all coordinate inputs.