zrina.app
Contact
Menu
← All articles

Behind the app

How I built a vehicle tracking app for a car wash

From searching for vehicles and keeping paper records to a car wash app: locations, keys, billing and technical decisions.

“Where's the car? Where's the key? Is the wash finished?” These weren't questions we could answer at a glance. They often meant walking around, making phone calls and searching several parking areas. That's why I started building an app for the car wash.

The original version was built with Google Apps Script and Google Sheets and tried out in a real workplace. I've deliberately left out the organisation's name, identifiable maps and business data, but I want to show the problem that led to the app.

A project rooted in everyday work

As a service advisor, I came to know the problem through daily work with my colleagues. I decided to look for a solution on my own initiative and build the app in my spare time, using my own resources, AI tools such as Gemini and the Visual Studio Code development environment.

I then offered it for use in the workplace. Colleagues gave me positive feedback during the trial, but the project was never formally adopted or moved onto the organisation's infrastructure. It is no longer used there. The experience showed me how valuable it is to understand people's daily work before building a solution.

Why was it so hard to find one car?

The car wash was part of a larger service complex, separate from the vehicle reception area. The service department used it, as did other internal and external customers. During the day, cars could be in different parking areas or parts of the complex; the key wasn't necessarily where the car was.

Before the app trial, my fellow service advisors and I averaged around 15,000 steps during a working day. That included looking for vehicles and keys and moving cars for collection. The figure is an approximate total, not a measured saving from the app.

About ten sheets of paper a day

Washed vehicles were recorded by hand on printed tables — in my experience, about ten A4 sheets a day. The information then had to be copied, sorted and calculated manually. At the end of the month, quantities and different types of wash were tallied with paper, a pen and a calculator.

The service department was the largest user. In that process, a wash for a service vehicle wasn't billed to the customer; it was accounted for internally between the car wash and the service department. The records needed to distinguish who requested each wash and which service was performed, so they could support the appropriate billing rather than simply list cars.

The app connected daily work with record-keeping: information entered for each vehicle can later be reviewed by period, department and wash type, alongside the relevant price list. The original implementation provides quantity and cost summaries and exports data to help prepare billing.

One record, different jobs

A vehicle passes through several stages, and different people need different information. One person needs the intake details; another needs the wash queue, parking location or key. The views and available actions were tailored to each role, while everyone worked from shared records.

For example, someone at the car wash can mark a vehicle as being washed or finished and record where it was left. The service advisor can then see its status, last recorded location and key information. People enter the location, so keeping it up to date matters.

The original also used a map of the workplace to select locations, with descriptions of individual zones. It isn't published here because it shows the real site. The important idea isn't the photograph itself, but giving the team shared, understandable labels instead of a vague “over there”.

Thinking through the solution

Below are a few short excerpts from the original code, without user or organisation data. The reporting example is simplified pseudocode.

Synchronising with Google Sheets and Apps Script

In the original implementation, Google Sheets is the shared data store and Apps Script handles client requests. A version marker is updated after changes; an open screen periodically checks for newer data and refreshes the list when needed.

This is the actual function that starts the client-side check:

function pokreniSmartSync() {
    if (window.isSyncRunning && smartSyncTimer) return;
    if (smartSyncTimer) clearInterval(smartSyncTimer);
    smartSyncTimer = setInterval(osvjeziRadionicu, 3000);
    window.isSyncRunning = true;
}

And this Apps Script function stores the version marker in the cache:

function bumpVersion() {
  let cache = CacheService.getScriptCache();
  if(cache) cache.put('db_verzija', Date.now().toString(), 21600);
}

The first function sets up periodic refreshes and avoids starting another timer if one is already running. The second stores a timestamp as the data version, with a cache lifetime of 21,600 seconds.

The idea is that the screen doesn't have to download the whole list again when nothing has changed. After a successful change, the original code updates the version marker; at the next check, the server can return data or indicate that nothing has changed.

This is polling, not a push connection: the check starts approximately every three seconds, plus network and processing time. A local copy can make the initial display faster while the server response is pending.

From records to billing preparation

Instead of recounting paper records, the report goes through vehicles recorded in the selected period, groups them by requesting department and service type, and applies the price list. Simplified:

// Illustration: grouping report items
for each record in selectedPeriod:
    group = getGroup(record.department, record.washType)
    group.quantity += 1
    group.amount += priceFor(group)

In the original code, the report reads active and archived records, groups them by department and wash type, and uses the price list. This turns the data collected throughout the day into a clearer basis for billing.

Offline: displaying data isn't the same as saving it

Seeing the last known data is useful when the connection drops. But displaying cached information isn't the same as reliably saving new actions offline. In the version I reviewed, the client disables certain actions when the connection is lost; I haven't confirmed a persistent queue that sends them automatically later.

For me, the lesson is to describe and test offline support for each action, rather than promise it simply because the app is available on a phone.

Roles aren't a substitute for secure sign-in

The original version uses an identifier stored in the browser, along with a process for approving users and assigning roles. That helps organise the interface, but a browser identifier alone is not reliable proof of identity. A new implementation would need proper authentication and server-side authorisation checks instead.

OCR for licence plates and VINs

In the original Android environment, text is recognised from a photo and the result is further processed using rules for vehicle data. Recognition can make mistakes, so the result assists data entry rather than replacing a check by the person handling the vehicle.

For example, the letter O and the digit 0 can look very similar in a photo. For a VIN, the app can compare possible readings, apply allowed-character rules and take a check digit into account when ranking candidates. Licence plate corrections also depend on a character's position.

This actual excerpt from the VIN candidate loop checks the format and adds points for a matching check digit:

let komad = cisto.substring(i, i + 17);
let popravljeno = popraviVINOCR(komad);
if (!/^[A-HJ-NPR-Z0-9]{17}$/.test(popravljeno)) continue;

let score = 0;
if (isValidVINChecksum(popravljeno)) score += 100;

The rest of the function prepares the text, considers different candidates and scores them further. A matching check digit increases a candidate's score; the person entering the data checks the result before confirming it.

Three implementations, one problem

The original was followed by a separate web version with a different server and database, and later by an experimental PWA built with AI Studio. They are different implementations, so we shouldn't assume every original feature works the same way in the newer versions.

From service experience to a solution built with AI

As a service advisor, I didn't learn about the problem from a project brief. I worked with colleagues who looked for cars and keys, coordinated handovers and copied information every day. That hands-on experience helped me see where the process stalled and what information people needed when their hands and their day were already full.

With my own effort and technical knowledge, and help from AI tools, I turned the idea into an app that colleagues tried in a real workflow and responded to positively. AI helped me build it, but it couldn't learn the job for me, decide what was useful or confirm that every feature was correct.

That's why a more important question than the choice of technology is: does the solution make someone's work easier? Edge cases matter too: what happens when the connection drops, information is out of date or the same entry is submitted twice? Neat-looking code still needs checking, and when something goes wrong, an error message should help identify the cause.

The original app was tried in a specific workplace, but it was never formally adopted. Wider use would require further checks, particularly of sign-in, permissions, reliability and data protection. The experimental PWA also needs to be considered separately, not treated as a confirmed finished product.

For more on the workflow and original architecture, visit the carwash.app project page.