Plan Trip
Contents
The Plan Trip API creates an optimized route for your stop locations. It allows you to plan trips by providing the following:
- 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
- Driver Hours of Service (HOS) with values for each of the HOS clocks, an HOS rule type and custom break durations.
The generated trip will have the following details:
- Trip distance
- Trip duration
- Trip costs
- Trip tolls
- HOS remaining hours
- Inserted HOS rest stops
- Arrival and Departure time at every stop
- Leg distance and duration for every stop
POST /trip
Resource URL
https://tripmanagement.trimblemaps.com/api/trip
Request Fields
Trip Identifiers
Field | Description | Type | Required |
---|---|---|---|
storeTrip
| If false, an alkTripId for the trip will not be generated and the trip details will not be stored by Trimble for future manipulations.
|
boolean | No, default is True
|
tmsId
| Indicates which TMS type that the trip will use. This value can only be set in PlanTrip and is not nullable. Please pass with a value or omit the field.
|
Enum | No, not nullable |
tspId
| Telematics Solutions or MobilComm Provider ID provided by Trimble Maps. |
string | No |
tmsTripId
| The trip ID (Load ID or Order number) in the TMS system. |
string | No |
tmsCustomerId
| The customer or company ID in the TMS system - client who purchased the Trip Management Solution. |
string | No |
tmsUserId
| The user ID in the TMS system. |
string | No |
name
| A display name for this trip that can be used when trip information is shared or displayed. |
string | No |
hosSolution
| Indicates whether or not to insert rest stops along the route
|
Enum | No, default is 0
|
plannedStartTime
| The planned start date and time of the trip at the planned start location. The value must be in ISO-8601 format. This time is important in order for ETA calculations to take into account the impact of historical traffic patterns along the route. |
String | No, default is “now”. |
plannedStartLocation
| The planned starting location in latitude > longitude. The default start location of the trip is the first stop specified. If the user wants to have a dedicated start location, it can be set with this parameter. An example for a start location could be the current location of a truck when accepting a job. In that case, the truck has to drive from the current location ( |
Coords object | No, default is the location of the first stop |
plannedStartLocation > coords > lat
| The latitude of the planned start location. Minimum 4 decimal digits required. Desired 6 decimal digits. |
string | No |
plannedStartLocation > coords > lon
| The longitude of the planned start location. Minimum 4 decimal digits required. Desired 6 decimal digits. |
string | No |
region
| Indicates which region to be set for the trip. Must be set unless using the default region, North America (NA).
|
Enum | No. Default is 4 or NA
|
Stop Locations
Field | Description | Type | Required |
---|---|---|---|
stops
| The stop array specifies an array of stops for the route that will be generated. Multiple values (below) can be set for each stop. |
Array <Stop> | Yes |
stops > stopType
| The type of stop. Options are: Origin, Work, Waypoint, FuelStop, Destination, Delivery, Pickup, Break, RestStopShort, RestStopLong, RestStopCycleReset, RestStopFullDay, RestStopDriverSwitch, RestStopShortSplittable (EU ONLY), and RestStopLongSplittable (EU ONLY). |
string | No. Default is Work
|
stops > location
| Each stop array must have either a coords object or address object for location. |
Location object | Yes |
stops > location > address
| An address object representing the street address, city, state, and postal code of a stop. |
Address object | Yes, if coords object is not supplied. |
stops > location > address > streetAddress
| The street address of this trip stop. |
string | Yes, if coords object is not supplied. |
stops > location > address > city
| The city of this trip stop. |
string | Yes, if coords object is not supplied and if zip is not provided in the address object. |
stops > location > address > state
| The state of this trip stop. |
string | Yes, if coords object is not supplied. |
stops > location > address > zip
| The zip > postal code of this trip stop. |
string | Yes, if coords object is not supplied and if city is not provided in the address object. |
stops > location > address > county
| The county where this trip stop is located. |
string | No |
stops > location > coords
| Contains the latitude and longitude of the stop. |
Coords object | Yes, if address object is not supplied. |
stops > location > coords > lat
| The latitude of the stop. Minimum 4 decimal digits required. Desired 6 decimal digits. |
string | Yes, if address object is not supplied. |
stops > location > coords > lon
| The longitude of the stop.Minimum 4 decimal digits required. Desired 6 decimal digits. |
string | Yes, if address object is not supplied. |
stops > location > label
| A display name for this trip stop. |
string | No |
stops > earliestArrivalTime
| The start of the arrival time window at the stop. The value must be in ISO-8601 format. During the trip, this time is monitored and a notification is provided if the calculated arrival time is earlier than the defined time. |
string | No |
stops > latestArrivalTime
| The end of the arrival time window at the stop. The value must be in ISO-8601 format. During the trip, this time is monitored and a notification is provided if the calculated arrival time is later than the defined time. |
string | No |
stops > plannedDuration
| The time planned to be at the stop location in minutes. Typically also defined as “dwell time.” Dwell times impact the ETAs. |
double | No |
stops > atRiskThreshold
| Threshold can be set in minutes and is monitored during execution. If the calculated ETA is within the defined time window but falls into the threshold, an “At Risk” notification is triggered. For example, if set to 20 minutes, and the delivery window is from 1pm-3pm, the stop is At Risk if the ETA is anywhere between 2:40pm and 3:00pm. The stop is On Time if ETA is prior to 2:40pm, and Late if ETA is after 3:00pm. |
integer | No, default is 15
|
stops > tooEarlyThreshold
| Threshold can be set in minutes and is monitored during execution. If the calculated ETA falls into the threshold before the earliestArrivalTime , a “Too Early” notification is triggered. For example, if set to 20 minutes, and the delivery window is from 1pm-3pm, the stop is “Too Early” if the ETA is anytime before 12:40pm.
|
integer | No, default is 15
|
stops > metadata
| Notes that can be stored with the stop. These will not be delivered to the driver. |
string | No |
Vehicle, Driver and Load Details
Field | Description | Type | Required |
---|---|---|---|
vehicle
| The vehicle object contains information about the vehicle. |
Vehicle object | No |
vehicle > tspVehicleId
| The ID for the vehicle assigned to the trip in the telematics providers system. Not actively used within Trip Management API. |
string | No |
vehicle > isHighValue
| Vehicle is carrying a high value load. For informational purposes only. Does not impact route calculation. |
boolean | No, default is False
|
tspDriverId
| The fleetwide unique identifier of the driver, vehicle or asset. This field is required when assigning trips to a specific device, driver or vehicle. |
string | No |
externalOrderIds
| An array of external Order IDs associated with the trip. Max Array Length is 30 and Max Length of each Order ID is 50 characters. Sample: “externalOrderIds”:[“Order1”,“Order2”,“Order3”]. Not actively used within Trip Management API. |
Array <string> | No |
oocDistanceThreshold
| The threshold distance at which an Out of Corridor event notification will be triggered. The distance unit is Miles and the value should be greater than 0. |
decimal | No |
Hours of Service - Fields for All Regions
Hours of Service (HOS) legislation regulates how long a driver is allowed to drive and how often and for how long they need to break. The use of HOS logic is optional and can be configured using the parameters below. If HOS is selected, the Trip Management API inserts the appropriate (legally required) break times into a trip and finds a suitable location at the time the break needs to be taken.
Each HOS rule set (NA, Canada, Europe) has its own distinct rules which differ significantly. HOS breaks can extend the duration of a trip significantly, but as they are legally required, they need to be factored into the ETA.
The various parameters (e.g. daily drive time, on-duty time, etc.) work with standard values but the controlling application can overwrite those, for example, if live data from an ELD (in Europe “Digital Tachograph") is used.
Field | Description | Type | Required | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
driverHoursOfService
| The hours of service parameters, if using the Trimble Maps HOS solution. |
driverHoursOfService object | No | ||||||||||||
driverHoursOfService > Enabled
| If false, HOS rest stops will not be inserted in route. |
boolean | No. Default is True
| ||||||||||||
driverHoursOfService > hosRuleType
| Indicates which hours of service rule type to follow
|
Enum | Yes, if hosSolution=2
| ||||||||||||
driverHoursOfService > AlternateHoSRuleType
| Indicates an alternate hours of service rule type to follow whe making cross border moves between Canada and the United States.
|
Enum | No. Default is null | ||||||||||||
driverHoursOfService > UseCustomPlaces
| If true, custom locations will be used where possible for HOS rest break. |
boolean | No. Default is False
| ||||||||||||
driverHoursOfService > CustomBreakDurations
| Longer custom durations for rest stops will be used instead of mandated minimum durations by default. |
object | No | ||||||||||||
driverHoursOfService > CustomBreakDurations > ShortBreakDuration
| Custom duration in seconds for short rest break instead of mandated minimum 30 minutes. |
double | No | ||||||||||||
driverHoursOfService > CustomBreakDurations > EndOfDutyBreakDuration
| Custom duration in seconds for end of duty break instead of mandated minimum 10 hours. |
double | No | ||||||||||||
driverHoursOfService > CustomBreakDurations > CycleResetBreakDuration
| Custom duration in seconds for cycle reset instead of mandated minimum 34 hours (US) and 36 hours (Canada). |
double | No | ||||||||||||
driverHoursOfService > CustomBreakDurations > BorderCrossingWaitDuration
| Custom duration in seconds for border crossing instead of default minimum of 1 hour. |
double | No | ||||||||||||
driverHoursOfService > MaxAlternateRestStops
| The maximum number of alternate rest stops that will be returned in the Hours of Service report. |
integer | No, default is 0 .
| ||||||||||||
driverHoursOfService > CurrentOffDutyTime
| The amount of off-duty time the driver has already accumulated at the time the trip was created. For example, if a driver is due for an end-of-day break, which is typically 10 hours, HOS logic will reduce that break duration by the amount of time entered in the “CurrentOffDutyTime” parameter.
| double No, default is | 0 .
driverHoursOfService > POIStopsReturned
Sets whether rest stops are returned as actual stop locations (POIs) along the route or only as the latitude/longitude coordinates for the last point along the route that a rest stop must be taken before a violation occurs. |
| bool No. Default is | True
driverHoursOfService > HOSWindowStart
Sets the time in minutes prior to when an HOS break is required that the algorithm should start looking for a rest stop to insert in the trip. The value can be between 10 and 60 minutes. For example, if a break is required at 2 p.m., and | HOSWindowStart is set to 30, the window for inserting a rest stop begins at 1:30 p.m.
| int No. Default is | 60
driverHoursOfService > HOSWindowEnd
Sets the time in minutes prior to when an HOS break is required that the algorithm should finish looking for a rest stop to insert in the trip. The value can be between 10 and 60 minutes. For example, if a break is required at 2 p.m., and | HOSWindowEnd is set to 10, the window for inserting a rest stop ends at 1:50 p.m. To maximize driving time, the algorithm will look for a stop as close as possible to the end of the window.
| int No. Default is | 10
|
Hours of Service - Fields for U.S. Only
Field | Description | Type | Required |
---|---|---|---|
driverHoursOfService > RemainingDriveTimeUntilBreak
| Remaining time in seconds until short break. |
double | No. Default is full HOS. |
driverHoursOfService > RemainingDriveTime
| Remaining drive time in seconds for the day. |
double | No. Default is full HOS. |
driverHoursOfService > RemainingOnDutyTime
| Remaining on duty time in seconds for the day. |
double | No. Default is full HOS. |
driverHoursOfService > RemainingCycleDutyTime
| Remaining time in seconds until cycle limit. |
double | No. Default is full HOS. |
driverHoursOfService > CycleTimeGains
| An array of cycle time gains in seconds for the next 6 or 7 days. |
Array <double> | No. Default is no cycle time gains. |
driverHoursOfService > UseCycleReset
| If true, a cycle reset break will be inserted in route. |
boolean | No. Default is false. |
driverHoursOfService > TerminalDayStartTime
| Start of the 24-hour period for the driver for cycle time limit compliance |
string | No. Default is midnight in the time zone of the trip origin |
driverHoursOfService > SetAdverseConditionException
| This field should be set to true if the driver will encounter adverse driving conditions during the trip such as weather changes and road closures. If set as true, the clocks for RemainingDriveTimeUntilBreak , RemainingOnDutyTime , and RemainingDriveTime are extended by 2 hours each.
|
boolean | No. Default is false. |
Hours of Service - Fields for Canada Only
Field | Description | Type | Required |
---|---|---|---|
driverHoursOfService > RemainingCanadaOnDutyTime
| Remaining time in seconds for a day - applicable only for Canada HOS. |
double | No. Default is full HOS. |
driverHoursOfService > RemainingTimeUntilFullDayBreak
| Remaining time in seconds until a full day (24-hour) break is needed - applicable only for Canada Cycle Two HOS. |
double | No. Default is full HOS. |
driverHoursOfService > RemainingTimeUntilFullDayBreakDriver2
| Remaining time in seconds until a full day (24-hour) break is needed for driver2 - applicable only for Canada Cycle Two HOS. |
double | No. Default is full HOS. |
driverHoursOfService > LastCycleResetDateTime
| Date and time of end of last cycle reset - applicable only for Canada HOS |
string | No. |
driverHoursOfService > Last24HourBreakDateTime
| Date and time of end of last 24 hour break - applicable only for Canada HOS |
string | No |
Hours of Service - Fields for Europe Only
Field | Description | Type | Required |
---|---|---|---|
driverHoursOfService > RemainingOnDutyTimeInDay
| The remaining on-duty time (in seconds) in a day until the driver must take a break. Only used for European HOS. |
double | No. Default is full HOS. |
driverHoursOfService > RemainingDrivingTimeInWeek
| The remaining driving time in seconds until the driver must take a weekly break. Only used for European HOS. |
double | No. Default is full HOS. |
driverHoursOfService > RemainingConsecutiveDrivingTime
| The remaining consecutive driving time (in seconds) in a day until the driver must take a break. Only used for European HOS. |
double | No. Default is full HOS. |
driverHoursOfService > RemainingFortnightlyTime
| The remaining fortnightly (bi-weekly) time (in seconds) until the drive must take a break. Only used for European HOS. |
double | No. Default is full HOS. |
driverHoursOfService > SetMaxTimeByClock
| This field provides option to set the max clock time for three specific clocks in Europe HOS.
|
object | No |
driverHoursOfService > SetMaxTimeByClock > maxDrivingTimeInDay
| This field allows for the assignment of the max driving time allowed in a day. The unit is seconds. Max is 10 hours (36000 seconds) as allowed by Europe HOS. |
integer | No. Default is 9 hours
|
driverHoursOfService > SetMaxTimeByClock > maxOnDutyTimeInDay
| This field allows for the assignment of the max on duty time allowed in a day. The unit is seconds. Max is 13 hours (46800 seconds) as allowed by Europe HOS. |
integer | No. Default is 8 hours
|
driverHoursOfService > SetMaxTimeByClock > maxOnDutyTimeInWeek
| This field allows for the assignment of the max on duty time in a week. The unit is seconds. Max is 60 hours (216000 seconds) as allowed by Europe HOS. |
integer | No. Default is 48 hours
|
driverHoursOfService > CustomBreakDurations > BreakTimeInDayDuration
| The custom duration in seconds for reducing the daily rest period. Default daily rest is 11 hours. This can be reduced to 9 hours (32400 seconds) 3 times per week as allowed by Europe HOS. |
integer | No. Default is 11 hours
|
driverHoursOfService > CustomBreakDurations > BreakTimeInWeekDuration
| The custom duration in seconds for reducing the weekly rest period. Default weekly rest is 45 hours. This can be reduced to 24 hours (86400 seconds) as allowed by Europe HOS. |
integer | No. Default is 45 hours
|
Hours of Service - Fields for Team Driving (U.S. and Canada Only)
Field | Description | Type | Required |
---|---|---|---|
driverHoursOfService > teamDriving (U.S. and Canada Only)
| If set to true, team driving will be used and, whenever possible, the active driver will be switched instead of taking a rest break. A separate “driver swap” rest break is inserted when a driver’s time is up. The duration of that break is set using driverSwitchBreakDuration , with a default of 5 minutes if no value is entered.
|
boolean | No. Default is false |
driverHoursOfService > activeDriver
| For Team Driving, indicates which driver is active at the beginning of the trip. |
integer | No. |
driverHoursOfService > remainingDriveTimeUntilBreakDriver2
| Remaining time in seconds until short break for Driver 2. Used only for Team Driving. |
double | No. Default is full HOS. |
driverHoursOfService > remainingDriveTimeDriver2
| Remaining drive time in seconds for the day for Driver 2. Used only for Team Driving. |
double | No. Default is full HOS. |
driverHoursOfService > remainingOnDutyTimeDriver2
| Remaining on duty time in seconds for the day for Driver 2. Used only for Team Driving. For Canada HOS this is the remaining time in seconds for a work shift. |
double | No. Default is full HOS. |
driverHoursOfService > remainingCycleDutyTimeDriver2
| Remaining time in seconds until cycle limit for Driver 2. Used only for Team Driving. |
double | No. Default is full HOS. |
driverHoursOfService > cycleTimeGainsDriver2
| An array of cycle time gains in seconds for the next 6 or 7 days for Driver 2. Used only for Team Driving. |
Array <double> | No. Default is full HOS. |
driverHoursOfService > lastCycleResetDateTimeDriver2
| Date and time of end of last cycle reset for Driver 2. Used only for Team Driving. Applicable only for Canada HOS |
string | No |
driverHoursOfService > last24HourBreakDateTimeDriver2
| Date and time of end of last 24 hour break for Driver 2. Used only for Team Driving. Applicable only for Canada HOS |
string | No |
driverHoursOfService > remainingCanadaOnDutyTimeDriver2
| Remaining time in seconds for a day - applicable only for Canada HOS for Driver 2. Used only for Team Driving. |
double | No. Default is full HOS. |
driverHoursOfService > customBreakDurations > driverSwitchBreakDuration
| Custom duration in minutes for driver switch instead of default minimum of 5 minutes. |
double | No |
driverHoursOfService > CurrentOffDutyTimeDriver2
| The amount of off-duty time the driver has already accumulated at the time the trip was created. For example, if a driver is due for an end-of-day break, which is typically 10 hours, HOS logic will reduce that break duration by the amount of time entered in the “CurrentOffDutyTime” parameter.
| double No, default is | 0 .
|
Vehicle Routing Profile
The Vehicle Routing Profile influences how the route for a specific type of vehicle is calculated. In all cases, our routing algorithm aims for a suitable and legally compliant route. This is determined by the type of vehicle, the vehicle dimensions and the load.
Field | Description | Type | Required |
---|---|---|---|
routingProfile
| A routingProfile object containing parameters that impact routing.
|
object | No |
routingProfile > routingType
| The type of route you want to calculate. We recommend Practical for trucks, which is the default. Practical aims to find a balance between legally compliant, safe and quick. It avoids any roads legally not allowed for the vehicle/dimensions/load; avoids small roads and city centers; and keeps the driver on roads safe for the vehicle, the driver and the community.
|
Enum | No, default is Practical
|
routingProfile > vehicleType
| The vehicle type. While Trip Management is designed for large trucks, the functionality is also suitable for other vehicles. In addition to the routing type (see above), the vehicle type influences the route path. (A route for a car is different from a route for a large truck.)
|
Enum | No, default is Truck
|
routingProfile > truckDimensions
| The truck style. You can either select a preset truck type (e.g. SemiTrailer48 or EU16Meter ) or use the Custom type and define your required truck dimensions individually, using the parameters below. We have predefined the most common truck types with standard height, weight, width, length and number of axles.
|
Enum | No, default is NoRestriction
|
routingProfile > unitsOfMeasure
| The units of measure for truck dimensions and weight. If you select a truck type with metric values, ensure that you set the units of measure to Metric .English (Imperial), Metric
|
string | No, default is English .
|
routingProfile > totalLength
| The total length of the truck. Only used when truckDimensions is set to 16 = Custom .For
For Metric units totalLength is entered as meters in decimal format.
|
decimal | No |
routingProfile > totalWeight
| The gross vehicle registered weight of the truck. Only used when truckDimensions is set to 16 = Custom .For
For Metric units totalWeight is entered as kilograms in decimal format.
|
decimal | No |
routingProfile > maxHeight
| The maximum height of the truck. Only used when truckDimensions is set to 16 = Custom .For
For Metric units maxHeight is entered as meters in decimal format.
|
decimal | No |
routingProfile > maxWidth
| The maximum width of the truck. Only used when truckDimensions is set to 16 = Custom . For
Metric units maxWidth is entered as meters in decimal format.
|
decimal | No |
routingProfile > numAxles
| Vehicle number of axles. Only used when truckDimensions is set to Custom . Acceptable values are 2 through 14. |
integer | No, default is 5 .
|
routingProfile > LCV
| Indicates whether the truck is a multi-trailer or longer combination vehicle. (North America only) |
boolean | No, default is False .
|
routingProfile > hazmatType
| Indicates the hazardous material type.
|
enum | No, default is None or 0
|
routingProfile > tollDiscouraged
| Set to True to avoid toll roads. Default is False .
|
boolean | No, default is False
|
routingProfile > includeTollData
| Set to True to return total toll costs for the trip. Default is False
|
boolean | No, default is False
|
routingProfile > bordersOpen
| Set to True to allow international border crossings, False to avoid or reduce number of international border crossings. For example, if all your stops are in the “lower 48” United States, the resulting route will stay in the United States even if the most practical or shortest route would normally involve some Canadian mileage. For EU travel, setting this to False will reduce the number of EU border crossings where possible and the route will follow the best path within the country from which the route originates.
|
boolean | No, default is True
|
routingProfile > classOverrides
| Indicates preference for National Network and 53’ (includes state designations) for routing. (North America Only)
|
string | No, default is None
|
routingProfile > elevationLimit
| The elevation limit to use during routing. Avoids routes going above defined elevation. (North America Only) |
integer | No |
routingProfile > isFerryDiscouraged
| Set to True to avoid ferries during routing, False otherwise.
|
boolean | No, default is False .
|
routingProfile > useAvoidFavors
| Set to True if custom avoids and favors set up for the fleet with Trimble Maps are to be used. Avoids and favors (collectively called Route Modifiers) is a separate function of the Trimble Maps platform. It allows fleets to define whether to avoid or favor specific roads within the road network. Read more about Route Modifiers.You can select specific Route Modifiers sets to use in routing by setting the afSetIds or afSetNames parameters.
|
boolean | No, default is False .
|
routingProfile > governorSpeedLimit
| Maximum speed that the driver is permitted to use in the vehicle. The format is in mph or kph based on distanceUnits . This value is used for ETA calculations.
|
double | No |
routingProfile > distanceUnits
| Indicates which Distance Units the Trip Distance and Leg Distance will use.
|
enum | No |
routingProfile > useSites
| Another unique feature of the Trimble Maps platform is the ability for customers to define Sites. With Sites you can define a polygon around a place, define entry and exit gates and capture other valuable information about a location. More information can be found here. |
boolean | No, default is False .
|
routingProfile > TunnelRestrictions
| Tunnel Restrictions by category specific to Europe. (Europe Only)
|
Enum | No. Default is None or 0
|
routingProfile > sideOfStreetAdherence
| How strict to be in order to avoid the destination being on the opposite side of the street. 0 - Off (Default) 1- Minimal 2 - Moderate 3 - Average 4 - Strict 5 - Adhere 6 - StronglyAdhere |
Enum | No, default is Off
|
afSetIds
| Avoid or favor set Ids are used for routing. routingProfile > useAvoidFavors must be true in order to utilize avoid or favor sets supplied.
|
Array <integer> | No, either set ids or names |
afSetNames
| Avoid or favor set names are used for routing. routingProfile > useAvoidFavors must be true in order to utilize avoid or favor sets supplied.
|
Array <string> | No, either set ids or names |
Europe Settings for Emissions and Tolls
These settings are specific to Vehicle Routing Profiles in Europe only. They are used to accurately calculate toll costs and greenhouse gas (GHG) emissions.
Field | Description | Type | Required | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
routingProfile > euProfile > hasTrailer
| This is not required for every vehicle towing a trailer but it must be set as True in order to configure the following values of euProfile :
|
boolean | No, default is False .
| ||||||||||||||||||||||||||||
routingProfile > euProfile > isHybrid
| Indicates whether the vehicle has a hybrid engine. Used for Toll Detail Reports in Europe. |
boolean | No, default is False .
| ||||||||||||||||||||||||||||
routingProfile > euProfile > minPoll
| Indicates whether the vehicle is designated a “minimum pollution vehicle”. Used for Toll Detail Reports in Europe. |
boolean | No, default is False .
| ||||||||||||||||||||||||||||
routingProfile > euProfile > trailerType
| Indicates the type of trailer. This and all trailer related information is used primarily in Toll Detail Reports in Europe.
|
Response Fields
Field | Description | Type | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
alkTripId
| The unique identifier for the trip. This value will be used in subsequent calls to the service pertaining to this trip. |
integer | ||||||||||||||||||
name
| A display name for this trip. |
string | ||||||||||||||||||
tmsTripId
| The trip ID in your planning system. This can be used to match a Trip Management trip with a trip in your database. |
string | ||||||||||||||||||
tripStatus
| The current status of the trip. For the initial response, the value will be 0 - Planned . As the trip gets executed/modified, the values may change to:
|
enum | ||||||||||||||||||
actualStartDate
| The date and time when the trip is put InProgress .
|
date | ||||||||||||||||||
tripDistance
| The total planned distance of the trip. |
double | ||||||||||||||||||
tripDuration
| The total planned duration of the trip including drive time, dwell times and break times. This value is updated each time the trip is recalculated. |
double | ||||||||||||||||||
tripDriveDuration
| The total duration of the trip which was spent driving, not including dwell and break time. This value is updated each time the trip is recalculated. |
integer | ||||||||||||||||||
tripCost
| The total cost value for the trip, including fuel, tolls, labor and vehicle costs. This cost is based on default values in the Trimble Maps database. |
integer | ||||||||||||||||||
tripTolls
| The total tolls value for the trip. |
integer | ||||||||||||||||||
region
| Indicates which region was set to run the trip. |
Enum | ||||||||||||||||||
externalOrderIds
| The array of external Order IDs associated with the trip. |
Array <string> | ||||||||||||||||||
remainingLegDistance
| The remaining distance in miles or kilometers for the current in-progress leg of the trip. Tracked from the last received GPS ping to the next open stop in the trip |
integer | ||||||||||||||||||
remainingLegDuration
| The remaining duration in minutes for the current in-progress leg of the trip. Tracked from the last received GPS ping to the next open stop in the trip |
integer | ||||||||||||||||||
stops
| The stop array contains every customer stop in the trip plan as well as inserted fuel and rest stops. |
Array <Stop> | ||||||||||||||||||
stops > stopSequence
| The order in which the stops are executed. This includes inserted fuel and rest stops. |
integer | ||||||||||||||||||
stops > stopStatus
| Status of the stop
|
string | ||||||||||||||||||
stops > stopArrivalStatus
| Status of the stop OnTime,AtRisk,Late,Early,NotViable |
string | ||||||||||||||||||
stops > currentETA
| The date and time predicted to arrive based on routing variables. |
date | ||||||||||||||||||
stops > actualArrivalTime
| The time of arrival at the stop, set when the status changes to Arrived . Trip Management also stores the original ETA for later analysis.
|
date | ||||||||||||||||||
stops > actualDepartureTime
| The time of departure at the stop, set when the status changes to Completed .
|
date | ||||||||||||||||||
stops > actualDuration
| The number of minutes the driver spent at this stop. |
double | ||||||||||||||||||
stops > stopType
| The type of stop. Options are: Origin, Work, Waypoint, FuelStop, Destination, Delivery, Pickup, Break, RestStopShort, RestStopLong, RestStopCycleReset, RestStopFullDay, RestStopDriverSwitch, RestStopShortSplittable (EU ONLY), and RestStopLongSplittable (EU ONLY). |
string | ||||||||||||||||||
stops > amenities
| An array containing the Amenities available as this rest stop. (North America Only) |
Array <string> | ||||||||||||||||||
stops > truckServices
| Indicates whether this rest stop has Truck Services or not. (North America Only) |
boolean | ||||||||||||||||||
stops > activeDriver
| For Team Driving, indicates which driver is actively driving starting at this stop. |
integer | ||||||||||||||||||
stops > slackTime
| The time in decimal minutes for how early you are expected to arrive at a stop, based on its time window. It is only returned if your request specifies a time window for each stop using the earliestArrivalTime and latestArrivalTime parameters. Appointment times must first be added to your API key in order to retrieve slackTime .
|
double | ||||||||||||||||||
stops > location
| Each stop array must have at least two location elements in it. |
Location object | ||||||||||||||||||
stops > location > address
| An address object representing the street address, city, state, and postal code of a stop. |
Address object | ||||||||||||||||||
stops > location > address > streetAddress
| The street address of this trip stop. |
string | ||||||||||||||||||
stops > location > address > city
| The city of this trip stop. |
string | ||||||||||||||||||
stops > location > address > state
| The state of this trip stop. |
string | ||||||||||||||||||
stops > location > address > zip
| The zip/postal code of this trip stop. |
string | ||||||||||||||||||
stops > location > address > county
| The county where this trip stop is located. |
string | ||||||||||||||||||
stops > location > coords
| Contains the latitude and longitude of the stop. |
coords object | ||||||||||||||||||
stops > location > coords > lat
| The latitude of the stop. |
string | ||||||||||||||||||
stops > location > coords > lon
| The longitude of the stop. |
string | ||||||||||||||||||
stops > location > label
| A display name for this trip stop. |
string | ||||||||||||||||||
stops > plannedETA
| Estimated date and time of arrival at the stop as of the initial trip plan when dispatched to the vehicle. The value is formatted in ISO-8601 format. If the trip is modified after the initial planning, then it will have to be recalculated to get a new ETA. |
date | ||||||||||||||||||
stops > plannedDepartureTime
| Estimated date and time of departure at the stop as of the initial trip plan when dispatched to the vehicle. If the trip is modified after the initial planning, then the ETA will have to be recalculated, which would also update the departure time. The value is formatted in ISO-8601 format. |
date | ||||||||||||||||||
stops > plannedDuration
| The estimated duration at stop in minutes. |
double | ||||||||||||||||||
stops > saveRestStop
| If true, this rest stop will be preserved when recalculating the route. This value is set when modifying a trip. |
boolean | ||||||||||||||||||
stops > legDistance
| Distance to the next stop in miles or kilometers, depending on the setting in routingProfile > distanceUnits .
|
double | ||||||||||||||||||
stops > legDriveDuration
| Duration to the reach the next stop in minutes. |
double | ||||||||||||||||||
alternateRestStops
| A list of alternate Hours of Service rest stops that may be used to replace the current rest stop |
Array <AlternateHosLocation> | ||||||||||||||||||
alternateRestStops > amenities
| An array containing the Amenities available as this rest stop. |
Array <string> | ||||||||||||||||||
alternateRestStops > truckServices
| Indicates whether this rest stop has Truck Services or not. |
boolean | ||||||||||||||||||
alternateRestStops > activeDriver
| For Team Driving, indicates which driver is actively driving starting at this stop. |
integer | ||||||||||||||||||
alternateRestStops > location
| The location of the alternate rest stop. |
Location object | ||||||||||||||||||
alternateRestStops > location > address
| An address object representing the street address, city, state, and postal code of the alternate rest stop. |
Address object | ||||||||||||||||||
alternateRestStops > location > address > streetAddress
| The street address of the alternate rest stop. |
string | ||||||||||||||||||
alternateRestStops > location > address > city
| The city of the alternate rest stop. |
string | ||||||||||||||||||
alternateRestStops > location > address > state
| The state of the alternate rest stop. |
string | ||||||||||||||||||
alternateRestStops > location > address > zip
| The zip/postal code of the alternate rest stop. |
string | ||||||||||||||||||
alternateRestStops > location > address > county
| The county where the alternate rest stop. is located. |
string | ||||||||||||||||||
alternateRestStops > location > coords
| Contains the latitude and longitude of the alternate rest stop. |
coords object | ||||||||||||||||||
alternateRestStops > location > coords > lat
| The latitude of the alternate rest stop. |
string | ||||||||||||||||||
alternateRestStops > location > coords > lon
| The longitude of the alternate rest stop. |
string | ||||||||||||||||||
alternateRestStops > location > label
| A display name for the alternate rest stop. |
string | ||||||||||||||||||
hoursOfServiceRemaining
| Remaining HOS parameters at the end of the trip, if using the Trimble Maps HOS solution. |
hoursOfServiceRemaining object | ||||||||||||||||||
hoursOfServiceRemaining > enabled
| Indicates whether the trip was run with HOS enabled allowing rest stops insertion. |
boolean | ||||||||||||||||||
hoursOfServiceRemaining > remainingDriveTimeUntilBreak
| Remaining time in seconds until short break at the end of the trip. |
double | ||||||||||||||||||
hoursOfServiceRemaining > remainingDriveTime
| Remaining drive time in seconds for the day at the end of the trip. |
double | ||||||||||||||||||
hoursOfServiceRemaining > remainingOnDutyTime
| Remaining on duty time in seconds for the day at the end of the trip. For Canada HOS this is the remaining time in seconds for a work shift. |
double | ||||||||||||||||||
hoursOfServiceRemaining > hoSRuleType
| Indicates which HOS Rule was used to run the trip. |
Enum | ||||||||||||||||||
hoursOfServiceRemaining > alternateHoSRuleType
| Indicates an alternate hours of service rule type to follow whe making cross border moves between Canada and the United States. |
Enum | ||||||||||||||||||
hoursOfServiceRemaining > remainingCycleDutyTime
| Remaining time in seconds until cycle limit at the end of the trip. |
double | ||||||||||||||||||
hoursOfServiceRemaining > cycleTimeGains
| An array of cycle time gains in seconds for the next 6 or 7 days at the end of the trip. |
Array <double> | ||||||||||||||||||
hoursOfServiceRemaining > lastCycleResetDateTime
| Date and time of end of last cycle reset at the end of the trip - applicable only for Canada HOS. |
string | ||||||||||||||||||
hoursOfServiceRemaining > last24HourBreakDateTime
| Date and time of end of last 24 hour break at the end of the trip - applicable only for Canada HOS. |
string | ||||||||||||||||||
hoursOfServiceRemaining > remainingCanadaOnDutyTime
| Remaining time in seconds for a day at the end of the trip - applicable only for Canada HOS. |
double | ||||||||||||||||||
hoursOfServiceRemaining > remainingTimeUntilFullDayBreak
| Remaining time in seconds until a full day (24-hour) break is needed at the end of the trip - applicable only for Canada Cycle Two HOS. |
double | ||||||||||||||||||
hoursOfServiceRemaining > remainingTimeUntilFullDayBreakDriver2
| Remaining time in seconds until a full day (24-hour) break is needed for driver2 at the end of the trip - applicable only for Canada Cycle Two HOS. |
double | ||||||||||||||||||
hoursOfServiceRemaining > remainingDriveTimeUntilBreakDriver2
| Remaining time in seconds until short break at the end of the trip for Driver 2. Used only for Team Driving. |
double | ||||||||||||||||||
hoursOfServiceRemaining > remainingDriveTimeDriver2
| Remaining drive time in seconds for the day at the end of the trip for Driver 2. Used only for Team Driving. |
double | ||||||||||||||||||
hoursOfServiceRemaining > remainingOnDutyTimeDriver2
| Remaining on duty time in seconds for the day at the end of the trip for Driver 2. Used only for Team Driving. For Canada HOS this is the remaining time in seconds for a work shift. |
double | ||||||||||||||||||
hoursOfServiceRemaining > remainingCycleDutyTimeDriver2
| Remaining time in seconds until cycle limit at the end of the trip for Driver 2. Used only for Team Driving. |
double | ||||||||||||||||||
hoursOfServiceRemaining > cycleTimeGainsDriver2
| An array of cycle time gains in seconds for the next 6 or 7 days at the end of the trip for Driver 2. Used only for Team Driving. |
Array <double> | ||||||||||||||||||
hoursOfServiceRemaining > lastCycleResetDateTimeDriver2
| Date and time of end of last cycle reset at the end of the trip for Driver 2. Used only for Team Driving. Applicable only for Canada HOS. |
string | ||||||||||||||||||
hoursOfServiceRemaining > last24HourBreakDateTimeDriver2
| Date and time of end of last 24 hour break at the end of the trip for Driver 2. Used only for Team Driving. Applicable only for Canada HOS. |
string | ||||||||||||||||||
hoursOfServiceRemaining > remainingCanadaOnDutyTimeDriver2
| Remaining time in seconds for a day at the end of the trip for Driver 2. Used only for Team Driving. Applicable only for Canada HOS. |
double | ||||||||||||||||||
hoursOfServiceRemaining > RemainingOnDutyTimeInDay
| The remaining on-duty time (in seconds) in a day until the driver must take a break. Only used for European HOS. |
double | ||||||||||||||||||
hoursOfServiceRemaining > RemainingDrivingTimeInWeek
| The remaining driving time in seconds until the driver must take a weekly break. Only used for European HOS. |
double | ||||||||||||||||||
hoursOfServiceRemaining > RemainingConsecutiveDrivingTime
| The remaining consecutive driving time (in seconds) in a day until the driver must take a break. Only used for European HOS. |
double | ||||||||||||||||||
hoursOfServiceRemaining > RemainingFortnightlyTime
| The remaining fortnightly (bi-weekly) time (in seconds) until the drive must take a break. Only used for European HOS. |
double | ||||||||||||||||||
driverHoursOfService
| The hours of service parameters, if using the Trimble Maps HOS solution. |
driverHoursOfService object | ||||||||||||||||||
driverHoursOfService > useCycleReset
| If true, a cycle reset break is inserted in route. |
boolean | ||||||||||||||||||
driverHoursOfService > enabled
| If false, HOS rest stops are not inserted in route. |
boolean | ||||||||||||||||||
driverHoursOfService > terminalDayStartTime
| Start of the 24-hour period for the driver for cycle time limit compliance. |
string | ||||||||||||||||||
driverHoursOfService > remainingDriveTimeUntilBreak
| Remaining time in seconds until short break at the end of the trip. |
double | ||||||||||||||||||
driverHoursOfService > useCustomPlaces
| If true, custom locations are used where possible for HOS rest break. |
boolean | ||||||||||||||||||
driverHoursOfService > remainingDriveTime
| Remaining drive time in seconds for the day at the end of the trip. |
double | ||||||||||||||||||
driverHoursOfService > teamDriving (U.S. and Canada Only)
| If set to true, team driving will be used and, whenever possible, the active driver will be switched instead of taking a rest break. A separate “driver swap” rest break is inserted when a driver’s time is up. The duration of that break is set using driverSwitchBreakDuration , with a default of 5 minutes if no value is entered.
|
boolean | ||||||||||||||||||
driverHoursOfService > remainingOnDutyTime
| Remaining on duty time in seconds for the day at the end of the trip. For Canada HOS this is the remaining time in seconds for a work shift. |
double | ||||||||||||||||||
driverHoursOfService > customBreakDurations
| Longer custom durations for rest stops are used instead of mandated minimum durations by default. |
CustomBreakDurations object | ||||||||||||||||||
driverHoursOfService > hoSRuleType
| Indicates which hours of service rule type was followed. |
Enum | ||||||||||||||||||
driverHoursOfService > alternateHoSRuleType
| Indicates an alternate hours of service rule type followed when making cross border moves between Canada and the United States. |
Enum | ||||||||||||||||||
driverHoursOfService > remainingCycleDutyTime
| Remaining time in seconds until cycle limit at the end of the trip. |
double | ||||||||||||||||||
driverHoursOfService > maxAlternateRestStops
| The maximum number of alternate rest stops that will be returned in the Hours of Service report. |
integer | ||||||||||||||||||
driverHoursOfService > cycleTimeGains
| An array of cycle time gains in seconds for the next 6 or 7 days at the end of the trip. |
Array <double> | ||||||||||||||||||
driverHoursOfService > lastCycleResetDateTime
| Date and time of end of last cycle reset at the end of the trip - applicable only for Canada HOS. |
string | ||||||||||||||||||
driverHoursOfService > last24HourBreakDateTime
| Date and time of end of last 24 hour break at the end of the trip - applicable only for Canada HOS. |
string | ||||||||||||||||||
driverHoursOfService > remainingCanadaOnDutyTime
| Remaining time in seconds for a day at the end of the trip - applicable only for Canada HOS. |
double | ||||||||||||||||||
driverHoursOfService > remainingDriveTimeUntilBreakDriver2
| Remaining time in seconds until short break at the end of the trip for Driver 2. Used only for Team Driving. |
double | ||||||||||||||||||
driverHoursOfService > remainingDriveTimeDriver2
| Remaining drive time in seconds for the day at the end of the trip for Driver 2. Used only for Team Driving. |
double | ||||||||||||||||||
driverHoursOfService > remainingOnDutyTimeDriver2
| Remaining on duty time in seconds for the day at the end of the trip for Driver 2. Used only for Team Driving. For Canada HOS this is the remaining time in seconds for a work shift. |
double | ||||||||||||||||||
driverHoursOfService > remainingCycleDutyTimeDriver2
| Remaining time in seconds until cycle limit at the end of the trip for Driver 2. Used only for Team Driving. |
double | ||||||||||||||||||
driverHoursOfService > cycleTimeGainsDriver2
| An array of cycle time gains in seconds for the next 6 or 7 days at the end of the trip for Driver 2. Used only for Team Driving. |
double | ||||||||||||||||||
driverHoursOfService > lastCycleResetDateTimeDriver2
| Date and time of end of last cycle reset at the end of the trip for Driver 2. Used only for Team Driving. Applicable only for Canada HOS. |
string | ||||||||||||||||||
driverHoursOfService > last24HourBreakDateTimeDriver2
| Date and time of end of last 24 hour break at the end of the trip for Driver 2. Used only for Team Driving. Applicable only for Canada HOS. |
string | ||||||||||||||||||
driverHoursOfService > remainingCanadaOnDutyTimeDriver2
| Remaining time in seconds for a day at the end of the trip for Driver 2. Used only for Team Driving. Applicable only for Canada HOS. |
double | ||||||||||||||||||
driverHoursOfService > RemainingOnDutyTimeInDay
| The remaining on-duty time (in seconds) in a day until the driver must take a break. Only used for European HOS. |
double | ||||||||||||||||||
driverHoursOfService > RemainingDrivingTimeInWeek
| The remaining driving time in seconds until the driver must take a weekly break. Only used for European HOS. |
double | ||||||||||||||||||
driverHoursOfService > RemainingConsecutiveDrivingTime
| The remaining consecutive driving time (in seconds) in a day until the driver must take a break. Only used for European HOS. |
double | ||||||||||||||||||
driverHoursOfService > RemainingFortnightlyTime
| The remaining fortnightly (bi-weekly) time (in seconds) until the drive must take a break. Only used for European HOS. |
double | ||||||||||||||||||
driverHoursOfService > CurrentOffDutyTime
| The amount of off-duty time the driver has already accumulated at the time the trip was created. For example, if a driver is due for an end-of-day break, which is typically 10 hours, HOS logic will reduce that break duration by the amount of time entered in the “CurrentOffDutyTime” parameter.
| double driverHoursOfService > CurrentOffDutyTimeDriver2
The amount of off-duty time the driver has already accumulated at the time the trip was created. For example, if a driver is due for an end-of-day break, which is typically 10 hours, HOS logic will reduce that break duration by the amount of time entered in the “CurrentOffDutyTime” parameter. |
| double driverHoursOfService > POIStopsReturned
Sets whether rest stops are returned as actual stop locations (POIs) along the route or only as the latitude/longitude coordinates for the last point along the route that a rest stop must be taken before a violation occurs. |
| bool driverHoursOfService > HOSWindowStart
Sets the time in minutes prior to when an HOS break is required that the algorithm should start looking for a rest stop to insert in the trip. The value can be between 10 and 60 minutes. For example, if a break is required at 2 p.m., and | HOSWindowStart is set to 30, the window for inserting a rest stop begins at 1:30 p.m.
| int driverHoursOfService > HOSWindowEnd
Sets the time in minutes prior to when an HOS break is required that the algorithm should finish looking for a rest stop to insert in the trip. The value can be between 10 and 60 minutes. For example, if a break is required at 2 p.m., and | HOSWindowEnd is set to 10, the window for inserting a rest stop ends at 1:50 p.m. To maximize driving time, the algorithm will look for a stop as close as possible to the end of the window.
| int afSetIds
Avoid or favor set Ids are used for routing.
|
| Array <string> afSetNames
Avoid or favor set names are used for routing.
|
| Array <string> |
Sample Request
{
"name": "Trip-Name",
"tmsTripId":"TMS-Trip-Identifier",
"plannedStartLocation": {
"Coords":{
"Lat": "42.364551",
"Lon": "-71.180604"
}
},
"stops": [
{
"Location": {
"Coords": {
"Lat": "42.346689",
"Lon": "-71.098860"
},
"Label": "Fenway Park"
},
"earliestArrivalTime":"2023-09-19T16:45:00",
"latestArrivalTime":"2023-09-19T18:00:00",
"stopType":"Origin",
"stopSequence":0,
"plannedDuration":60
},
{
"Location": {
"Address": {
"StreetAddress": "116 Federal Street",
"City": "Pittsburgh",
"State": "PA",
"Zip": "15212",
"County": "Allegheny"
},
"Label": "PNC Park"
},
"earliestArrivalTime":"2023-09-20T17:00:00",
"latestArrivalTime":"2023-09-20T18:00:00",
"atRiskThreshold":30,
"stopType":"Work",
"stopSequence":0,
"plannedDuration":120
},
{
"Location": {
"Address": {
"StreetAddress": "4900 Marie P Debartolo Way",
"City": "Santa Clara",
"State": "CA",
"Zip": "95054"
},
"Label": "Levi's Stadium"
},
"earliestArrivalTime":"2023-09-20T23:00:00",
"latestArrivalTime":"2023-09-21T06:00:00",
"atRiskThreshold":30,
"stopType":"Destination",
"stopSequence":0
}
],
"routingProfile": {
"LCV": false,
"bordersOpen": true,
"classOverrides": "NationalNetwork",
"elevationLimit": null,
"hazmatType": "None",
"isFerryDiscouraged": false,
"maxHeight": 162,
"maxWidth": 96,
"numAxles": 2,
"routingType": 0,
"tollDiscouraged": false,
"totalLength": 240,
"totalWeight": 9000,
"truckDimensions": 16,
"unitsOfMeasure": 0,
"vehicleType": 3
},
"tmsId":1,
"hosSolution":2,
"costPerMile":1.725,
"vehicle": {
"tspVehicleId":"Documentation 1"
},
"driverHoursOfService": {
"enabled":true,
"hosRuleType":"USFed607LH"
}
}
Sample Response
{
"tripStatus": "Planned",
"modifiedOn": "2023-11-24T14:41:42+00:00",
"tripDistance": 3177.805,
"tripDriveDuration": 2938.7,
"tripDuration": 5638.7,
"hoursOfServiceRemaining": {
"enabled": true,
"remainingDriveTimeUntilBreak": 1440.0,
"remainingDriveTime": 12240.0,
"remainingOnDutyTime": 23040.0,
"hoSRuleType": "USFed607LH",
"remainingCycleDutyTime": 28800.0,
"cycleTimeGains": [
0.0,
0.0,
36000.0,
37680.0,
36780.0,
38520.0
],
"lastCycleResetDateTime": null,
"last24HourBreakDateTime": null,
"remainingCanadaOnDutyTime": 23040.0,
"remainingDriveTimeUntilBreakDriver2": null,
"remainingDriveTimeDriver2": null,
"remainingOnDutyTimeDriver2": null,
"remainingCycleDutyTimeDriver2": null,
"cycleTimeGainsDriver2": null,
"lastCycleResetDateTimeDriver2": null,
"last24HourBreakDateTimeDriver2": null,
"remainingCanadaOnDutyTimeDriver2": null,
"alternateHoSRuleType": null,
"remainingTimeUntilFullDayBreak": 0.0,
"remainingTimeUntilFullDayBreakDriver2": null,
"remainingDrivingTimeInWeek": 0.0,
"remainingOnDutyTimeInDay": 0.0,
"remainingConsecutiveDrivingTime": 0.0,
"remainingFortnightlyTime": 0.0,
"currentOffDutyTime": null,
"currentOffDutyTimeDriver2": null
},
"url": "https://tripmanagement.trimblemaps.com/trip-viewer/token/ejvhhgguyf45m7tbdcgubmpsixfh5a3tycj3yci3ep/details/96301560?region=NA",
"tripCost": 5481.714,
"tripTolls": 0.0,
"remainingLegDistance": 0.0,
"remainingLegDriveDuration": 0.0,
"tmsTripId": "TMS-Trip-Identifier",
"name": "Trip-Name",
"stops": [
{
"plannedETA": "2023-11-24T09:59:23-05:00",
"currentETA": "2023-11-24T09:59:23-05:00",
"currentETD": "2023-11-24T10:59:23-05:00",
"earliestArrivalTime": "2023-09-19T16:45:00-05:00",
"latestArrivalTime": "2023-09-19T18:00:00-05:00",
"plannedDuration": 60.0,
"actualDuration": 0.0,
"plannedDepartureTime": "2023-11-24T10:59:23-05:00",
"stopStatus": "Open",
"stopArrivalStatus": "Late",
"atRiskThreshold": 15,
"tooEarlyThreshold": null,
"legDistance": 5.298,
"legDriveDuration": 17.683,
"metadata": null,
"amenities": null,
"truckServices": false,
"alternateRestStops": null,
"poiId": 0,
"setId": 0,
"persistentId": 0,
"activeDriver": 1,
"stopId": 1044395852,
"location": {
"address": {
"streetAddress": "26 Jersey Street",
"city": "Boston",
"state": "MA",
"zip": "02215",
"county": "Suffolk",
"country": null
},
"coords": {
"lat": "42.346689",
"lon": "-71.09886"
},
"label": "Fenway Park"
},
"waypoint": false,
"stopSequence": 0,
"stopType": "Origin"
},
{
"plannedETA": "2023-11-24T18:54:15-05:00",
"currentETA": "2023-11-24T18:54:15-05:00",
"currentETD": "2023-11-24T19:24:15-05:00",
"earliestArrivalTime": "2023-11-24T18:39:15-05:00",
"latestArrivalTime": "2023-11-24T19:09:15-05:00",
"plannedDuration": 30.0,
"actualDuration": 0.0,
"plannedDepartureTime": "2023-11-24T19:24:15-05:00",
"stopStatus": "Open",
"stopArrivalStatus": "AtRisk",
"atRiskThreshold": 30,
"tooEarlyThreshold": null,
"legDistance": 499.976,
"legDriveDuration": 474.867,
"metadata": null,
"amenities": [
"Fuel",
"Twentyfour_hour",
"ATM",
"Restaurant",
"Restrooms"
],
"truckServices": true,
"alternateRestStops": null,
"poiId": 6231,
"setId": 12,
"persistentId": 702361,
"activeDriver": 1,
"stopId": 1044395853,
"location": {
"address": {
"streetAddress": "4057 Admiral Peary Highway",
"city": "Ebensburg",
"state": "PA",
"zip": "15931",
"county": null,
"country": "United States"
},
"coords": {
"lat": "40.460145",
"lon": "-78.769005"
},
"label": "@Martin General Store"
},
"waypoint": false,
"stopSequence": 1,
"stopType": "RestStopShort"
},
{
"plannedETA": "2023-11-24T20:45:27-05:00",
"currentETA": "2023-11-24T20:45:27-05:00",
"currentETD": "2023-11-24T22:45:27-05:00",
"earliestArrivalTime": "2023-09-20T17:00:00-05:00",
"latestArrivalTime": "2023-09-20T18:00:00-05:00",
"plannedDuration": 120.0,
"actualDuration": 0.0,
"plannedDepartureTime": "2023-11-24T22:45:27-05:00",
"stopStatus": "Open",
"stopArrivalStatus": "Late",
"atRiskThreshold": 30,
"tooEarlyThreshold": null,
"legDistance": 70.134,
"legDriveDuration": 81.2,
"metadata": null,
"amenities": null,
"truckServices": false,
"alternateRestStops": null,
"poiId": 0,
"setId": 0,
"persistentId": 0,
"activeDriver": 1,
"stopId": 1044395854,
"location": {
"address": {
"streetAddress": "116 Federal Street",
"city": "Pittsburgh",
"state": "PA",
"zip": "15212",
"county": "Allegheny",
"country": null
},
"coords": {
"lat": "40.44797",
"lon": "-80.003972"
},
"label": "PNC Park"
},
"waypoint": false,
"stopSequence": 2,
"stopType": "Work"
},
{
"plannedETA": "2023-11-24T23:10:49-05:00",
"currentETA": "2023-11-24T23:10:49-05:00",
"currentETD": "2023-11-25T09:10:49-05:00",
"earliestArrivalTime": "2023-11-24T22:55:49-05:00",
"latestArrivalTime": "2023-11-24T23:25:49-05:00",
"plannedDuration": 600.0,
"actualDuration": 0.0,
"plannedDepartureTime": "2023-11-25T09:10:49-05:00",
"stopStatus": "Open",
"stopArrivalStatus": "AtRisk",
"atRiskThreshold": 30,
"tooEarlyThreshold": null,
"legDistance": 26.816,
"legDriveDuration": 25.367,
"metadata": null,
"amenities": null,
"truckServices": false,
"alternateRestStops": null,
"poiId": 0,
"setId": 0,
"persistentId": 0,
"activeDriver": 1,
"stopId": 1044395855,
"location": {
"address": {
"streetAddress": "Pennsylvania Turnpike (I-76)",
"city": "New Brighton",
"state": "PA",
"zip": "15066",
"county": "Beaver",
"country": "United States"
},
"coords": {
"lat": "40.749895",
"lon": "-80.207553"
},
"label": "Rest Stop"
},
"waypoint": false,
"stopSequence": 3,
"stopType": "RestStopLong"
},
{
"plannedETA": "2023-11-25T15:58:41-06:00",
"currentETA": "2023-11-25T15:58:41-06:00",
"currentETD": "2023-11-25T16:28:41-06:00",
"earliestArrivalTime": "2023-11-25T15:43:41-06:00",
"latestArrivalTime": "2023-11-25T16:13:41-06:00",
"plannedDuration": 30.0,
"actualDuration": 0.0,
"plannedDepartureTime": "2023-11-25T16:28:41-06:00",
"stopStatus": "Open",
"stopArrivalStatus": "AtRisk",
"atRiskThreshold": 30,
"tooEarlyThreshold": null,
"legDistance": 502.913,
"legDriveDuration": 467.867,
"metadata": null,
"amenities": [
"DEF",
"Ten_HourParking",
"Showers",
"Scale",
"TruckWash",
"TruckRepair",
"TireService",
"RoadsideAssistance",
"ATM",
"Laundry",
"Restaurant",
"Restrooms"
],
"truckServices": true,
"alternateRestStops": null,
"poiId": 5214,
"setId": 12,
"persistentId": 699146,
"activeDriver": 1,
"stopId": 1044395856,
"location": {
"address": {
"streetAddress": "3130 May Road",
"city": "Peru",
"state": "IL",
"zip": "61354",
"county": null,
"country": "United States"
},
"coords": {
"lat": "41.366681",
"lon": "-89.151536"
},
"label": "@Sapp Bros. Peru"
},
"waypoint": false,
"stopSequence": 4,
"stopType": "RestStopShort"
},
{
"plannedETA": "2023-11-25T19:08:53-06:00",
"currentETA": "2023-11-25T19:08:53-06:00",
"currentETD": "2023-11-26T05:08:53-06:00",
"earliestArrivalTime": "2023-11-25T18:53:53-06:00",
"latestArrivalTime": "2023-11-25T19:23:53-06:00",
"plannedDuration": 600.0,
"actualDuration": 0.0,
"plannedDepartureTime": "2023-11-26T05:08:53-06:00",
"stopStatus": "Open",
"stopArrivalStatus": "AtRisk",
"atRiskThreshold": 30,
"tooEarlyThreshold": null,
"legDistance": 178.514,
"legDriveDuration": 160.2,
"metadata": null,
"amenities": [
"Fuel",
"DEF",
"Twentyfour_hour",
"Ten_HourParking",
"NumTruckParkingSpaces: 90",
"Showers",
"Scale",
"RoadsideAssistance",
"ATM",
"Laundry",
"Restaurant",
"Restrooms"
],
"truckServices": true,
"alternateRestStops": null,
"poiId": 5930,
"setId": 12,
"persistentId": 701355,
"activeDriver": 1,
"stopId": 1044395857,
"location": {
"address": {
"streetAddress": "4126 Hwy 21",
"city": "Brooklyn",
"state": "IA",
"zip": "52211",
"county": null,
"country": "United States"
},
"coords": {
"lat": "41.698446",
"lon": "-92.359026"
},
"label": "@Pilot Travel Center #495"
},
"waypoint": false,
"stopSequence": 5,
"stopType": "RestStopLong"
},
{
"plannedETA": "2023-11-26T11:56:07-07:00",
"currentETA": "2023-11-26T11:56:07-07:00",
"currentETD": "2023-11-26T12:26:07-07:00",
"earliestArrivalTime": "2023-11-26T11:41:07-07:00",
"latestArrivalTime": "2023-11-26T12:11:07-07:00",
"plannedDuration": 30.0,
"actualDuration": 0.0,
"plannedDepartureTime": "2023-11-26T12:26:07-07:00",
"stopStatus": "Open",
"stopArrivalStatus": "AtRisk",
"atRiskThreshold": 30,
"tooEarlyThreshold": null,
"legDistance": 529.301,
"legDriveDuration": 467.233,
"metadata": null,
"amenities": [
"DEF",
"Twentyfour_hour",
"NumTruckParkingSpaces: 94",
"Showers",
"Scale",
"TruckRepair",
"TireService",
"PermitServices",
"RoadsideAssistance",
"ATM",
"HotelNearby",
"Laundry",
"Restaurant",
"Restrooms"
],
"truckServices": true,
"alternateRestStops": null,
"poiId": 36,
"setId": 12,
"persistentId": 698513,
"activeDriver": 1,
"stopId": 1044395858,
"location": {
"address": {
"streetAddress": "103 Prospector Drive",
"city": "Ogallala",
"state": "NE",
"zip": "69153",
"county": null,
"country": "United States"
},
"coords": {
"lat": "41.113633",
"lon": "-101.712174"
},
"label": "@TA-Ogallala #90"
},
"waypoint": false,
"stopSequence": 6,
"stopType": "RestStopShort"
},
{
"plannedETA": "2023-11-26T14:52:10-07:00",
"currentETA": "2023-11-26T14:52:10-07:00",
"currentETD": "2023-11-27T00:52:10-07:00",
"earliestArrivalTime": "2023-11-26T14:37:10-07:00",
"latestArrivalTime": "2023-11-26T15:07:10-07:00",
"plannedDuration": 600.0,
"actualDuration": 0.0,
"plannedDepartureTime": "2023-11-27T00:52:10-07:00",
"stopStatus": "Open",
"stopArrivalStatus": "AtRisk",
"atRiskThreshold": 30,
"tooEarlyThreshold": null,
"legDistance": 162.261,
"legDriveDuration": 146.05,
"metadata": null,
"amenities": [
"Fuel",
"DEF",
"Twentyfour_hour",
"Ten_HourParking",
"NumTruckParkingSpaces: 90",
"Showers",
"Scale",
"ATM",
"HotelNearby",
"Laundry",
"Restaurant",
"Restrooms"
],
"truckServices": true,
"alternateRestStops": null,
"poiId": 9955,
"setId": 12,
"persistentId": 699061,
"activeDriver": 1,
"stopId": 1044395859,
"location": {
"address": {
"streetAddress": "8020 Campstool Road",
"city": "Cheyenne",
"state": "WY",
"zip": "82007",
"county": null,
"country": "United States"
},
"coords": {
"lat": "41.136222",
"lon": "-104.707177"
},
"label": "@Pilot Travel Center #402"
},
"waypoint": false,
"stopSequence": 7,
"stopType": "RestStopLong"
},
{
"plannedETA": "2023-11-27T08:28:24-07:00",
"currentETA": "2023-11-27T08:28:24-07:00",
"currentETD": "2023-11-27T08:58:24-07:00",
"earliestArrivalTime": "2023-11-27T08:13:24-07:00",
"latestArrivalTime": "2023-11-27T08:43:24-07:00",
"plannedDuration": 30.0,
"actualDuration": 0.0,
"plannedDepartureTime": "2023-11-27T08:58:24-07:00",
"stopStatus": "Open",
"stopArrivalStatus": "AtRisk",
"atRiskThreshold": 30,
"tooEarlyThreshold": null,
"legDistance": 490.374,
"legDriveDuration": 456.233,
"metadata": null,
"amenities": [
"Fuel",
"RoadsideAssistance",
"HotelNearby",
"Restaurant",
"Restrooms"
],
"truckServices": true,
"alternateRestStops": null,
"poiId": 7964,
"setId": 12,
"persistentId": 702462,
"activeDriver": 1,
"stopId": 1044395860,
"location": {
"address": {
"streetAddress": "Exit 70 I-80",
"city": "Delle",
"state": "UT",
"zip": "84029",
"county": null,
"country": "United States"
},
"coords": {
"lat": "40.762002",
"lon": "-112.782922"
},
"label": "@Delle City Station"
},
"waypoint": false,
"stopSequence": 8,
"stopType": "RestStopShort"
},
{
"plannedETA": "2023-11-27T11:04:16-08:00",
"currentETA": "2023-11-27T11:04:16-08:00",
"currentETD": "2023-11-27T21:04:16-08:00",
"earliestArrivalTime": "2023-11-27T10:49:16-08:00",
"latestArrivalTime": "2023-11-27T11:19:16-08:00",
"plannedDuration": 600.0,
"actualDuration": 0.0,
"plannedDepartureTime": "2023-11-27T21:04:16-08:00",
"stopStatus": "Open",
"stopArrivalStatus": "AtRisk",
"atRiskThreshold": 30,
"tooEarlyThreshold": null,
"legDistance": 199.751,
"legDriveDuration": 185.867,
"metadata": null,
"amenities": [
"Fuel",
"DEF",
"Twentyfour_hour",
"Ten_HourParking",
"NumTruckParkingSpaces: 60",
"Showers",
"Scale",
"ATM",
"Restaurant",
"Restrooms"
],
"truckServices": true,
"alternateRestStops": null,
"poiId": 9922,
"setId": 12,
"persistentId": 699072,
"activeDriver": 1,
"stopId": 1044395861,
"location": {
"address": {
"streetAddress": "791 Tenth St",
"city": "Carlin",
"state": "NV",
"zip": "89822",
"county": null,
"country": "United States"
},
"coords": {
"lat": "40.719706",
"lon": "-116.105797"
},
"label": "@Pilot Travel Center #387"
},
"waypoint": false,
"stopSequence": 9,
"stopType": "RestStopLong"
},
{
"plannedETA": "2023-11-28T04:40:24-08:00",
"currentETA": "2023-11-28T04:40:24-08:00",
"currentETD": "2023-11-28T04:40:24-08:00",
"earliestArrivalTime": "2023-09-20T23:00:00-08:00",
"latestArrivalTime": "2023-09-21T06:00:00-08:00",
"plannedDuration": 0.0,
"actualDuration": 0.0,
"plannedDepartureTime": "2023-11-28T04:40:24-08:00",
"stopStatus": "Open",
"stopArrivalStatus": "Late",
"atRiskThreshold": 30,
"tooEarlyThreshold": null,
"legDistance": 512.467,
"legDriveDuration": 456.133,
"metadata": null,
"amenities": null,
"truckServices": false,
"alternateRestStops": null,
"poiId": 0,
"setId": 0,
"persistentId": 0,
"activeDriver": 1,
"stopId": 1044395862,
"location": {
"address": {
"streetAddress": "4900 Marie P. DeBartolo Way",
"city": "Santa Clara",
"state": "CA",
"zip": "95054",
"county": "Santa Clara",
"country": null
},
"coords": {
"lat": "37.403862",
"lon": "-121.968648"
},
"label": "Levi's Stadium"
},
"waypoint": false,
"stopSequence": 10,
"stopType": "Destination"
}
],
"routingProfile": {
"routingProfileId": 140879875,
"vehicleType": "Truck",
"tollRoadType": "Use",
"truckDimensions": "Custom",
"maxHeight": 162.000000,
"maxWidth": 96.000000,
"totalLength": 240.000000,
"totalWeight": 9000.000000,
"maxWeightPerAxleGroup": 0.0,
"totalWeightPerAxle": 0.000000,
"congestionZone": 0,
"environmentalZone": 0,
"hazmatType": "None",
"tunnelRestriction": null,
"displayRestrictions": "BasedOnTruckRestrictions",
"nationalNetwork": true,
"fiftyThreeFootTrailer": true,
"overrideRestrictions": false,
"propane": false,
"ferryClosed": false,
"vehicleGroups": [],
"revision": "November 2023",
"statusDeleted": false,
"unitsOfMeasure": "English",
"numAxles": 2,
"lcv": false,
"distanceUnits": "Miles",
"tollDiscouraged": false,
"classOverrides": "NationalNetwork",
"highwayOnly": false,
"includeFerryDistance": false,
"tollCurrency": 0,
"exchangeRate": "1.000",
"fuelUnits": "Gallons",
"costGHG": "1.00",
"costPerFuelUnit": "1.00",
"fuelEconomyLoad": "1.00",
"fuelEconomyEmpty": "1.00",
"costMaintLoad": "1.00",
"costMaintEmpty": "1.00",
"costTimeLoad": "1.00",
"costTimeEmpty": "1.00",
"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": null,
"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
}
},
"tspDriverId": null,
"vehicle": {
"tspVehicleId": "Documentation 1",
"isHighValue": false
},
"plannedStartTime": "2023-11-24T14:41:40+00:00",
"plannedStartLocation": {
"address": {
"streetAddress": "42 North Beacon Street (US-20)",
"city": "Watertown",
"state": "MA",
"zip": "02472",
"county": "Middlesex",
"country": "United States"
},
"coords": {
"lat": "42.364551",
"lon": "-71.180604"
},
"label": null
},
"allowDriverToDeclineTrip": true,
"oocThreshold": 2.0,
"hosSolution": "ALK",
"sendOptions": {
"adherenceLevel": "None",
"offRouteThreshold": 2.0,
"originThreshold": 1.0
},
"driverHoursOfService": {
"useCycleReset": null,
"enabled": true,
"terminalDayStartTime": null,
"remainingDriveTimeUntilBreak": null,
"useCustomPlaces": null,
"remainingDriveTime": null,
"teamDriving": null,
"remainingOnDutyTime": null,
"customBreakDurations": null,
"hoSRuleType": "USFed607LH",
"remainingCycleDutyTime": null,
"maxAlternateRestStops": null,
"cycleTimeGains": null,
"skipRestStopInsertion": null,
"lastCycleResetDateTime": null,
"activeDriver": null,
"last24HourBreakDateTime": null,
"maxDrivingTimeInDay": null,
"remainingCanadaOnDutyTime": null,
"maxOnDutyTimeInDay": null,
"remainingDriveTimeUntilBreakDriver2": null,
"maxOnDutyTimeInWeek": null,
"remainingDriveTimeDriver2": null,
"adverseConditionException": null,
"remainingOnDutyTimeDriver2": null,
"poiStopsReturned": null,
"remainingCycleDutyTimeDriver2": null,
"hosWindowStart": null,
"cycleTimeGainsDriver2": null,
"hosWindowEnd": null,
"lastCycleResetDateTimeDriver2": null,
"last24HourBreakDateTimeDriver2": null,
"remainingCanadaOnDutyTimeDriver2": null,
"alternateHoSRuleType": null,
"remainingTimeUntilFullDayBreak": null,
"remainingTimeUntilFullDayBreakDriver2": null,
"remainingDrivingTimeInWeek": null,
"remainingOnDutyTimeInDay": null,
"remainingConsecutiveDrivingTime": null,
"remainingFortnightlyTime": null,
"currentOffDutyTime": null,
"currentOffDutyTimeDriver2": null
},
"afSetIds": null,
"afSetNames": null,
"costPerMile": 1.725,
"tripOptions": [],
"region": "NA",
"externalOrderIds": [],
"alkTripId": 96301560
}
Error Conditions
Field | Description | Type | Values |
---|---|---|---|
ErrorType
| The type of error that occurred. |
string | ArgumentException - a required field was not supplied or an invalid value was passed. Correct the error and try again.FuelStopException - there was a problem getting fuel stops for your route. RestStopException - there was a problem getting rest stops for your route.
|
Description
| An error message describing what occurred. |
string | This message will describe how to fix the error (in terms of validation or input error) or what went wrong. In the case of timeouts on rest stop and fuel exceptions, the best course of action may be to try again later. |
ErrorCode
| A numerical error code (if applicable). |
integer |
ArgumentException example
{
"ErrorType": "ArgumentException",
"Description": "tmsCustomerId must be supplied.",
"ErrorCode": null
}