Overview
PTA (Predicted Time Available) (/fleet/pta) provides a visual timeline for tracking driver availability, scheduled loads, and predicted availability windows.
Key Features
- Weekly Timeline Grid - Visual calendar showing driver availability across 7 days
- Load Blocks - Active and scheduled loads displayed as timeline blocks
- PTA Markers - Automatic calculation of availability (2 hours after delivery)
- Dispatcher Grouping - Drivers grouped by assigned dispatcher
- Movement Details - Click loads to view route maps and stop details
- Anomaly Detection - Highlights data issues like overlapping movements
API Endpoints
REST Endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /api/movements?limit=500 | Fetch all movements for timeline display |
GET | /api/drivers/current | Fetch driver data for timeline rows |
GET | /api/drivers/profiles | Fetch driver profiles (dispatcher assignments) |
All endpoints are prefixed with the Tracking Backend URL (
NEXT_PUBLIC_TRACKING_BACKEND_URL).Files
Pages
Pages
pages/fleet/pta.tsx- PTA page
Components
Components
components/PredictedTimeAvailable.tsx- Main PTA timeline componentcomponents/MovementCardMap.tsx- Movement route map popup
Hooks
Hooks
components/hooks/useDriverManagement.ts- Driver data for timelinecomponents/hooks/useUnifiedFleetData.ts- Vehicle/trailer associations
Types
Types
types/tracking.ts- Movement and MovementStop typestypes/movement.ts- Movement interface definitions
PTA Logic
The PTA (Predicted Time Available) is automatically calculated as 2 hours after the scheduled drop-off time of a driver’s last movement.Full documentation with component details, props, and usage examples coming soon.

