From Saturday-Morning Scramble to a Routed Week
This project is a desktop tool for a volunteer grocery-delivery program. It cleans the weekly list of delivery addresses coming in from unchecked forms and hand entry, suggests which driver takes which stops, lets the routing person review and fix every route, writes everything the drivers, packers and confirmation volunteers need, and helps fold in the family who turns up at the last minute. It runs entirely on a laptop, with no data leaving the machine, and a person makes every decision.
The problem: a weekly puzzle built by hand
I belong to a volunteer mutual-aid program that delivers groceries to around 100 families every two weeks. The cycle looks simple on paper. Families sign up through an online form, volunteer drivers sign up for a pickup time, groceries get packed, and drivers deliver on Saturday. In reality this process was very manual with one volunteer spending hours turning her knowledge of the area into hand curated routes for each driver and doing a ton of copy and pasting to get the info into various outputs for all of the teams involved in shopping, packing, and driving.
Some of the complexity is in the limitations of the data quality. Addresses arrive typed by hand: an apartment number in the street field, a misspelled street, a city that doesn't match the zip code. Some is in the need to respect the volunteers' time. Drivers have limits: how many families fit in a car, which counties they'll drive into, how long they can be out. Some is in the fact that enforcing hard rules would mean that a family doesn't get groceries. Every week someone is added after the "deadline," sometimes on Saturday morning with the shopping already done.
The routing was done by eye, in a spreadsheet, by whoever volunteered the time. It worked because a few people cared a great deal, and that is also why it was fragile. If that person was away, if there were too few drivers, too many families, or too many late entries, the process became incredibly challenging and time consuming.
What I built
A four-step app that follows the order the work already happens in, with a review page between routing and documents for the part where judgment matters most.
Clean and validate. Straightens out the messy combined spreadsheet, then checks every address against a local copy of government address data (about 1.4 million addresses) and fills in a standard version. It flags duplicate names and phone numbers, and families at the same address with the same kids' ages. It also flags any family so far from everyone else that routing around them deserves a deliberate decision. Rows that need a human look are sorted to the top, with a plain-language reason, and after fixing them a re-check picks up the corrections without losing what was typed by hand. A companion step reads the drivers' sign-up document, a table with one row per volunteer and a pickup time per section, into the drivers list the solver needs.
Suggest routes. Assigns families to drivers using a vehicle-routing solver, respecting each driver's limits and soft preferences, and writes a per-driver summary: families, total minutes, whether their zone preference was met, open slots, and a map link to sanity-check the whole route. It also reports where a zone's demand outruns the drivers who listed it, so the routing person can see a shortage before asking anyone for anything.
Review and fix (a shareable page, not an app step). A single HTML file, no install and no connection to the app, lets anyone click through every route: stops in order, long hops, out-of-zone stops, a map link per driver, and what changed since the last run. The reviewer can keep a route or a single stop, move a stop to another driver (with a warning if that puts the driver over their limit), or lower a driver's maximum deliveries so the solver doesn't slide another bad stop onto a route just fixed. The choices come back as a small file, and one button writes them into the routed list and reruns. Kept stops stay kept.
Build the documents (the app's Step 3). From one underlying data structure it produces the Word document drivers read, copy-and-paste driver messages, a packing summary with diaper sizes per driver, and a confirmation page for families. The confirmation page splits the families evenly into four tabs, one per volunteer: type your name once on a tab and every Spanish message on it is filled in with the family's name and address, with an Open WhatsApp button per family and a "sent" tick that is remembered. Because every output comes from the same data, they can't disagree with each other.
Add a late family (the app's Step 4). Type the address of the family who just arrived and get a ranked list of who could take them, including drivers who are already full, because organizers do ask a full driver to add one more.
Where software fits, and where it deliberately doesn't
The solver makes suggestions. It never makes the decision.
Every route it produces is a draft for the routing person to review, move around and approve. Hand-set stops are respected: type a driver's name and an N next to a family, or just tick Keep on the review page, and the tool will keep that family where it is and route everyone else around them. Rules that must never be broken, such as a car's real capacity or a county a driver won't enter, are separated from preferences that only nudge. When a hard rule can't be met, the stop is left unrouted for a person to place, rather than quietly bent.
Because this involves families' names, addresses and phone numbers, the other line I held is privacy. The app works offline, the address data lives on the laptop, and the code, tests and documentation use only fabricated families. I once caught real data sitting in a test file just before the first push to a private repository. I fixed it first, and now check for real names before anything is committed.
Handing it over
A tool that only its author can run isn't finished. The app is a double-click program with a plain-language "How to use" document, error messages written for the routing person rather than a developer, and automatic backups before it changes any of their files. The review page and the confirmation page are plain HTML files, so a second routing person or a confirming volunteer can open them on any computer without installing anything. The confirmation page stores nothing off the machine, and sending a message is always a person pressing a button.
Next to the app sits a mapped-out version of the whole weekly process, from the intake form through address correction to delivery, with the places where one person is the single point of failure marked as suggestions. The app doesn't fix those on its own. A more robust week also needs shared access to the sign-up sheets and earlier address checks, and those are changes to a process rather than to the software.
None of this replaces the people. The routing person decides, the volunteers drive, and the tool takes the repetitive, error-prone parts off their plate so their time goes into the judgment calls.
The biggest lesson
When I started the project I was really excited to work on the optimization piece and dig into all things routing thinking that was the piece the volunteers were struggling with the most. Very quickly though I realized that the biggest stumbling blocks were coming from the decentralized nature of the group which meant that the issues of "this is just how we do it" were amplified when there wasn't a clear chain of command. The reformatting of the routes and final packing information was the piece that was the hardest (and least interesting) for the volunteers in part because they were supplying a bunch of documents that either people no longer used or that those people were again reformatting. Meeting up just to talk through what every volunteer was doing with info vs just talking about what spreadsheet had been sent previously allowed me to generate exactly the artifact (totals, shopping lists, map links, WhatsApp messages) that each team needed. Sometimes it is the simple part that creates the biggest win.