radcheb / Adhan

High precision prayer time library
MIT License
13 stars 4 forks source link

How to get the angle of Qibla from the library? #13

Closed Cyrillius closed 6 years ago

Cyrillius commented 7 years ago

What is the method I need to use to get the direction of the Qibla from the north?

The input of the method should be a location in latitude and longitude.

radcheb commented 7 years ago

As far as I know, library adhan does not have any module to get Qibla direction. This is definitely a different subject from getting prayers time.

Cyrillius commented 7 years ago

but you have astronomical functions inside the library maybe we can use these functions to implement a method to caclculate the direction of the Qibla I will check what we need

Cyrillius commented 6 years ago

Discussed via e-mail the old algorithm to compute the Qibla will be used.