The route optimization section of the AI Operations dashboard covers three related capabilities: a live GPS map showing where every tracked vehicle is right now, an AI/ML engine that recommends vehicle and route assignments for unassigned shipments, and a rerouting table that factors in real-time traffic and weather to suggest faster paths for in-progress shipments. All three sections refresh together when you click Refresh.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/fatelessdev/translogiX/llms.txt
Use this file to discover all available pages before exploring further.
Live GPS tracking
The GPS tracking panel renders a Google Maps instance populated with markers for every shipment that has a known latitude and longitude. Each marker is labeled with the last two characters of the package code, so you can identify shipments at a glance even when markers are close together. Clicking a marker shows a tooltip with the full package code and vehicle number. Below the map, a card grid lists each tracked shipment with:- Package code and current status
- Vehicle number and location name
- Latitude and longitude (four decimal places)
When Google Maps is not configured
The map panel requires theNEXT_PUBLIC_GOOGLE_MAPS_API_KEY environment variable to be set. If the key is absent, the map panel is replaced by a notice:
Set
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY in your deployment environment and redeploy to enable the map. The integration badge on the overview page will change from outlined to filled once the key is detected.AI/ML route optimization
The optimization panel appears alongside the GPS map and targets shipments in CREATED status that have not yet been assigned a vehicle or route. For each unassigned shipment, the engine produces a single recommendation card showing:- Package code — the shipment being evaluated
- Recommended vehicle — the vehicle number the model suggests
- Recommended route — the route name the model suggests
- Confidence percentage — how well the recommendation fits the current fleet and route state (displayed as
X% fit) - Reasoning — a plain-language explanation of why this vehicle and route were selected
Applying a recommendation
Review the suggestion
Read the recommended vehicle, route, confidence score, and reasoning for the shipment card.
Click Assign
Press the Assign button on the card. The button is disabled if no vehicle ID could be resolved.
POST /api/operations-intelligence/actions with action: "assign", the shipmentId, the resolved vehicleId, and the resolved routeId. This sets the vehicle and route on the shipment record directly.
Traffic, road, and weather rerouting
The rerouting table lists every active shipment for which the system has computed an alternative route. The table has five columns:| Column | Description |
|---|---|
| Package | The package code of the shipment |
| Recommended Route | The suggested route name, with the current route shown below it in muted text |
| Conditions | Badges summarizing the traffic and weather state used to compute the recommendation |
| ETA | Predicted travel time on the recommended route, in hours |
| Impact | Time savings and reasoning, plus the Apply Route button |
Condition badges
Each row in the Conditions column carries up to five badges:- Traffic level — e.g.
Low,Moderate,High - Weather condition — e.g.
Clear,Rain,Fog - Distance — route length in kilometers (e.g.
340 km) - Traffic source —
Googlewhen data comes from the Google Routes API, orEstimatedwhen computed internally - Weather source —
Livewhen data comes from OpenWeather, orEstimatedwhen computed internally
Applying a reroute
Identify a row with time savings
The Impact column shows
Xh saved when the recommended route is faster than the current one. Rows that show Keep route have zero or negative savings — their Apply Route button is disabled.Click Apply Route
Press Apply Route in the Impact column. The button is disabled if no route ID could be resolved or if
savedHours is zero or negative.POST /api/operations-intelligence/actions with action: "reroute", the shipmentId, and the resolved routeId.