Skip to content

MirrikhSoftware/qibla_direction

Repository files navigation

Qibla direction

pub package CI mit license contributors commits

Getting started

To start using this package, add qibla_direction dependency to your pubspec.yaml

dependencies:
  qibla_direction: '<latest_release>'

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';

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

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages