Last updated:
0 purchases
qibla direction
Qibla direction #
Getting started #
To start using this package, add qibla_direction dependency to your pubspec.yaml
dependencies:
qibla_direction: '<latest_release>'
copied to clipboard
Features #
Finds the direction, in degrees from North, of the Qibla from a given set of coordinates.
Counts distance between Kaaba and entered coordinates
Usage #
Import
import 'package:qibla_direction/qibla_direction.dart';
copied to clipboard
Get the direction, in degrees from North, of the Qibla from a given set of coordinates.
// Coordinates of Tashkent
const coordinate = Coordinate(41.2995, 69.2401);
final direction = QiblaDirection.find(coordinate);
// Output: 240.29722032951278
copied to clipboard
Get distance, in kilometers of the the Qibla from a given set of coordinates.
// Coordinates of Tashkent
const coordinate = Coordinate(41.2995, 69.2401);
final direction = QiblaDirection.countDistance(coordinate);
// Output: 3531.4030278182277
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.