Delphi job planning: fleet API and offline sync for field work
Extending established Delphi dispatch with REST connectivity to a fleet provider, local queues for connectivity gaps, and consistent job status—without replacing the desktop UI.
Delphi job planning: fleet API and offline sync for field work
Delphi development
The Challenge
Planning state and map teams drifted apart
Dispatch had run reliably in Delphi on office PCs for years. Field teams used smartphone maps with positions from an external fleet portal.
Without a proper interface this meant duplicate entry, estimated arrivals, and stale status in the planning screen.
Dispatch needs mileage and ETA from one source—not phone and map app.
Connectivity gaps and long days outdoors
Outside stable mobile coverage, sync must not block or lose data. Evening catch-up had to merge without corrupting orders.
Seasonal peaks with many parallel jobs stress queue and fleet API simultaneously.
Drivers run evening catch-up syncs—conflict rules must resolve office and field updates cleanly.
Target state: fleet actuals inside the Delphi shell
Office and field should share job status, mileage and arrival times—with an offline-capable queue and without replacing the trusted planning UI.
Dispatch should plan routes on actual data, not estimated phone calls.
Pilot region validates queue under real harvest and transport peaks.
Drivers confirmed in workshops that status text is understandable without UI change.
Dispatch needs warnings when queue is full before next-day route planning.
OpenAPI eases adjustments when fleet API updates without Delphi core changes.
Our Solution
REST adapter with a local queue
We wrapped the fleet API in a module with retries, timeouts, and structured errors. Each planning workstation keeps a local queue: updates enqueue and upload idempotently when online.
Delphi remains the source for jobs and priorities; map data is read-only and surfaced as clear status text.
Extension under our Delphi development service; integration patterns in the legacy modernisation blog category.
Phase 1: pilot region and queue validation
A pilot region tested sync under real connectivity gaps; SQLite queue and conflict rules were hardened against evening catch-up.
OpenAPI documentation eases adjustments when the fleet API changes.
Load tests simulated harvest peaks with parallel sync jobs per planning workstation.
Dispatch receives warnings when queue is full before next-day route planning.
Conflict rules and monitoring
Explicit rules decide whether office or last field update wins. Lightweight monitoring shows pending jobs and failed calls—support can intervene precisely.
Fleet API error codes appear as plain-language status in the planning screen.
Manual retry is possible without core database intervention.
When the queue is full, dispatch must see it—not only the next morning.
Results
Fewer calls, more reliable ETAs
Dispatch and field share mileage and arrival times without replacing the core system. Regional rollout validated queue behaviour.
Capacity and routes can be aligned on shared data; training stayed lean because the UI did not change.
ETA callbacks dropped measurably in the pilot region.
Support hotline sees queue status per planning workstation without remote intervention.
KPIs after pilot and rollout
ETA callbacks dropped measurably in the pilot region; pending sync jobs are monitored instead of chased by phone.
Dispatch uses mileage and ETAs from fleet API without duplicate entry in map apps.
Queue logic survived harvest peaks and evening catch-up in the pilot region.
OpenAPI eases adjustments when fleet API updates without Delphi core changes.
Short guides for new status fields reduced training effort because the planning UI stayed unchanged.
Load tests simulated harvest peaks with parallel sync jobs per workstation before broad rollout.
Delivery and support by Groenewold IT Solutions in Leer (East Frisia)—Delphi extension Made in Germany for agricultural contracting.
Fleet API and local queue
Idempotent transfer
Repeated sync attempts do not create duplicate bookings; each job carries a deduplication key.
TLS and token rotation
API credentials rotate without downtime; error codes appear as plain-language status in the shell.
Rollout and operations
Regional pilot
Lessons from the pilot region fed conflict rules and monitoring before wider rollout.
Support and intervention
Dashboard for pending and failed jobs; manual retry without touching the core database.
Features
Feature overview
- REST integration with TLS and token rotation
- Offline-capable sync queue with conflict handling
- Status feedback inside the Delphi shell
Common questions about Delphi dispatch, fleet API and offline sync
How does offline sync work in connectivity gaps?
A local queue on each planning workstation: updates enqueue and upload idempotently when online—without blocking the Delphi UI. Evening catch-up merges without data loss. We combine Delphi development with robust sync logic.
How is the fleet API connected?
REST adapter with retries, timeouts and structured errors; position and mileage data read-only in the planning screen. API token rotation and TLS are standard. See API integration and system integration.
How are data conflicts between office and field resolved?
Documented rules—e.g. office wins on job lines, last field update on actual times—visible to dispatch and support. Monitoring shows pending jobs and failed calls. Similar patterns in the field service portal case study.
How does rollout work from pilot region to production?
Phased delivery: pilot validates queue behaviour, then regional expansion without UI change. Training stays lean because the Delphi shell is unchanged. Planning aligns with legacy modernisation in live operations.
How are maintenance and further development secured?
Release notes per stage, monitoring dashboard and support from East Frisia. Fleet API changes are tracked with versioning. Long term: software maintenance and the Delphi cost calculator for budgeting.
Project Details
Context
Agricultural contracting business (Northern Germany)
Completed
Phased rollout with a pilot region
Technologies
More References
Planning a similar project?
Use our interactive cost calculators for an initial estimate – free and non-binding. Or schedule a consultation directly with our experts.