Journals / Case study

How Picnic predicted the minutes at each door, and why its route plans depend on them

A route planner is only as good as its guess of how long the driver spends at each stop. Picnic's 2020 post is about that one number, the drop time, and the trade-off it controls between serving more customers and arriving inside a 20-minute window. The model is ordinary. The pilot is one hub for one week, and the useful parts are the problem framing and the careful rollout.

01 DEC 202611 min readLogistics · Route planning · Machine learning · Last-mile delivery Based on: Picnic, 2020
Our diagram titled Minutes at the door set the route, about how Picnic predicted drop time for its route planner in 2020, in three bands. The problem: a chart of one trip with four drops, each with a green planned bar and a red actual bar; drop 1 had too much time planned and the runner idles, drop 2 is close to plan, drop 3 had too little and runs over, and drop 4 is late, as is every next stop; the customer sees a 20-minute window. The model: four feature groups, customer, order, region and runner, with address density and customer history standing in for the unknown floor, go into a linear baseline and then an MLP trained with Huber loss so bad timestamps weigh less, giving minutes per stop for the vehicle routing model. What Picnic reports: about 30 percent less error offline across all Dutch hubs with the metric not named, about 20 percent more drops per trip in one hub for one week, and about 2 points less on time, so the rollout added a buffer and then shrank it. A note says the bars are ours, for illustration, and the post gives no minutes, no on-time level and no control hub.
Diagram: MORARI. Source: Picnic

Most talk about delivery routing is about the road: which stop comes next, which street is faster. The road is only half of a delivery trip. The other half happens after the van stops, when the driver unloads, walks, climbs stairs, waits at a gate and hands the order over. If the plan guesses that part wrong, every stop after it is wrong too.

Picnic, the Dutch online supermarket that delivers with small electric vans, wrote about that half in Optimal drop times using machine learning, a post by Tom Steenbergen on its engineering blog. Medium dates it March 10, 2020, and the copy on Picnic's careers site, where it lives now, shows January 27, 2020. We read both, plus two archived captures. The post carries Picnic's default copyright and its photo shows a person, so all diagrams here are our own. Every result below is Picnic's own.

The problem: one number per stop

Picnic plans its trips with a vehicle routing model, and the post names its key input: "An important input into this model is the drop time: how much time we expect a delivery to take for a given customer (in the vehicle routing literature better known as the service completion time)."

The customer is promised a narrow slot: "This time window is only 20 minutes long and it falls within the one-hour time slot the customer chose when placing the order." That creates the trade-off in the title. "On one hand, we want to have a high on-time percentage, which requires us to plan enough time for each and every customer." And: "On the other hand, we want to increase efficiency and serve as many customers as possible within the duration of a single delivery trip made by a runner."

A bad estimate is paid for with slack: "In short, when our drop time estimate is rather inaccurate, we need to plan a lot more redundant time on top of our estimate as a safety buffer to maintain a high on-time percentage." A better estimate lets the buffer shrink. The post shows this with a chart of one trip, where each drop has a planned bar and an actual bar. Too much planned time means idle runners. Too little, and in Picnic's words it ends up "causing each subsequent drop to be later."

How they built it

The team grouped what drives a drop into four parts: "These factors can be roughly grouped into four areas: 1) customer, 2) order, 3) region, and 4) runner." Candidates ranged "from historical average drop time of a customer and the total weight of the delivery, to weather forecasts and address density."

The most useful fact was missing. "For example, we would like to know on which floor the customer lives, as that could impact the drop time a lot." So they used stand-ins: "In this example, we used address density and the historical drop time of the customer." Dense addresses suggest apartments, and a customer who always takes long probably lives up the stairs.

The data had dirt in it: "For example weird timestamps cause the recorded drop time of a delivery to be different from reality." Most of it was removed by rules, and the rest was handled in training with the Huber loss, which treats small errors as squared and large ones as linear "to avoid putting too much weight on these potentially anomalous errors." For any team with driver-app timestamps, a forgotten tap or a tap at the wrong door is the normal case, not the edge case.

The modelling followed a rule Picnic had already published: "we prefer simple over complex." The plainest model already won: "A simple linear regression model already turned out to be a lot more accurate than what was in use at the time." The final choice was a multilayer perceptron, a small neural network, because it scored best and, with modern frameworks, "it resulted in code that was hardly more complex."

Measurement and rollout

Offline: "Compared to the current situation, the MLP model reduced the error by approximately 30% when evaluating historical test data." The test covered every Dutch hub. The error measure is not named, and the old method is not described.

Then a live pilot: "For a period of one week, we planned all deliveries using drop times calculated by the MLP model." The result: "After this week we found that efficiency, measured in the number of deliveries per trip, increased for this particular hub by roughly 20%." The price: "The on-time performance only decreased by approximately 2 percentage points." Picnic calls the drop statistically significant and blames roadblocks and traffic jams.

The rollout is the part we would copy first. "Instead of immediately starting with the new model's predictions, we added a safety buffer on top of the MLP's predictions because of the decrease in on-time performance we noticed during the pilot." Then: "We then steadily decreased this safety buffer over the weeks following the roll-out so we would increase the efficiency of the system, while keeping a close eye on the on-time performance." By publication, the model ran "for each hub in both the Netherlands and Germany."

What the post does not show

  • No absolute numbers. No minutes per drop, no error value, no on-time level before or after, no drops per trip. All three results are relative.
  • A thin pilot. One hub, one week, no control hub, no season stated. The pilot chart has no axis values, so the 20% cannot be read from it. The test behind "statistically significant" is not named.
  • No final balance. The buffer shrank "over the weeks", but where efficiency and on-time ended up is not given.
  • No model details. No final feature list, no network size, no Huber threshold, no retraining or monitoring plan.
  • No curve. The title promises a trade-off, and the post shows two points, before and after.

