Hello Airtable Community,
I'm working on a project that involves calculating the Qibla direction using Airtable. I have latitude and longitude data for various locations stored in my Airtable base. I need to create a custom formula that can accurately determine the Qibla direction for each location.
I have come across the term "boussole prière en ligne" (online prayer compass) and understand its importance in providing precise Qibla directions. Could someone guide me on how to implement the necessary trigonometric calculations within Airtable’s formula field to achieve this? Specifically, I’m looking for a way to:
- Input the coordinates of the Kaaba (latitude: 21.4225, longitude: 39.8262).
- Use the haversine formula or any other relevant trigonometric function to compute the initial bearing from any given point to the Kaaba.
- Ensure the result is displayed in degrees, representing the direction to the Qibla.
I would appreciate any examples or step-by-step guidance on setting up this formula. If scripting is required, advice on incorporating it effectively within the Airtable environment would be beneficial.
Thank you for your assistance!
