Qibla direction
qibla_directionCalculate the Qibla bearing and distance from coordinates or a city, plus compass point and turn instructions.
Instructions
Qibla direction (great-circle bearing from true north to the Kaaba in Makkah) and distance from any coordinates or a known city, with the compass point, a "face north, then turn right/left N°" instruction, and (if you give a device heading) how far to turn. Bearings are from TRUE north; a magnetic compass can differ by a few degrees. Web version: https://s3eidat.github.io/qibla-finder/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | Or a known city: amman, irbid, zarqa, aqaba, mecca, medina, riyadh, jeddah, jerusalem, gaza, damascus, beirut, baghdad, cairo, alexandria, dubai, abudhabi, doha, kuwait, manama, muscat, istanbul, casablanca, tunis, algiers, khartoum, karachi, lahore, dhaka, delhi, kualalumpur, jakarta, tehran, london, paris, berlin, newyork, chicago, toronto, losangeles, sydney. | |
| heading | No | Optional: the direction you are facing now (degrees from north) to get a turn instruction. | |
| latitude | No | Latitude in degrees (−90..90). | |
| longitude | No | Longitude in degrees (−180..180). |