Overview
We built a web and mobile tracking system for enterprise transport agencies managing delivery trucks across multiple cities. The idea was straightforward: install GPS trackers in trucks, connect them to a central dashboard and mobile app, and use that data to suggest better routes. Transport managers needed to see where their trucks were without calling drivers, and dispatchers needed help planning routes that actually made sense for same-day and next-day deliveries.
Before this, a typical Monday morning meant dispatchers spending two hours on the phone figuring out which truck should take which orders, then manually mapping routes. Now they pull up the dashboard, see which trucks are where, let the system suggest routes based on delivery addresses and time windows, make quick adjustments, and everyone’s on the road in 30 minutes. When a truck breaks down or runs into traffic, dispatchers can see it immediately on the map and reroute other trucks to cover those deliveries. Fleet managers track all expenses like fuel, tolls, and maintenance in one system instead of juggling multiple spreadsheets.
Results
- Morning route planning takes 30 minutes instead of 2 hours
- Deliveries arriving on time went from 65% to 82%
- Dispatchers know where every truck is without phone calls
- All truck expenses tracked in one system, not scattered spreadsheets
- Customer calls asking “where’s my truck” cut in half
The Challenge
Transport agencies were losing contracts because trucks kept showing up late, and had no way to track where their fleet was in real time. Everything was manual – dispatchers planned routes on paper or in their heads, called drivers every couple hours to check progress, and rerouted deliveries on the fly when something went wrong. A dispatcher might spend half their week just tracking trucks and fielding customer calls asking where their delivery was. Fleet managers maintained separate spreadsheets for fuel costs, toll fees, maintenance records, and driver salaries, making it hard to see which trucks were profitable and which were bleeding money. When a truck got stuck in traffic or broke down, no one knew until the driver called, then they’d scramble to reassign those deliveries to other trucks already running behind schedule.
Key Pain Points
- Dispatchers had to call drivers to find out where trucks were
- Route planning every morning took 2-3 hours of manually mapping addresses
- About 30-35% of deliveries showed up late or outside the time window
- When trucks got stuck in traffic or broke down, dispatchers found out too late to reroute effectively
- Truck expenses like fuel, tolls, maintenance, and driver salaries tracked in scattered spreadsheets
- No easy way to see which trucks were costing the most to operate
- Customer service spent hours each day answering “where’s my delivery” calls
- Drivers getting lost or stuck led to wasted time and missed delivery windows
Our Solution
We built a web dashboard and mobile app that collect GPS data from each truck and display it in real time, with smart routing to help plan better delivery routes and a records system to track all truck-related expenses.
Core Capabilities
- Live truck map: Dispatchers see every truck’s location refreshed every 30 seconds on one screen, so they can answer customer calls immediately or reroute deliveries when needed.
- Smart routing system: Every morning the system looks at all the delivery addresses and delivery time windows, then suggests optimized routes for each truck. Dispatchers review and adjust before sending to drivers.
- Fleet records management: Each truck has a profile where managers log service history, fuel receipts, toll fees, driver salaries, and other expenses. Managers can see total cost per truck and identify which vehicles are expensive to operate.
- Mobile app for drivers: Drivers get their routes on their phones with turn-by-turn navigation, can mark deliveries complete, and report issues directly in the app.
- Customer tracking page: Customers get a link to watch their delivery truck on a map and see estimated arrival, cutting down the “where’s my stuff” phone calls.
System Architecture & Technical Approach
The system needed to handle constant GPS updates from dozens of trucks, provide real-time data to the web dashboard and mobile apps, and keep working when drivers hit rural areas with spotty cell coverage.
Architecture Highlights
- GPS data pipeline: GPS trackers send location data every 30 seconds. A cloud pipeline processes and stores this data, making it available to the web dashboard and mobile apps in real time.
- Route optimization: An algorithm analyzes delivery addresses, distances, and time windows each morning to suggest efficient routes. Takes about 2 minutes to calculate routes for a 50-truck operation.
- Mobile app for drivers: The app downloads route data and works offline, so if a driver loses signal the navigation still works. Syncs back delivery confirmations and location when they get coverage again.
- Fleet records database: Centralized database stores all truck information including service records, fuel receipts, toll fees, driver salaries, and other expenses. Managers can generate reports on cost per truck or cost per delivery.
Business Impact
Transport agencies started seeing differences in the first few weeks – dispatchers finishing route planning faster, fewer missed deliveries. The biggest change was having visibility into operations that were previously invisible.
Measurable Outcomes
- Morning route planning down from 2-3 hours to 30 minutes
- On-time deliveries went from 65% to 82%
- Customer service calls about delivery status cut in half
- Visibility changed from calling drivers every hour to watching trucks move on a map
- All truck expenses (fuel receipts, tolls, maintenance, salaries) logged in one place instead of scattered spreadsheets
- Managers can now see cost per truck and identify expensive vehicles
Why This Worked
This worked because we focused on the actual problems transport managers deal with every day – not knowing where trucks are, wasting time on manual route planning, missing deliveries, tracking expenses across multiple spreadsheets – rather than just building tracking because we could.
- Dispatchers got one map showing all trucks instead of making 20 phone calls
- Smart routing system saved hours every morning and reduced missed deliveries
- Driver app worked without cell signal, so drivers in rural areas actually used it
- Expense tracking gave managers visibility into which trucks were expensive to operate
- Customer tracking page reduced support calls and made agencies look more professional
Tech Stack
- Frontend: React with TypeScript for web dashboard
- Mobile: React Native for iOS and Android driver apps
- Backend: Node.js with Express for API services
- Database: PostgreSQL with TimescaleDB extension for time-series location data and delivery records
- API/Integration: REST APIs for GPS tracker integration and third-party systems
- Infrastructure: AWS (EC2, RDS, S3 for data storage)
- Maps: Google Maps API for routing and visualization
- DevOps/CI-CD: Docker for containerization
Key Takeaway
This project shows we can:
- Build GPS tracking systems that give real-time visibility into truck locations across multiple cities
- Create smart routing algorithms that optimize delivery routes and improve on-time performance
- Develop mobile apps that work offline for drivers covering rural routes with bad cell coverage
- Build fleet management platforms that track expenses like fuel, tolls, maintenance, and driver salaries in one place
- Integrate tracking and routing with existing dispatch and customer service workflows