Skip to main content

Trip Management

Contents

Trimble’s licensed Trip Management API creates a safe, legal, and efficient route from your stop locations and sends it to CoPilot for navigation. The driver can then accept the trip in CoPilot instead of manually entering it on the device.

Trip Management pulls customer and load information from your fleet’s transportation management (TMS) or dispatch system, enabling you to plan trips with:

  • Stops given as addresses or latitude/longitude coordinates
  • A Vehicle Routing Profile that includes vehicle dimensions, vehicle type, routing type, and trip options such as hazmat, avoid tolls and elevation
  • (Optional) Appointment windows, stop durations, and Hours of Service (HOS) required rest stops

This guide describes how to create trips in Trip Management and send them to CoPilot. Contact us if you are interested in setting up Trip Management for your CoPilot deployment. Learn more about the Trip Management service.

Prerequisites

To use the service you must have:

  • A PC*Miler Web Services API key licensed for Trip Management
  • CoPilot licensing that includes a Trip Management add-on
  • CoPilot devices configured to allow a Trip Management trip. (This configuration will be added at the time that you license the Trip Management add-on for CoPilot.)

Trip Management setup

Plan the trip with POST /trip endpoint in Trip Management. CoPilot picks it up only after the trip is stored and assigned to the same Asset ID the device uses. Asset ID (often called Username or Vehicle ID) is the unique ID used to identify an asset licensed to run CoPilot.

Trip Management workflow

Step What to set
1. Authenticate Send the API key in the Authorization header.
2. Call Plan Trip POST https://tripmanagement.trimblemaps.com/api/trip with a JSON body.
3. Keep the trip Leave storeTrip at its default, true. The response alkTripId is the ID for later get, modify, cancel, and status calls.
4. Name the driver Set tspDriverId to the exact Asset ID (Username) configured on the CoPilot device. A trip with no driver ID stays Planned and is not dispatched.
5. Add the stops Send two or more stops. Each location needs coordinates, an address, or both. Latitude and longitude are strings with at least six decimal places.
6. Set the clock and the truck plannedStartTime is ISO-8601 and feeds the ETA. Put vehicle size, traffic, tolls, borders, and Hours of Service under routingProfile and driverHoursOfService.

What the service does after the call

Routing profile

The Trip Management service calculates the planned route, including ETAs, distance, duration, tolls, and any inserted rest stops. It sends this information to CoPilot along with the vehicle routing profile.

  • If the profile name matches a profile stored on the device, the device uses that profile.
  • If a valid profile that is not stored on the device is sent, the device uses it.
  • If an unusable profile is sent, CoPilot prompts the driver to select a profile from the device.

Route path calculation

After the routing profile is selected, CoPilot calculates the route path the driver follows.

  1. The device downloads the stops and routing profile from the Trip Management server.
  2. After the driver accepts the trip, CoPilot calculates the guidance path on the device. This ensures that the route uses the map data version installed on the device.

Status updates

The Trip Management service tracks the status of a trip. Creating a trip with an Asset ID, while the CoPilot connection is enabled, moves the trip’s status to Dispatched.

Status Code When it is set
Planned 0 Plan Trip succeeded and the trip is not yet dispatched.
Dispatched 1 The trip has a tspDriverId and the CoPilot connection is enabled.
ReceivedByClient 7 The driver accepts the new-trip popup in CoPilot.
InProgress 2 The origin is completed, stop status is updated, or the first GPS position arrives.
Completed 3 The last stop is completed, or Update Trip Status sets it.
Canceled 4 Update Trip Status. The trip leaves the active set and can no longer be modified.
Declined 5 Update Trip Status, including a decline sent from CoPilot.
Deleted 6 The trip was deleted.

Trip Viewer

The service also returns a url field that opens a Trip Viewer in your web browser that updates as the trip progresses.

Basic trip request

Use the Trip Management POST /trip endpoint to plan a trip. The JSON below shows the minimum recommended request body for creating a trip.

Sample Request

