Pipeline Punks // Field Report 01 // November 22, 2026
Truck GPS breadcrumbs to visit proof
A one-day proof that turns a plain GPS breadcrumb export into timed site visits and invoice lines, and what one day of real telematics data broke.
Mission
Turn a plain GPS breadcrumb export into timed site visits and billable lines, in one day.
Bigger plow fleets already track their trucks, but the field-service app can't use that GPS. A software team said so in a public post. When a driver's phone location is off, there is no proof the lot was plowed, and the visit never reaches the accounting file.
Terrain
The full job is days of work. It means live pulls from Samsara, Verizon Connect and Geotab, plus QuickBooks Desktop and Sage export, and it needs vendor accounts. So the proof skips the live pull and starts from a file any of those systems can export.
What was built
One Python file with no installs. It takes a breadcrumb export and a site list and writes a visit log and invoice lines. It uses only the truck's GPS, so the driver's phone can be off.
- Reads a breadcrumb CSV with truck, time, latitude and longitude.
- Reads a site list with each site's center point and a radius in metres.
- Matches each point to the nearest site whose circle contains it.
- Groups the points inside a fence into one visit with an arrival and a departure. A gap over 35 minutes splits a visit. Stays under 3 minutes are dropped as drive-bys.
- Writes the visit log, and one invoice line per visit with hours rounded up to 15-minute blocks.
It ships with made-up sample data (2 trucks, 4 sites, 197 points) and 8 tests.
What broke
The first build split a visit after 15 minutes without a point. That passed every test on the sample data and fell short on real data.
I ran it on one day of Motive breadcrumbs from a 13-truck fleet. That was 14,396 points, checked against the 84 stops in Motive's own driving records. Trucks and sites were relabelled and the coordinates shifted first, and none of that data is in the repo.
| Measure | 15 minute gap | 35 minute gap |
|---|---|---|
| Stops matched on truck, site and arrival | 50 of 84 | 65 of 84 |
| Stops inside one longer visit at the same site | 24 | 17 |
| Stops not covered | 10 | 2 |
| Arrival difference on matches (median) | 0.9 min | 0.9 min |
Parked gateways in this fleet reported about every 30 minutes, so a truck sitting at a site looked like it had left. Raising the limit to 35 minutes covered 82 of 84 stops, and 35 is now the default.
The 17 stops inside a longer visit are trucks moving around inside one fence, like a yard. The tool counts that as one visit.
What to steal
- Find out how often a parked truck reports before you pick a gap. The number that works on sample data is a guess until real data checks it.
- Check your result against a second method. Here that was the telematics system's own driving records.
- Clean real data before you test with it, and keep it out of the repo. Relabel the trucks and sites, and shift every longitude by the same amount so the distances stay the same.
One caution on this test. The site list came from the same driving-record stops, grouped within 150 metres. So it shows the two methods agree on timing, and it says nothing about finding sites from scratch.
Limits
| Limit | What it means in practice |
|---|---|
| CSV input only | Export the breadcrumbs from the telematics system first. There is no live API pull. |
| Circular fences only | A long or odd-shaped lot needs a radius that covers it. |
| Generic invoice CSV | It is not IIF or QBXML. Columns may need renaming for your accounting package. |
| No rates | Quantity is hours. The price comes from the item list in the accounting package. |
| Stay length | On the real-data run, 12 of 63 matched stays were off by more than 10 minutes. |
| One real-data test | One fleet, one day, one telematics vendor (Motive). |
Try it
The tool is free under the MIT license at github.com/Jjohnston70/plow-proof-gps-visits. Download it and run this on the sample data.
python3 plowproof.py --breadcrumbs samples/breadcrumbs.csv --sites samples/sites.csv --out out
That writes out/visits.csv and out/invoice_lines.csv. Swap in your own breadcrumb export and site list to try it on your trucks.
Questions go to Jacob Johnston at jacob@truenorthstrategyops.com.