Spec
Missed-collection reports to same-day return trips
When a resident reports a missed bin, Kestrel checks the truck's own data and, for a genuine miss reported before 13:00, adds a return stop to a live route the same day. Please check that the flows match how Westerhaven and ReinNet really work, and answer the four open decisions at the end, by Fri 16 Oct.
- Review round
- open comments by Fri 16 Oct
- Open decisions
- 4 open
- Pilot
- planned Westerhaven, from Mon 11 Jan 2027
Business context
Residents report a missed bin through the municipal app, the website or the call centre. Every report lands in the municipality's reports system, the meldingen system.
Today, a ReinNet dispatcher reads the reports, phones a driver, and the driver may or may not go back. Nobody records whether the bin was collected in the end.
Westerhaven has 88,000 residents, runs 14 trucks a day and gets about 140 missed-bin reports a week. In Kees's sample of 300 reports from August, 61% were genuine misses: the truck skipped the bin. The other 39% were bins not out in time, put out on the wrong day, or blocked by a parked car.
34% of genuine misses get a return trip on the same day today.
With this change, Kestrel sorts each report using the truck's GPS trace and lift events, sends a truck back only for genuine misses, and closes every report in the meldingen system with what happened. The pilot target is that 80% of genuine misses reported before 13:00 are collected the same day.
Scope
In scope
- Missed-bin reports for the four container types: rest, gft, paper and pmd.
- Sorting each report as genuine, not presented, unknown or not scheduled.
- Same-day return stops for genuine misses reported before the cut-off, and priority stops on the next day's route for the rest.
- An answer to the meldingen system for every report, including the ones Kestrel does not act on.
Not in scope
- Bulky waste reports.
- Overflowing street bins.
- Changes to the resident-facing app. The municipality owns the app.
Assumptions
- ReinNet's fleet system already sends GPS and lift events to Kestrel for planning; this spec uses the same connection.
- Photos exist only from trucks with cameras: 9 of the 14 trucks in Westerhaven.
How Kestrel classifies a report
Kestrel first matches the reported address to a stop on today's or yesterday's route for that container type. A matched report gets one of three classes from the truck's GPS trace and the lift events from the truck body.
| Class | Evidence from the truck | What happens |
|---|---|---|
| Genuine | The truck passed within 25 m during the planned window, and there is no lift event at that stop. | Return stop today if reported before 13:00, otherwise a priority stop tomorrow. |
| Not presented | The lift sensor shows no bin at the arm, or the driver tagged "not out" on the tablet. | Report closed with the reason, and the photo if the truck took one. Nobody is sent. |
| Unknown | No GPS trace for that street (a dead zone), or the truck did not pass at all. | Goes to the dispatcher queue in the Kestrel planner. The dispatcher decides. |
| Not scheduled | The address is not on today's or yesterday's route for that container type. | Answered right away. Nothing goes to a driver. |
Flows
Each flow starts when the meldingen system sends a report to Kestrel. Step numbers are there so you can comment on the exact step that is wrong.
Genuine miss reported before 13:00
- The meldingen system sends the report to Kestrel: the address, the container type, the time it was reported and the report id.
- Kestrel matches the address to a stop on today's or yesterday's route for that container type.
- Kestrel checks the truck's GPS trace and lift events and classes the report as genuine.
- Kestrel inserts a return stop into the live route with the cheapest detour that still keeps within driver hours, truck capacity and the tipping site's opening hours.
- The driver sees the new stop on the cab tablet, marked as a return.
- Kestrel, after the lift event at that stop, tells the meldingen system the report is closed, with the time of collection.
Genuine miss reported after 13:00
- The meldingen system and Kestrel go through steps 1 to 3 of the first flow, and the report is classed as genuine.
- Kestrel puts the stop into tomorrow's plan as a priority stop, in the first 2 hours of the route.
- Kestrel, after the lift event at that stop, tells the meldingen system the report is closed, with the time of collection.
Bin not presented
- The meldingen system and Kestrel go through steps 1 to 3 of the first flow, and the report is classed as not presented.
- Kestrel closes the report in the meldingen system with the reason, and the photo if the truck took one. No driver is sent.
Unknown whether the bin was missed
- The meldingen system and Kestrel go through steps 1 to 3 of the first flow, and the report is classed as unknown.
- Kestrel puts the report in the dispatcher queue in the Kestrel planner. It does not send a truck on its own.
- The ReinNet dispatcher decides what happens to the report. Whether this stays with the dispatcher is open decision 2.
Address not on a route
- The meldingen system sends the report to Kestrel.
- Kestrel finds no stop for that address and container type on today's or yesterday's route.
- Kestrel answers the meldingen system right away with "not scheduled". Nothing goes to a driver.
Requirements per module
Each requirement describes something you can see happen. The ids R1 to R9 stay the same in every version of this spec.
Return stop planning
| Id | Requirement |
|---|---|
| R1 | A return stop is on the driver's tablet within 2 minutes of the report reaching Kestrel, for 95% of reports (p95), measured from report received to stop on the tablet. |
| R2 | A return stop never breaks driver hours: EU 561/2006 (a 45-minute break after 4.5 hours of driving) and ReinNet's own 9-hour shift. |
| R3 | A truck gets at most 6 return stops per afternoon. Kees: beyond that, drivers stop trusting the plan. |
| R4 | A full truck is never sent back. If the best truck is over 90% of its capacity_kg, Kestrel picks the next truck, or plans the stop for tomorrow. |
| R8 | The cut-off time for same-day returns, 13:00 in this spec, is set per municipality. |
Dispatcher in the Kestrel planner
| Id | Requirement |
|---|---|
| R6 | Reports classed as unknown go to the dispatcher queue in the planner, and the dispatcher decides. Kestrel sends no return trip for them on its own. |
| R9 | The dispatcher can undo a return stop up to the moment the driver starts driving towards it. |
Answers to the meldingen system
| Id | Requirement |
|---|---|
| R5 | A report classed as not presented is closed with the reason, plus the photo if the truck took one. Nobody is sent. |
| R7 | Every report gets an answer in the meldingen system, including the ones Kestrel does not act on. |
Integrations
| System | Direction | Trigger | Format |
|---|---|---|---|
| Meldingen system | In to Kestrel | A new missed-bin report | Webhook POST /v2/missed-collections, signed with HMAC-SHA256 like Kestrel's other webhooks, idempotent on report id |
| Meldingen system | Out from Kestrel | A report is closed or answered | PATCH callback to the meldingen system's URL, retried 5 times over 30 minutes |
| ReinNet fleet system | In to Kestrel | Trucks on the road | GPS traces and lift events, over the connection already used for planning |
| Truck cameras | In to Kestrel | A lift with a photo | Photos, only from the 9 of 14 Westerhaven trucks with cameras |
Fields in a report
| Field | Meaning |
|---|---|
| Address | The BAG id of the address |
| Container type | One of rest, gft, paper, pmd |
reported_at | When the resident made the report |
| Report id | The meldingen system's id; a report sent twice is handled once |
Data and privacy
- Kestrel receives only the address id, the container type and the report id. No resident name, phone number or email address.
- GPS traces are kept for 90 days, as they already are today. Lift photos are kept for 30 days.
Open decisions
These need an answer from Marloes and Kees. Comment on the decision itself, or reply with the number.
-
1. Who pays for the extra kilometres?
Return trips add an estimated 18 to 25 km per truck-day. The contract between Westerhaven and ReinNet says nothing about it.
Needed before the pilot starts on Mon 11 Jan 2027.
-
2. Who handles reports classed as unknown?
Either the ReinNet dispatcher gets them, as this spec has it now, or the resident gets "we'll come tomorrow" automatically.
Affects R6 and the flow for unknown reports.
-
3. 13:00 or 12:00 cut-off?
Kees thinks 12:00 is safer in winter, when it is dark by 17:00. The pilot starts in January.
Affects the cut-off value for Westerhaven under R8.
-
4. Does the call centre see the status too?
Kestrel answers the meldingen system. Does the call centre also want to see where a report stands, or is the meldingen system enough?
Affects who Kestrel reports back to under R7.