{
  "storeTrip": true,
  "name": "Load 1842",
  "tmsTripId": "1842",
  "tspDriverId": "driver.sso.username",
  "plannedStartTime": "2026-12-01T08:00:00-05:00",
  "region": "NA",
  "stops": [
    {
      "stopType": "Origin",
      "plannedDuration": 15,
      "location": {
        "label": "Yard",
        "address": {
          "streetAddress": "1 Independence Way",
          "city": "Princeton",
          "state": "NJ",
          "zip": "08540"
        },
        "coords": { "lat": "40.361431", "lon": "-74.599475" }
      }
    },
    {
      "stopType": "Destination",
      "earliestArrivalTime": "2026-12-01T13:00:00-05:00",
      "latestArrivalTime": "2026-12-01T15:00:00-05:00",
      "atRiskThreshold": 20,
      "location": {
        "label": "Customer",
        "coords": { "lat": "40.713713", "lon": "-74.005576" }
      }
    }
  ],
  "routingProfile": {
    "routingType": "Practical",
    "vehicleType": "Truck",
    "truckDimensions": "SemiTrailer48"
  }
}

Sample Response

{
    "accountName": "CoPilot Demo",
    "tripStatus": "Planned",
    "modifiedOn": "2026-12-01T15:47:40+00:00",
    "tripDistance": 58.642,
    "tripDriveDuration": 103.933,
    "tripDuration": 118.933,
    "hoursOfServiceRemaining": null,
    "url": "https://tripmanagement.alk.com/trip-viewer/token/<TRIP_VIEWER_TOKEN>/details/337503572?region=NA",
    "tripCost": 119.27,
    "tripTolls": 0.0,
    "actualTripTolls": null,
    "warningMessage": "",
    "planned": {
        "tripDuration": 118.933,
        "tripCost": 119.27,
        "tripDistance": 58.642
    },
    "remainingLegDistance": 0.0,
    "remainingLegDriveDuration": 0.0,
    "tmsTripId": "1842",
    "name": "Load 1842",
    "stops": [
        {
            "plannedETA": "2026-12-01T08:00:00-05:00",
            "currentETA": "2026-12-01T08:00:00-05:00",
            "currentETD": "2026-12-01T08:15:00-05:00",
            "earliestArrivalTime": null,
            "latestArrivalTime": null,
            "plannedDuration": 15.0,
            "actualDuration": 0.0,
            "plannedDepartureTime": "2026-12-01T08:15:00-05:00",
            "stopStatus": "Open",
            "stopArrivalStatus": "OnTime",
            "atRiskThreshold": 15,
            "tooEarlyThreshold": null,
            "legDistance": 0.0,
            "legDriveDuration": 0.0,
            "metadata": null,
            "amenities": null,
            "truckServices": false,
            "alternateRestStops": null,
            "poiId": 0,
            "setId": 0,
            "persistentId": 0,
            "activeDriver": 1,
            "stopId": 3756830183,
            "slackTime": null,
            "location": {
                "address": {
                    "streetAddress": "1 Independence Way",
                    "city": "Princeton",
                    "state": "NJ",
                    "zip": "08540",
                    "county": "Mercer",
                    "country": "United States"
                },
                "coords": {
                    "lat": "40.361431",
                    "lon": "-74.599475"
                },
                "label": "Yard"
            },
            "waypoint": false,
            "stopSequence": 0,
            "stopType": "Origin"
        },
        {
            "plannedETA": "2026-12-01T09:58:00-05:00",
            "currentETA": "2026-12-01T09:58:00-05:00",
            "currentETD": "2026-12-01T09:58:00-05:00",
            "earliestArrivalTime": "2026-12-01T13:00:00-05:00",
            "latestArrivalTime": "2026-12-01T15:00:00-05:00",
            "plannedDuration": 0.0,
            "actualDuration": 0.0,
            "plannedDepartureTime": "2026-12-01T09:58:00-05:00",
            "stopStatus": "Open",
            "stopArrivalStatus": "Early",
            "atRiskThreshold": 20,
            "tooEarlyThreshold": null,
            "legDistance": 58.642,
            "legDriveDuration": 103.933,
            "metadata": null,
            "amenities": null,
            "truckServices": false,
            "alternateRestStops": null,
            "poiId": 0,
            "setId": 0,
            "persistentId": 0,
            "activeDriver": 1,
            "stopId": 3756830184,
            "slackTime": null,
            "location": {
                "address": {
                    "streetAddress": "52 Chambers Street",
                    "city": "New York",
                    "state": "NY",
                    "zip": "10007",
                    "county": "New York",
                    "country": "United States"
                },
                "coords": {
                    "lat": "40.713713",
                    "lon": "-74.005576"
                },
                "label": "Customer"
            },
            "waypoint": false,
            "stopSequence": 1,
            "stopType": "Destination"
        }
    ],
    "routingProfile": {
        "routingProfileId": 0,
        "vehicleType": "Truck",
        "tollRoadType": "Use",
        "truckDimensions": "SemiTrailer48",
        "maxHeight": 0.0,
        "maxWidth": 0.0,
        "totalLength": 0.0,
        "totalWeight": 0.0,
        "maxWeightPerAxleGroup": null,
        "totalWeightPerAxle": 0.0,
        "maxStraightLength": null,
        "bumperToBumperLength": null,
        "congestionZone": 0,
        "environmentalZone": 0,
        "ultraLowEmissionZone": null,
        "hazmatType": "None",
        "hazardClass": null,
        "bulkTransport": null,
        "trailerConfig": null,
        "tunnelRestriction": null,
        "displayRestrictions": "BasedOnTruckRestrictions",
        "nationalNetwork": true,
        "fiftyThreeFootTrailer": true,
        "overrideRestrictions": false,
        "propane": false,
        "ferryClosed": false,
        "vehicleGroups": [],
        "revision": "December 2026",
        "statusDeleted": false,
        "unitsOfMeasure": "English",
        "numAxles": 5,
        "lcv": false,
        "distanceUnits": "Miles",
        "tollDiscouraged": false,
        "classOverrides": "None",
        "highwayOnly": false,
        "includeFerryDistance": false,
        "tollCurrency": 0,
        "exchangeRate": null,
        "fuelUnits": "Gallons",
        "costGHG": "1.0",
        "costPerFuelUnit": "1.0",
        "fuelEconomyLoad": "1.0",
        "fuelEconomyEmpty": "1.0",
        "costMaintLoad": "1.0",
        "costMaintEmpty": "1.0",
        "costTimeLoad": "1.0",
        "costTimeEmpty": "1.0",
        "dataVersion": "",
        "hubRouting": false,
        "tollDiscountPlans": null,
        "includeTollData": false,
        "default": false,
        "roadPreferencesFreewaysAFType": null,
        "roadPreferencesFreewaysSpeed": null,
        "roadPreferencesDividedHighwaysAFType": null,
        "roadPreferencesDividedHighwaysSpeed": null,
        "roadPreferencesPrimaryRoadsAFType": null,
        "roadPreferencesPrimaryRoadsSpeed": null,
        "roadPreferencesSecondaryRoadsAFType": null,
        "roadPreferencesSecondaryRoadsSpeed": null,
        "roadPreferencesLocalStreetsAFType": null,
        "roadPreferencesLocalStreetsSpeed": null,
        "isFerryDiscouraged": false,
        "elevationLimit": null,
        "governorSpeedLimit": null,
        "sideOfStreetAdherence": "Off",
        "useAvoidFavors": false,
        "useTraffic": false,
        "useSites": null,
        "name": "",
        "routingType": "Practical",
        "bordersOpen": true,
        "euProfile": {
            "hasTrailer": null,
            "isHybrid": null,
            "minPoll": null,
            "refrigerated": null,
            "trailerType": null,
            "emiType": null,
            "fuelType": null,
            "trailerCount": null,
            "trailerMaxAxles": null,
            "trailerMaxHt": null,
            "trailerMaxWt": null,
            "fuelConsumption": null,
            "co2Class": null
        }
    },
    "tspDriverId": "driver.sso.username",
    "tspDriverId2": null,
    "vehicle": null,
    "plannedStartTime": "2026-12-01T08:00:00-05:00",
    "plannedStartLocation": {
        "address": {
            "streetAddress": "1 Independence Way",
            "city": "Princeton",
            "state": "NJ",
            "zip": "08540",
            "county": "Mercer",
            "country": "United States"
        },
        "coords": {
            "lat": "40.3573",
            "lon": "-74.6672"
        },
        "label": "Yard"
    },
    "allowDriverToDeclineTrip": true,
    "oocThreshold": 0.0,
    "hosSolution": "None",
    "sendOptions": {
        "adherenceLevel": "None",
        "offRouteThreshold": 2.0,
        "originThreshold": 1.0
    },
    "driverHoursOfService": null,
    "storeTrip": true,
    "afSetIds": null,
    "afSetNames": null,
    "costPerMile": null,
    "tripOptions": [],
    "region": "NA",
    "externalOrderIds": [],
    "alkTripId": 337503572
}

