Penentuan Azimut Kiblat Masjid Kampus UIN Sultanah Nahrasiyah Lhokseumawe Menggunakan Rumus Segitiga Bola Berbasis Python
DOI:
https://doi.org/10.47766/astroislamica.v4i2.6012Keywords:
Spherical triangle, Python, Qibla Direction.Abstract
Prayer time is a compulsory act of worship for Muslims, the validity of which depends on the fulfillment of specific conditions, one of which is facing the qibla, the direction of the Kaaba in the Masjid al-Haram, Makkah. Therefore, accurate determination of the qibla direction is a crucial aspect of performing prayer. Various methods have been used to determine the qibla direction, such as the annual Rashdul Qiblah phenomenon and calculations based on spherical trigonometry. The Rashdul Qiblah method is simple and accurate; however, its application is limited to specific times. In contrast, spherical trigonometry can be applied at any time and offers high precision, but the calculation process is relatively complex and prone to human error. This study aims to implement spherical trigonometry using the Python programming language to simplify the process of qibla direction determination and to evaluate its accuracy. The research employs a library research method with a computational simulation approach. The qibla direction is calculated by inputting the latitude and longitude coordinates of the location and the Kaaba into a Python program, and the results are then compared with field measurement data obtained using a theodolite. The results show that the Python-based qibla direction calculation produces an azimuth value with a difference of 32.62 arcseconds compared to the theodolite measurements. This difference is considered very small and does not practically affect the accuracy of the qibla direction. Therefore, the proposed method is proven to be accurate, efficient, and suitable as a modern alternative for determining the qibla direction.
References
Akbar, Reza, and Riza Afrian Mustaqim. “PROBLEMATIKA KONSEP BENTUK BUMI DAN UPAYA MENCARI TITIK TEMUNYA DALAM PENENTUAN ARAH KIBLAT.” Shar-E : Jurnal Kajian Ekonomi Hukum Syariah 6, no. 1 (May 9, 2020): 43–52. https://doi.org/10.37567/SHAR-E.V6I1.17.
Assay, Resazurin. “Abstract :Skyfield for Analisis,” no. June (2020): 0–3. https://doi.org/10.2139/ssrn.4455998.
Dewi Rahayu, and Laiyina Ukhti. “Uji Akurasi Arah Kiblat Menggunakan Azimut Bulan Purnama.” Astroislamica: Journal of Islamic Astronomy 1, no. 1 (June 30, 2022): 01–20. https://doi.org/10.47766/ASTROISLAMICA.V1I1.681.
Dunque, Kristine Mae Paboreal, Aaron Raymond See, Dwi Sudarno Putra, Rong Da Lin, and Bo Yi Li. “Obstacle Detector and Qibla Finder for Visually Impaired Muslim Community.” IFMBE Proceedings 79 (2021): 55–71. https://doi.org/10.1007/978-3-030-62045-5_6/COVER.
Hakim, Luqman, Rifqi Budi Raharjo, Didik Dwi Waluyo, Politeknik Elektronika, and Negeri Surabaya. “Prototype Robot Untuk Menentukan Arah Kiblat Dengan Tanda Shaf Shola.” Program Kreativitas Mahasiswa, 2014, 1–8.
Ismail, Ismail Ismail, and Husnaini Husnaini. “Aktualisasi Jadwal Salat Sepanjang Masa Abu Muhammad Isa Mulieng Aceh.” Islamic Review: Jurnal Riset Dan Kajian Keislaman 10, no. 1 (April 26, 2021): 93–110. https://doi.org/10.35878/ISLAMICREVIEW.V10I1.245.
Ismail, Ismail, Dikson T. Yasin, and Zulfiah. “Toleransi Pelencengan Arah Kiblat Di Indonesia Perspektif Ilmu Falak Dan Hukum Islam.” Al-Mizan 17, no. 1 (June 30, 2021): 115–38. https://doi.org/10.30603/am.v17i1.2070.
Izza, Nurul, and Sartika Sartika. “Implementation of L-Qibla for Qibla Direction Indicators in Graves.” Astroislamica: Journal of Islamic Astronomy 4, no. 1 (June 1, 2025): 142–61. https://doi.org/10.47766/ASTROISLAMICA.V4I1.3938.
Izzuddin, Ahmad. “Typology Jihatul Ka’bah on Qibla Direction of Mosques in Semarang.” Ulul Albab: Jurnal Studi Dan Penelitian Hukum Islam 4, no. 1 (November 1, 2020): 1–15. https://doi.org/10.30659/JUA.V4I1.12186.
Maulidin Maulidin, and Abdullah Abdullah. “Uji Komparasi Instrumen Arah Kiblat Antara Qibla Tracker Dan Mizwala Qibla Finder.” Astroislamica: Journal of Islamic Astronomy 1, no. 1 (June 30, 2022): 73–96. https://doi.org/10.47766/ASTROISLAMICA.V1I1.899.
Nurhanifah, Rahma Syifa, Raihanny Nadira Amriely, and Muhammad Ali Husaeni. “Dinamika Penentuan Arah Kiblat Dengan Perhitungan Trigonometri Bola Di Desa Pasirjambu,” n.d.
Nurqolbi DY, Yusuf, Ulil Albab Al aulia Alpaten, and Kurniawan Kurniawan. “Kajian Penentuan Arah Kiblat Dengan Sensor Magnetik Kompas Android.” Astroislamica: Journal of Islamic Astronomy 3, no. 2 (December 1, 2024): 193–210. https://doi.org/10.47766/astroislamica.v3i2.3429.
Rahman, Sayuti, Arnes Sembiring, Dodi Siregar, Husnul Khair, I Gusti Prahmana, Ratih Puspadini, and Muhammad Zen. Python : Dasar Dan Pemrograman Berorientasi Objek. Penerbit Tahta Media, 2023.
Ritonga, Adawiyah. “Studi Literatur Perbandingan Bahasa Pemrograman C ++ Dan Bahasa Pemrograman Python Pada Algoritma Pemrograman” 3, no. 3 (2023).
Riza, Ferdi, Muhammad Syafiq Hady, Muhammad Rafli, Sofyandi Afifi, and Ade Rifqi Kurniawan. “Pemanfaatan Bahasa Pemrograman Python Dalam Pembelajaran : Tinjauan Studi Literatur,” n.d., 1–10.
Rondius, Bayu &. “Mekanika Benda Langgit,” 2012, 1–11.
Santi Okta Sriani, Laiyina Ukhti. “Uji Akurasi Arah Kiblat Menggunakan Fitur Kompas Kiblat Pada Aplikasi Quran KEMENAG Versi 2.1.4.” Astroislamica 1, no. 2 (2022): 219. https://doi.org/https://doi.org/10.47766/astroislamica.v1i2.951.
Solikin, Agus, Siti Tatmainul Qulub, Adi Damanhuri, Novi Sopwan, Holilur Rohman, Universitas Islam, Negeri Sunan, and Ampel Surabaya. “Hifz Al Aql Dan Penerapan Open-Ended Question Dalam Materi Konsep Arah Kiblat Pada Mata Kuliah Matematika Astronomi.” Edukasi Islami: Jurnal Pendidikan Islam 12, no. 02 (May 21, 2023). https://doi.org/10.30868/EI.V12I02.3243.
Surbakti, Nurul Maulida, Anita Talia, and Cecilia Br Perangin-angin. “Penggunaan Bahasa Pemrograman Python Dalam Pembelajaran Kalkulus Fungsi Dua Variabel” 2, no. 3 (2024): 98–107.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Ravik Walhidayah, Ismail Ismail

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.






