TrustColdDevelopers
Trips›Tracking

Tracking

Movement while the truck is on the road. Status text on the partner screen belongs on Live status.

Run this from your browser — add your free test keys.
curl https://trustcoldeg.com/api/v1/b2b/trips/10025/tracking \
  -H "Authorization: Bearer CLIENT_KEY" \
  -H "Accept: application/json"
Response 200 · Abridged: route details are trimmed
{
  "data": {
    "trip": {
      "id": 10025,
      "code": "TRUST10025",
      "status": "en_route",
      "from": "القاهرة / مدينة نصر",
      "to": "الإسكندرية / سموحة",
      "from_lat": 30.0561, "from_lng": 31.3301,
      "to_lat": 31.2156, "to_lng": 29.9553,
      "vehicle_plate": "ABC 1234",
      "driver_name": "Mahmoud A.",
      "client_name": "Example Trading Co."
    },
    "latest": {
      "lat": 30.4821,
      "lng": 31.0914,
      "speed_kmh": 72.0,
      "heading": 318.0,
      "at": "2026-12-20T11:42:10+02:00"
    },
    "vehicle_status": "moving",
    "eta": { "distance_km": 120.4, "eta_minutes": 95, "eta_label": "…" },
    "route": [ { "lat": 30.0561, "lng": 31.3301, "speed_kmh": 0.0, "heading": null, "at": "2026-12-20T08:01:00+02:00" } ],
    "planned_route": [ { "lat": 30.0561, "lng": 31.3301 } ],
    "stops": [], "stop_points": [], "waypoints": [],
    "route_summary": { "distance_km": 84.2, "distance_source": "odometer", "gps_distance_km": 83.9 }
  }
}
FieldDescription
tripId, code, status, places, vehicle_plate and driver_name (both null until assigned), client_name
latestLast GPS point, or null before the trip starts
vehicle_statusmoving, idle or offline
etaDistance and minutes left, or null
route / planned_routePoints driven so far / planned road line
route_summarydistance_km and where it came from (odometer or gps)
stops, stop_points, waypoints, route_segments, route_gapsMap detail. You can ignore them if you do not draw a map
Response 404 · Trip belongs to another client
{
  "message": "Not Found."
}

Key points

  • This endpoint — Position / movement payload for a map you already own — not required on the booking form.
  • Customer link — tracking_url on the trip object is the public page.
  • Partner badge — Poll Live status and patch the badge. Do not reload the page.

Movement status while the trip is on the road. tracking_url on the trip is the public customer link. For status text on the partner screen, poll Live status — do not reload the page.