Haversine-Based Multi-Site Visit Validation for Real-Time GPS Tracking
DOI:
https://doi.org/10.30998/faktorexacta.v19i3.5987Keywords:
GPS tracking, Haversine formula, Geofence validation ,Real-time monitoring, Field workforce evaluationAbstract
Field administrators who visit multiple project sites are often supervised through manual reports that cannot verify the actual location of a visit. This study designed and implemented LACAKIN, a web-based, real-time GPS tracking system that validated each visit report against the coordinates and radius of the selected site using the Haversine formula. The system was developed using PHP, MySQL, and Leaflet.js to facilitate monitoring for both field administrators and supervisors. The evaluation combined black-box, white-box, and API testing with a pilot trial consisting of six visit reports from five accounts across four sites, utilizing a 700 m radius and 37 logged GPS points. All 44 black-box and 25 API test cases passed, and the core functions exhibited a mean cyclomatic complexity of 6.4. Independent recalculations reproduced the stored distances within 0.05 m, confirming computational consistency rather than positioning accuracy. Furthermore, two on-site reports (54.75 m and 93.35 m) were accepted, whereas four off-site reports (4.5 to 20.8 km) were rejected; these classification decisions remained unchanged for any configured radius between 93.35 m and 4,500 m. The mean reported GPS accuracy of 115.16 m indicated that setting a radius below approximately 100 m would inadvertently reject genuine visits. These findings suggest that larger field trials are required before the system can be deployed to assess workforce productivity.
Downloads
References
[1] Robert, “Implementasi GPS tracking and monitoring, pengenal wajah, pengenal sidik jari pada sistem presensi karyawan berbasis mobile,” Jurnal Ilmiah KOMPUTASI, vol. 19, no. 2, pp. 203–216, 2020, doi: 10.32409/jikstik.19.2.2796.
[2] K. Merry and P. Bettinger, “Smartphone GPS accuracy study in an urban environment,” PLoS ONE, vol. 14, no. 7, Art. no. e0219890, 2019, doi: 10.1371/journal.pone.0219890.
[3] R. W. Sinnott, “Virtues of the haversine,” Sky and Telescope, vol. 68, no. 2, p. 159, 1984.
[4] Y. Miftahuddin, S. Umaroh, and F. R. Karim, “Perbandingan metode perhitungan jarak Euclidean, Haversine, dan Manhattan dalam penentuan posisi karyawan (Studi kasus: Institut Teknologi Nasional Bandung),” Jurnal Tekno Insentif, vol. 14, no. 2, pp. 69–77, 2020, doi: 10.36787/jti.v14i2.270.
[5] C. Husada, K. D. Hartomo, and H. P. Chernovita, “Implementasi Haversine formula untuk pembuatan SIG jarak terdekat ke RS rujukan COVID-19,” Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 4, no. 5, pp. 874–883, 2020, doi: 10.29207/resti.v4i5.2255.
[6] F. Antono and S. Dwiasnati, “Implementasi absensi karyawan menggunakan algoritma Haversine dengan global positioning system berbasis Android,” Jurnal Esensi Infokom: Jurnal Esensi Sistem Informasi dan Sistem Komputer, vol. 6, no. 1, pp. 1–10, 2022, doi: 10.55886/infokom.v6i1.459.
[7] H. Sidiq, D. Satria, and Humaira, “Implementasi algoritma Haversine pada absensi kepegawaian berbasis Android,” Journal of Applied Computer Science and Technology (JACOST), vol. 3, no. 1, pp. 120–126, 2022, doi: 10.52158/jacost.v3i1.263.
[8] Painem and H. Soetanto, “Sistem presensi pegawai berbasis web service menggunakan metode RESTful dengan keamanan JWT dan algoritma Haversine,” Fountain of Informatics Journal, vol. 5, no. 3, pp. 6–11, 2020, doi: 10.21111/fij.v5i3.4906.
[9] M. Fauzan, E. Christian, and P. B. A. A. Putra, “Rancang bangun aplikasi presensi menggunakan algoritma Haversine (Studi kasus Badan Kepegawaian Daerah Provinsi Kalimantan Tengah) berbasis Android,” Journal of Information Technology and Computer Science (JOINTECOMS), vol. 4, no. 1, pp. 81–88, 2024, doi: 10.47111/jointecoms.v4i1.13205.
[10] D. Anita and Rahmawati, “Pengembangan sistem presensi online berbasis web dengan validasi lokasi menggunakan GPS dan Haversine formula,” OKTAL: Jurnal Ilmu Komputer dan Sains, vol. 4, no. 12, pp. 828–839, 2025.
[11] R. H. Ballou, H. Rahardja, and N. Sakai, “Selected country circuity factors for road travel distance estimation,” Transportation Research Part A: Policy and Practice, vol. 36, no. 9, pp. 843–848, 2002.
[12] F. P. Boscoe, K. A. Henry, and M. S. Zdeb, “A nationwide comparison of driving distance versus straight-line distance to hospitals,” The Professional Geographer, vol. 64, no. 2, pp. 188–196, 2012.
[13] R. S. Pressman and B. R. Maxim, Software Engineering: A Practitioner’s Approach, 9th ed. New York, NY, USA: McGraw-Hill Education, 2020.
[14] J. B. L. Sie, I. A. Musdar, and S. Bahri, “Pengujian white box testing terhadap website Room Menggunakan teknik basis path,” KHARISMA Tech, vol. 17, no. 2, pp. 45–57, 2022, doi: 10.55645/kharismatech.v17i2.235.
[15] T. J. McCabe, “A complexity measure,” IEEE Transactions on Software Engineering, vol. SE-2, no. 4, pp. 308–320, 1976, doi: 10.1109/TSE.1976.233837.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Ardhiat Gilang Pratama, Nur Rofiq (Author)

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
Under the CC BY-NC 4.0 License, users are permitted to:
-
Share: Copy, distribute, and transmit the material across any medium or format.
-
Adapt: Remix, transform, and build upon the work for non-commercial purposes.
These permissions are granted provided the following conditions are met:
-
Attribution (BY): Proper credit must be given to the original author(s) and Faktor Exacta, including a direct link to the license and a clear indication of any modifications made. This acknowledgment must not imply endorsement by the journal or the authors. Reusers are required to include the article’s Digital Object Identifier (DOI) for permanent citation reference.
-
NonCommercial (NC): The material may not be exploited for commercial purposes or monetary gain. Any commercial utilization, republication, or integration into commercial goods requires explicit, prior written permission from the copyright holder(s).
-
No Additional Restrictions: No legal provisions or technological protection measures (such as DRM) may be applied to restrict others from exercising the freedoms granted by this license.
Official Legal Code: For the full and legally binding terms, please review the official Creative Commons Attribution-NonCommercial 4.0 International Public License.

