Implementasi Perhitungan Arah Kiblat Menggunakan Metode Vincenty dalam Bahasa Pemrograman C++

Authors

  • Muhammad Mundhir Universitas Islam Negeri Walisongo Semarang

DOI:

https://doi.org/10.47766/astroislamica.v4i2.6005

Keywords:

qibla direction, vincenty, C++ Programming

Abstract

Determining the direction of the Qibla is an important aspect of Islamic worship practices. To accurately determine the Qibla direction, geodesic calculations that take into account the Earth's ellipsoidal shape are required. The Vincenty method, designed to calculate the distance and azimuth between two points on the surface of an ellipsoid, is a suitable choice for this calculation. This research aims to implement the Qibla direction calculation using the Vincenty method in the C++ programming language. The C++ programming language was chosen because it is a strongly-typed and flexible programming language, widely used for software development, IoT systems, computer systems, and robotic systems. This implementation utilizes the geographic coordinates of the user's location (latitude and longitude) and the coordinates of the Kaaba in Mecca (latitude 21.4225° N, longitude 39.8262° E) as input. The Vincenty method is used to calculate the azimuth from the user's location to the Kaaba, which is then interpreted as the Qibla direction. The implementation results are validated by comparing the calculations with tested Qibla direction applications. The results show that the Vincenty method provides high accuracy in determining the Qibla direction, with a difference of less than 2 minutes of longitude. This implementation can serve as a foundation for developing accurate digital Qibla direction applications or even simple microcontroller-based systems.

References

Abdul Kohar. “Al-Biruni’s Contribution To The Development Of Qibla Determination Methods: Historical Analysis And Scientific Relevance.” AJIS: Academic Journal of Islamic Studies 10, no. 1 (May 31, 2025): 253–76. https://doi.org/10.29240/ajis.v10i1.12600.

Ahmad Izzuddin. Ilmu Falak Praktis. Semarang: Pustaka Rizki Putra, 2017.

Anwar, Anwar, Bukhari Bukhari, and Andi Mardika. “Bridging Law and Astronomy: The Influence of Astronomy on Islamic Law.” Astroislamica: Journal of Islamic Astronomy 3, no. 2 (December 1, 2024): 156–70. https://doi.org/10.47766/astroislamica.v3i2.3646.

Awaludin, Muhammad, Ahamd Izzuddin, and Agus Nurhadi. “A Dialectical Analysis Of Fiqh And Scientific Perspectives On Qibla Direction Of Ancient Mosques In Lombok.” INJECT (Interdisciplinary Journal of Communication) 10, no. 1 (June 23, 2025): 277–96. https://doi.org/10.18326/inject.v10i1.4330.

Cut Nazar Mutia Hanum, and Ismail Ismail. “Pandangan Tokoh Agama Jungka Gajah Terhadap Arah Kiblat Bagi Orang Yang Jauh Dari Ka’bah.” Astroislamica: Journal of Islamic Astronomy 1, no. 2 (December 28, 2022): 169–86. https://doi.org/10.47766/ASTROISLAMICA.V1I2.934.

Fitriana, Evi, Hapsari Kenconojati, Mohammad Faizal Ulkhaq, Arif Habib Fasya, and Wahyu Nurlita. “Detection of Viral Haemorrhagic Septicemia in Marine Fisheries Commodity Using Real Time–PCR at Fish Quarantine Inspection Agency Denpasar, Bali.” Journal of Marine and Coastal Science 13, no. 1 (February 28, 2024): 1–8. https://doi.org/10.20473/jmcs.v13i1.37425.

Hambali, Slamet. Ilmu Falak: Penentuan Awal, Waktu Salat & Arah Kiblat Seluruh Dunia. Semarang: Semarang: Program Pascasarjan IAN Walisongo, 2002.

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.

Kurniawan, Kurniawan. “Respon Masyarakat Terhadap Metode Pengukuran Arah Kiblat Menggunakan Keyakinan (Studi Kasus Desa Wora Kec. Wera Kab. Bima).” Astroislamica: Journal of Islamic Astronomy 4, no. 1 (June 1, 2025): 122–41. https://doi.org/10.47766/astroislamica.v4i1.3440.

Martin, Rizkyellyasa Simon, and Yohanes Dewanto. “Prototipe Kunci Pintu Otomatis Menggunakan Sensor Kamera Berbasis Raspberry.” Jurnal Teknologi IndustriM 12, no. 1 (2023): 21–29.

Rakhmadi, Arwin Juli, Hariyadi Putraga, Marataon Ritonga, and Ismail Ismail. “Frequency-Based Analysis of Mosque Qibla Errors in Medan.” Al-Hilal: Journal of Islamic Astronomy 7, no. 1 (2025): 37–50. https://doi.org/10.21580/AL-HILAL.2025.7.1.24203.

Siddiqi, Ardana Ash, and Friska Linia Sari. “Implementation of Cattle Grazing Positions for Determining Cardinal Directions and the Qibla Direction.” Astroislamica: Journal of Islamic Astronomy 4, no. 1 (June 1, 2025): 180–98. https://doi.org/10.47766/ASTROISLAMICA.V4I1.3470.

Umar, Roslan. “Accuracy of Qibla Direction: Evaluating Smartphone Apps with the Istiwa’ Adzam Method.” Islamiyyat 47, no. 1 (June 3, 2025): 3–14. https://doi.org/10.17576/islamiyyat-2025-4701-01.

Wicaksono, Satrio, Moehammad Awaluddin, and Hani’ah Hani’ah. “ANALISIS SPASIAL ARAH KIBLAT KOTA SEMARANG.” Jurnal Geodesi Undip 5, no. 4 (November 1, 2016): 225–32. https://doi.org/10.14710/JGUNDIP.2016.13980.

Yıldırım, Faruk, Fatih Kadı, Şakir Levent Şahin, and Bayram Uzun. “The Qibla Direction Problem in Large-Scale Maps and Its Representation with Geodetic Accuracy: The Case of Türkiye.” International Journal of Engineering and Geosciences 10, no. 2 (July 15, 2025): 151–63. https://doi.org/10.26833/ijeg.1531806.

Downloads

Published

2025-12-31