PENGEMBANGAN APLIKASI BERBASIS WEB UNTUK PEMANTAUAN DAN PEMBATASAN WILAYAH OPERASIONAL KENDARAAN MENGGUNAKAN GPS, GEOFENCE, DAN N8N
Abstract
The need for an effective and responsive vehicle fleet management system continues to grow, particularly in
the transportation and logistics sectors. Most existing monitoring systems remain passive, displaying only
vehicle location without automated area restriction or integrated notification mechanisms. This study aims to
build a web-based application for monitoring and restricting vehicle operational areas using the Global
Positioning System (GPS), geofencing, and the N8N workflow automation platform. The system implements a
dual geofence mode: a manually drawn polygon mode validated with the Ray Casting (point-in-polygon)
algorithm, and a province-based mode that utilizes GeoJSON boundary data of 38 Indonesian provinces
through the Turf.js library. Vehicle compliance status is managed through a tiered mechanism (normal,
warning, penalty) with a 30-minute time tolerance, complemented by a 5-minute notification cooldown to
prevent repeated alerts. Multi-channel notifications (email and WhatsApp) are dispatched automatically
through an N8N Cloud workflow. The system is built on a three-tier architecture using Vue.js 3,
Node.js/Express.js, and MongoDB, and is equipped with JWT authentication and multi-user data isolation.
Testing was carried out using the Black Box Testing method across twelve core functional scenarios. The
results show that all scenarios performed as designed, with an average latency of 12 milliseconds for the Ray
Casting algorithm, 45 milliseconds for Turf.js, and an average API response time of 115 milliseconds. The
system proved capable of accurately detecting vehicles leaving their designated operational area, delivering
real-time notifications, and properly maintaining data isolation between users.