CoPilot setup

When you are licensed to use Trip Management with CoPilot, the following configuration setting will be remotely added to your devices.

[TripManagement]
"BackOfficeTripIntegrationEnabled"=1

This setting ensures CoPilot downloads the latest planned trip for its driver ID, shows the driver an accept dialog, and then navigates that route.

Configure the device

Check Setting Required value
Sign-in Account Management login that matches the tspDriverId passed in the Trip Management request. The Username and Company ID. Plan Trip must use that same Username as the tspDriverId or the device will not see the trip.
Back-office intake TripManagement / BackOfficeTripIntegrationEnabled True. The default is false. This is the configuration setting mentioned above. 1 (True) / 0 (False)
Network Live data connection Required. CoPilot does not send or receive the Trip Management trip while offline.

What the driver does

Receive the trip

Drivers can still create trips on the device, but a Trip Management trip replaces any locally built trip once a driver accepts it. While that dispatched trip is active, some stop edits are disabled so the back office (Trip Management) remains the source of truth for the stop list.

Driver workflow

  1. Trip Management sends the planned trip to the driver’s device.

  2. If the driver has a locally built trip open, CoPilot displays a pop-up message: “New dispatched route is now active.” The driver can Accept or Postpone the trip. If no local trip is open, CoPilot offers only Accept.

    Accept trip button

  3. When the driver accepts, CoPilot opens Trip Preview, where they can review the trip before navigating. CoPilot integrates the route, and the trip status changes to ReceivedByClient.

  4. If the driver selects Postpone, CoPilot closes the dialog and leaves the trip status as Dispatched. The driver’s current route remains unchanged, and the trip can be sent again later.

  5. Some integrations may allow the driver to decline the trip, and its status is sent back as Declined. A change to a trip the driver has already accepted does not offer a decline option, keeping the device aligned with the server.

  6. The trip status changes to InProgress when the driver starts guidance, completes the origin, or CoPilot sends the first GPS report.

