v464 — Fleet Map Route Overlay and Pickup/Delivery Proximity Foundation
Current baseline before build: v463.
Decision
Reviewed v463 Fleet Map marker polish and workspace active-load position confidence rules and proceeded with Fleet Map route overlay and pickup/delivery proximity foundation before connecting real GPS/ELD providers, changing payment collection, broker distribution limits, owned portal rules, or internal load-board access.
What changed
- Kept
/fleet-map as the dedicated CruiseMapper-style workspace truck tracking surface.
- Preserved the core visual rule: green truck markers are live driver-app GPS and blue truck markers are estimated route-progress positions.
- Added route overlay fields to the normalized Fleet Map snapshot:
- pickup point;
- current truck point;
- delivery point;
- route path;
- route progress label;
- route overlay summary;
- provider note explaining that Google Routes API is still planned, not connected.
- Added selected-truck route line rendering:
- Google Maps route polyline when
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY is configured;
- preview route polyline when no Google browser key is configured.
- Added pickup and delivery endpoint markers to the selected route overlay.
- Added pickup/delivery proximity rules:
- near pickup;
- en route;
- approaching delivery;
- near delivery.
- Added Fleet Map summary and filters for near-pickup and near-delivery trucks.
- Added selected-truck route overlay and pickup/delivery proximity panels.
- Added
.env.example display thresholds for near-pickup, approaching-delivery, and near-delivery mileage.
- Updated Fleet Map architecture documentation and HTML mirror.
Guardrails preserved
- No real GPS provider was connected.
- No ELD or telematics provider was connected.
- No Google Routes API call was activated.
- No Google Geocoding API call was activated.
- No payment collection changed.
- No broker distribution limits changed.
- No owned portal rules changed.
- No internal load-board access changed.
- Prisma schema was not changed.
Validation notes
npm run dispatchspot:preflight passed.
- Targeted TypeScript transpile parser check was attempted for changed Fleet Map files.
npm run build could not run in the sandbox because project dependencies are not installed.