AlAdhan Qibla API
The API returns a bearing for a latitude and longitude pair. The Way Islam rounds the displayed result to two decimal places and does not retain the coordinates.
DIRECTION
Calculate the bearing from your location toward the Kaaba in Makkah. The result is expressed in degrees clockwise from true north, with a safe static fallback when device sensors are unavailable.
HOW IT WORKS
The Qibla bearing is the initial great-circle direction from the selected coordinates toward the Kaaba. It is shown clockwise from geographic true north, not automatically from magnetic north.
Phone compasses can be affected by magnetic materials, cases, buildings and calibration. A magnetic heading should not be treated as true north without a reliable declination correction.
If your device supplies a compatible absolute orientation reading, the compass can respond to movement. Otherwise the interface remains deliberately static: orient yourself toward true north, then turn through the displayed bearing.
For a mosque or permanent prayer space, verify the direction with a trusted local authority or a qualified survey.
The API returns a bearing for a latitude and longitude pair. The Way Islam rounds the displayed result to two decimal places and does not retain the coordinates.