Haversine-Based Multi-Site Visit Validation for Real-Time GPS Tracking

Authors

  • Ardhiat Gilang Pratama Universitas Pamulang image/svg+xml Author
  • Nur Rofiq Author

DOI:

https://doi.org/10.30998/faktorexacta.v19i3.5987

Keywords:

GPS tracking, Haversine formula, Geofence validation ,Real-time monitoring, Field workforce evaluation

Abstract

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

Download data is not yet available.

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

16-11-2026

How to Cite

Pratama, A. G., & Rofiq, N. (2026). Haversine-Based Multi-Site Visit Validation for Real-Time GPS Tracking. Faktor Exacta, 19(3). https://doi.org/10.30998/faktorexacta.v19i3.5987