qibla 1.0.0 copy "qibla: ^1.0.0" to clipboard
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.
0
likes
150
points
99
downloads

Documentation

API reference

Publisher

verified publisherariccamarata.com

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#qibla #islamic #compass #geodesic #geolocation

License

MIT (license)

More

Packages that depend on qibla