Logistics represent the biggest cost for transportation companies. Companies are investing in monitoring and tracking systems aiming at improving services, reducing costs and ensuring the safety in cargos transports. This article presents an intelligent model to obtain the position of vehicles, using off-the-shelf mobile devices named SWTRACK. The proposal allows distributors companies to track loads and to have real-time information about their whereabouts during a travel. SWTRACK presents an automatic travel management to initialize and finish travels without user interaction. Furthermore, it provides a mechanism to monitor detours in planned routes and to send alarms notification through mobile devices. To build that mechanism, we studied the Geofence concept and existing techniques to prepare two solutions based on continuous monitoring. Those solutions were compared and discussed. We also conducted a model evaluation using off-the-shelf mobile devices. Moreover, we provide an impact analysis regarding GPS precision and battery power consumption. In the end, we show that the proposed model generates a reliable system for tracking vehicles.