Logistics Automation in the Middle East and Pakistan: Fixing Addresses, Dispatch and Cash on Delivery
Descriptive addresses, manual dispatch and cash on delivery make last-mile logistics in the Gulf and South Asia harder than any Western playbook assumes. Here is how we automated it for a courier, and what to copy.
By Ali Afzal Yousuf, founder of Astrameld

Logistics Automation in the Middle East and Pakistan: Fixing Addresses, Dispatch and Cash on Delivery
Most delivery software is built for countries where every house has a postcode and a street number. In much of the Gulf and South Asia, an address is a description: "behind the big mosque, second gate on the left, call when you arrive." The software accepts it, the driver can't use it, and the first thing the driver does is phone the customer for directions.
Multiply that call by every parcel, every driver and every day, and it's the main reason couriers in the region miss delivery windows. Logistics automation in the Middle East has to start with that problem, not with route maths.
The three problems a Western playbook misses
1. Addresses you can't geocode. Typed addresses are free text, often mixed-language, and frequently point to a neighbourhood rather than a door. Geocoding them gives you a pin in roughly the right area, which isn't good enough for a driver with forty drops.
2. Dispatch by gut feeling. When addresses are unreliable, dispatchers assign routes from memory: who knows which area, who is closest. It works until volume grows, and then routes overlap, drivers burn out and fuel eats the margin.
3. Cash on delivery. In Saudi Arabia, Pakistan and many neighbouring markets, a large share of e-commerce orders are still paid in cash at the door. A COD order that the customer forgot about, or never really meant, is a wasted trip there and a wasted trip back.
What we built for Litex Express
Litex Express had all three problems. Dispatchers assigned routes by hand, drivers spent the day phoning customers for directions, and delivery windows were being missed.
We replaced the guesswork in four parts:
- GPS pins over WhatsApp. Before the delivery, an automated WhatsApp message asks the customer to share their current location. A shared pin is far more accurate than any typed address, and customers already know how to send one.
- Automatic clustering. A geolocation algorithm groups the day's deliveries by real location, not by the area name someone typed.
- Route optimisation. Each driver gets the most efficient sequence for their cluster in a mobile app, with the customer's pin one tap away.
- A live dashboard. Head office can see every parcel's status in real time instead of phoning drivers to ask.
The project took about nine weeks: three to design the algorithm, four to build the apps and two for a pilot run. It was built on the Google Maps API, Node.js, Firebase and React Native.
Handling cash on delivery
COD doesn't go away because you automate dispatch, but you can stop it wasting trips. The same WhatsApp channel that collects the location pin can also:
- Confirm the order before dispatch. A one-tap "Yes, deliver tomorrow" filters out orders the customer has changed their mind about before a driver leaves the depot.
- Confirm the amount. Telling the customer the exact amount due avoids arguments at the door and drivers without change.
- Offer a payment link. Where the market supports it, offering prepayment by link moves some orders off cash entirely.
- Reschedule instead of failing. If the customer won't be home, they pick a new slot in the chat, and the parcel goes on tomorrow's route instead of coming back as a failed attempt.
What to copy if you run a courier or a delivery fleet
Start with the location pin. It's the cheapest change with the largest effect, and it works on WhatsApp, which your customers already use. Send it a few hours before delivery, not at dispatch, so the location matches where the customer will actually be.
Automate dispatch only after the data is clean. Route optimisation on bad addresses gives you efficient routes to the wrong places. Fix the input first.
Keep a human on exceptions. Customers who don't reply, pins that land somewhere odd and high-value parcels should go to a dispatcher, with everything the system already knows attached.
Measure the right things. Track deliveries per driver per day, first-attempt success rate, failed COD attempts and how many calls drivers make to customers. The last number should fall sharply in the first week.
The same pattern for e-commerce sellers
If you sell online in the region rather than run the fleet, you can still use most of this. Order confirmation and location pins over WhatsApp, sent before you hand the parcel to your courier, cut failed COD deliveries whichever courier you use. Our guide to e-commerce returns automation covers the reverse journey.
We build this kind of system as workflow automation connected to a WhatsApp agent. If your fleet runs in the Gulf or Pakistan and your drivers spend the day on the phone, it's a good place to start.