What has changed since

The model became a neural network inside a bigger system. Picnic's February 2026 post, From Supplier to Doorstep, says: "we predict the exact number of minutes it takes to park the vehicle and bring the groceries to your doorstep." And: "We use a neural network to learn non-linear interaction effects between factors like order size, building characteristics, and customer familiarity." The per-stop numbers now feed the promise directly: "These predictions are then aggregated along the route, ensuring that the time window you receive for your order is as accurate as possible." It gives no error figure.

Floors entered the conversation. A 2025 Picnic history post lists what matters: "the time of day, forecasted weather conditions, on which floor a customer lives and whether there is an elevator present also plays a deciding factor in the delivery." It adds, "We added features to our drop time prediction", without saying which. Whether the model now knows the floor is not stated.

Picnic grew. In 2020 it served "thousands of customers every day". In December 2025 SHV reported that Picnic "has raised €430 million from existing investors." In July 2026 NL Times, reporting on the annual report, wrote that "Annual revenue rose by nearly a quarter to over €1.9 billion" and "The number of customers increased by 700,000 in 2025 to 3.6 million."

Others solved the buffer differently. Instacart, two years earlier, described the same tension and a fix: "A better approach would be to compute a prediction interval for the delivery time and use the upper bound of the interval." Predicting a range per stop, instead of one number plus a hand-tuned buffer, is the main idea we would add to Picnic's design.

Open-source planners take the number directly. The routing engine VROOM accepts a per-stop service duration, where "all timings are in seconds", next to time windows per stop. A predicted drop time can go straight in.

Why it matters for your business

Indonesian delivery volume is large and growing. Kemendag's 2025 e-commerce report puts 2024 transaction value at Rp487 trillion. We found no official national parcel count.

The drop is where Jabodetabek routes lose time, and we found no study that measures it. Gated housing clusters, apartment lobbies that hold parcels, security posts, cash on delivery and customers who come down from upper floors are the likely reasons. None of these is measured in a public source, so we list them as hypotheses. That is the argument for measuring your own drops before modelling them.

Two laws apply. The 2009 Postal Law, UU 38/2009, since amended, asks for "pelayanan prima" and in its elucidation names "kepastian waktu" among its elements, without setting minutes. The bigger one is data protection. Drop-time models are trained on customer addresses and driver GPS traces. Under UU 27/2022 (JDIH Komdigi), "Pengendali Data Pribadi wajib melakukan pemrosesan Data Pribadi sesuai dengan tujuan pemrosesan Data Pribadi", so a trace collected for navigation needs a stated purpose before it trains a model. Article 34 requires an impact assessment for high-risk processing and lists "pemrosesan Data Pribadi untuk kegiatan evaluasi, penskoran, atau pemantauan yang sistematis terhadap Subjek Data Pribadi", which can cover continuous driver tracking. Article 44 requires destruction when a retention period ends. Law-firm summaries say the implementing regulation, PP 33/2026, takes effect on 16 January 2027. We could not read its official text. We are engineers, not lawyers.

How we would build it today

Our diagram titled Measure the door, plan with a range, our suggestion for drop-time prediction at a Jabodetabek operator, in three bands. Measure: driver app events for arrived and handed over, with GPS dwell only as a fallback; two clocks, park and walk separate from the wait at the door, lobby or gate; an address key of building or cluster id plus unit, so new units borrow from the building. Predict a range, not one number: a baseline median by building type and order size, then trees or a small net on the same four groups as Picnic plus cash on delivery and gate, giving the median and 90th percentile per stop in seconds. Plan, then test against a control: the planner uses the median as service time per stop, the customer window is built from the upper percentile, and the pilot uses a control area and several buffer levels to draw a curve, not one point. A note says GPS and address history need a stated purpose, a retention period and an impact assessment under UU 27/2022.
Picnic's design with two changes: measure the door separately, and predict a range instead of tuning a buffer by hand. Diagram: MORARI. Source: Picnic

Picture a Jabodetabek delivery operator with its own driver app, a few hundred drivers on motorbikes and vans, and a mix of apartments, housing clusters and street addresses.

  1. Define the target. Time from arrival at the stop to handover, from two taps in the driver app. Keep park-and-walk separate from the wait at the door, lobby or gate. Use GPS dwell only where taps are missing.
  2. Fix the address first. Turn free-text addresses into a building or cluster id plus a unit. New units then borrow the building's history, which is likely where most of the gain is.
  3. Start with a median. Past drop time by building type and order size is the baseline. Then a linear model, then gradient-boosted trees or a small network, as Picnic did. Use its four groups, plus cash on delivery and gate type.
  4. Predict a range. Median and 90th percentile per stop. Plan with the median, build the customer window from the upper value. This replaces the hand-tuned buffer.
  5. Feed the planner in seconds. VROOM takes it as service. With OR-Tools, add it to the time between stops.
  6. Pilot with a control. Two comparable areas, several buffer levels, at least two weeks. Report error per stop, on-time rate and drops per driver-hour as a curve.
  7. Shrink the buffer the way Picnic did. Start safe and tighten area by area while on-time holds.
  8. Settle the data rules first. A stated purpose for address and GPS data, a driver notice, a retention period for raw traces, and the impact assessment.

For one engineer with clean app data, the audit and target take one to two weeks, the baseline and model two to three, and the pilot two to four. No paid API is needed. The next level is live re-planning: when a stop runs long, re-estimate the remaining stops and update the customer's window during the trip.