Three Boys, Forty Orders, One Map: Delivery Boy Route Automation for Local Shops

Three Boys, Forty Orders, One Map: Delivery Boy Route Automation for Local Shops

A Delivery Route Planner for Local Shops With Their Own Delivery Staff

A grocery store, pharmacy, water can dealer or tiffin service with two or three riders usually plans deliveries the same way every morning: the owner splits the orders by memory, each rider decides his own order of stops, and two riders end up in the same colony while a third crosses town twice. A delivery route planner built around the shop’s own customers fixes that in about a minute, without buying a fleet management system.

Why saved pins beat typed addresses

Typed addresses in Indian towns are a poor input for any map: “near temple, second lane, blue gate” means nothing to software. Converting address text into map points puts many customers in the wrong colony. So this planner never routes from address text. It routes only from saved locations.

The first time a rider reaches a new customer, he shares his location on Telegram. That point is saved against the customer’s phone number, and the reply says “Saved for next time.” From then on, the same phone number always maps to the same doorstep. In practice, a shop’s regular customers are almost all pinned within about two weeks.

Orders without a saved pin are not guessed. They go on a Needs Pin list and are added at the end of the nearest rider’s route with the customer’s landmark, so the rider can find them and save the pin on arrival.

The sheets that feed the planner

TabColumnsNotes
OrdersOrder No, customer, phone, address, amount, payment type, status, run, deliver by, units, pincodeRoute sequence, rider and run date are written back
Customer LocationsPhone, name, latitude, longitude, landmark, delivery notePhone is the key; landmark is shown, never routed
RidersName, Telegram chat ID, capacity, on duty, usual days offEach rider starts the bot once
SettingsMaximum distance for the last evening waveKeeps late runs close to the shop

Capacity matters for heavy goods. A scooter might carry six 20-litre water cans or two gas cylinders, and no route is allowed to exceed that.

How the delivery route planner calculates routes

When orders are packed and marked Ready, the owner taps Dispatch on Telegram. An n8n workflow reads the ready orders, joins them to saved locations by phone number, and sends all riders and stops in one request to the openrouteservice optimisation service, which is open source and has a free key. Each rider is a vehicle that starts and ends at the shop with his capacity; each order is a job with its units, two minutes of service time and, where needed, a deliver-by time.

Two rules keep the plan fair and useful:

  • No rider gets more than the average number of stops plus three, so one rider does not end up with 4 drops and another with 18.
  • Deliver-by times are used only for customers who need them, such as office tiffins before 9 am or elderly pharmacy customers before noon.

One technical trap is worth knowing: the routing service expects longitude first, while Google Maps links expect latitude first. Mixing them up sends routes into the sea, so label the coordinates clearly in the workflow.

What each rider receives

Each rider gets a short message with one line per stop: customer name, items, amount, payment type and landmark. Under it is a Google Maps link with the stops in order, built using Google Maps URLs, which open in the normal Maps app at no cost. Long routes are split into parts of up to nine stops, because very long links fail on older phones.

At each stop the rider taps Done, Not Home or Cash Collected with the amount. Each button turns into a tick after one tap to prevent double entries, and the owner’s pinned message updates live, for example “Rider 1: 6 of 14”.

When the routing service fails

If the service is down or the free key runs out, the planner falls back to a simpler method that still keeps riders apart:

  1. Group the orders by pincode.
  2. Sort orders inside each group by straight-line distance from the shop.
  3. Sort the groups by the distance of their nearest order.
  4. Hand out whole groups to on-duty riders in turn.

It is cruder than a full optimisation, but no two riders ever share a lane, and deliveries still go out on time.

Evening runs, missed customers and add-ons

Evening deliveries run in waves, for example at 5, 6 and 7 pm, each routing only the orders that became Ready since the last wave and only the riders back at the shop. Any Not Home order from the morning moves to the evening run automatically, and the customer gets a message saying the rider will return. If a customer adds an item after dispatch, the extra item goes to the rider already on that route as a one-line note with the stop number, without re-planning everyone’s route. The last wave never goes beyond the distance set in Settings; anything further moves to the next morning.

Cash, UPI and safety at the doorstep

Each stop shows whether it is prepaid, cash on delivery or UPI on delivery. For UPI on delivery, the Cash Collected tap asks the owner’s phone to confirm the credit before the stop closes, because a fake UPI payment screenshot is the most common doorstep trick. High-value orders, such as a full month’s groceries or costly medicines, get a call-before step, and the owner sets a value above which goods are never handed over on a screenshot alone. Shops that take orders on WhatsApp should also confirm COD orders before dispatch, so riders do not travel to fake orders.

A checklist before you trust it

CheckHowPass
Shop pinOpen a one-stop Maps linkStarts at the shop gate
CapacityRider capacity 2, five heavy ordersNo route above 2 units
Deliver-by timeOne order due by 8 amAppears early in the route
No pinRemove one saved pinAppears last, with landmark
Service downUse a wrong keyFallback routes still arrive
Double tapTap Done twiceCounted once
CashTap ₹640 collectedRider’s closing total is correct

What it costs, and where it fits

For a small shop, this delivery route planner costs very little. The routing service’s free tier covers a small shop, Google Maps links and Telegram bots are free, and self-hosted n8n costs only the server. A shop with one counter can build the same flow in Google Sheets with Apps Script in about 200 lines.

The same dispatch logic carries over to other jobs in the business. A shop with two branches can plan the van that carries an inventory transfer between branches on the same route sheet. When my team sets this up, day one is simple: save the shop’s own pin at the gate, add the riders, and let the riders collect pins for the top 50 customers during their next few runs.

Radha Krishna

I am Radhakrishna, Founder and lead author at UpcomingTools.com, where I write Business Guides and Automation Guides for low investment automation in India. With 3 to 5 years offline experience serving small businesses only through trust and referrals, I now build software only workflows for lead follow up, bookings, quotes, stock, invoices and reporting and fix failed runs, expired tokens and unsafe AI and RAG answers. Every guide and workflow is written and decided by me, personally checked and live tested before publishing. I build in your own accounts on live, so your keys stay yours, show a rough demo before build and give 3 to 6 months free support with free tool help and ZERO SERVICE CHARGE for eligible starters.

2 Comments

    […] For owners who are often away and want both branches visible from anywhere, this sits well beside the setup for a shop owner on leave. And the van’s route itself can be planned with the same thinking as delivery boy route automation for local shops. […]

    […] Sales target pacing automation is most useful when the shop has quick, cheap actions ready. Calling people you already know works far better than discounts, and talking to customers, as I wrote in my piece on finding ideas by talking to people, is the cheapest action on any menu. For shops that deliver, a weekend free-delivery action runs smoothly with delivery route planning for local shops. […]

Leave a Comment

UpcomingTools logo - Nation First, Build The Best, Pass The Test