The Day the App Said 'Not Yet' — And How I Found the Right Way to Manage Drivers

Building Arise & Shine Transporters meant tackling the challenge of managing a fleet of trucks in real time. When the AI suggested one approach, it didn’t work — but the back-and-forth led to a solution that made the app say 'Yes' at last.

The Day the App Said 'Not Yet' — And How I Found the Right Way to Manage Drivers

"The Day the App Said 'Not Yet' — And How I Found the Right Way to Manage Drivers Building Arise & Shine Transporters meant tackling the challenge of managing a fleet of trucks in real time. When the AI suggested one approach, it didn’t work — but the back-and-forth led to a solution that made the app say 'Yes' at last. The problem was clear: tracking a fleet of trucks across East Africa without knowing where they were, how much fuel they were using, or whether they were taking the right routes. The initial idea was to build a dashboard that pulled in GPS data every few minutes and displayed it on a map. That’s what I thought the app would do. But it didn’t work. Not yet.

Claude suggested using Protrack 365 API for GPS tracking. I tried it. The dashboard showed trucks, but not in real time. The data was delayed, and the map felt static. It was as if the trucks were frozen in place. I wasn’t sure if the problem was the API or the way I was using it.

I asked Codex: 'How can I get real-time GPS tracking that updates every minute?' The response was to use a polling mechanism — not just pull data once, but keep asking for it in regular intervals. That made sense, but the code I had was not set up for that. I tried changing the polling interval from 60 seconds to 30 seconds. Still, the app didn’t respond as expected.

Then, I thought about how the trucks themselves were being tracked. Maybe the GPS devices on the trucks weren’t sending data correctly. I reached out to the fleet manager and confirmed that the devices were working. So it wasn’t the hardware.

Claude suggested I try using the Cartrack Fleet API as a secondary source. That way, if one API failed, the other could take over. I implemented that. Still, the dashboard wasn’t updating as fast as I wanted.

Then, I tried using a background timer that ran every 5 minutes, regardless of user activity. That’s when I noticed a shift. The map started to feel more alive. The trucks moved, the routes were more accurate, and the system could detect when a truck deviated from its planned route. It wasn’t perfect, but it was working — and the app said 'Yes' at last.

The final solution was a combination of polling from two APIs, a background timer that refreshed the map regularly, and a system that flagged any unexpected changes in a truck’s route. That’s what made the app work — not the first idea, but the one that came after the 'Not yet' moments.

Building Arise & Shine Transporters wasn’t just about finding the right API or the right code. It was about listening to the app when it said 'Not yet' and figuring out what the next step should be. Sometimes, the solution isn’t the first one you try — it’s the one that comes after you’ve asked the right questions and tried the right things.

If you’re building something and the app says 'Not yet', don’t give up. Keep asking. Keep trying. The right answer is out there — you just have to find it.

Want to see more about how AI helps build real tools for everyday life in Kenya? Subscribe to my newsletter at wambug

Related articles

Comments

No comments yet. Be the first to share your thoughts.

Leave a comment