Confirm the trip was received

You should see If it is missing
Plan Trip returns alkTripId and tripStatus Planned, then Dispatched once the driver ID and connection are in place. storeTrip was false, or tspDriverId was omitted.
The signed-in device shows the new-trip dialog for that load. Driver ID mismatch or BackOfficeTripIntegrationEnabled is false.
After Accept, status is ReceivedByClient. After the driver starts, status is InProgress. The driver chose Postpone, or the device has not yet sent GPS or stop status.

Trip updates

Once a trip has been accepted, it can be modified or recalculated:

  • Modify Trip (PUT /trip/modify) replaces the stored trip. tripId and the full stops list are required. While a trip is InProgress, only stops that are not yet completed can change. A Completed or Canceled trip cannot be modified. Changing tspDriverId assigns the trip to a different asset.

  • Recalculate Trip (PUT /trip/recalculate) is for a new ETA from the truck’s current position, after an arrival or departure, or after an out-of-corridor event. A stop edit already recalculates on its own.

On the device, a modify for the active trip sends a modified trip notification. CoPilot downloads the latest trip and replaces the route, and the driver is not offered the option to decline.

For a pre-built trip dispatch solution, use CoPilot Link, an add-on for PC*Miler Web. It sends PC*Miler Web routes directly to a mobile device with an active CoPilot license. Learn more about CoPilot Link.

Last updated December 3, 2026.
CoPilot Version:

Contents