Element Type
|
Field
|
Description
|
Example
|
---|---|---|---|
jobInstanceId
|
Job reference ID
|
||
routeId
|
Route ID
|
||
resourceId
|
The ID of the technician who is assigned to the route.
|
JohnSmith
|
|
startLocation
|
Element ID of the technician or starting event where the technician begins the route.
|
JohnSmith
|
|
endLocation
|
Element ID of the technician or ending event where the technician ends the route.
|
JohnSmith
|
|
scheduledElements
|
id
|
The ID of the scheduled element. Can be a work order number or event name.
|
WO-00305986
or
Event-1
|
type
|
Type of element. Can be a work order or an event.
|
EVENT
or
WORK_ORDER
|
|
booking>resource
|
Resource attached to the scheduled element.
|
JohnSmith
|
|
booking>startTime
|
Scheduled resource start time to work on the scheduled element.
Format: UTC.
|
2020-03-19T09:00:00Z
|
|
booking>driveDuration
|
Scheduled drive time will be taken to drive to the location of this scheduled element.
Format: PT<h>H<m>M<s>S
Where h is for hours, m for minutes, and s for seconds.
|
PT5M45.945S
|
|
booking>arrivalTime
|
The scheduled arrival time for the scheduled element.
Format: UTC.
|
2020-03-19T09:05:45.945Z
|
|
booking>idleDuration
|
The scheduled idle time for the scheduled element.
Format: PT<h>H<m>M<s>S
Where h is for hours, m for minutes, and s for seconds.
|
PT0S
|
|
booking>serviceDuration
|
The scheduled time that will be taken to service for this scheduled element.
Format: PT<h>H<m>M<s>S
Where h is for hours, m for minutes, and s for seconds.
|
PT1H
|
|
booking>endTime
|
Scheduled element end time.
Format: UTC.
|
2020-03-19T10:05:45.945Z
|
|
booking>violations
|
Violations for this element, if any.
|
||
routeSummary
|
startTime
|
Scheduled route start time.
Format: UTC.
|
2020-03-19T09:00:00Z
|
endTime
|
Scheduled route end time.
Format: UTC.
|
2020-03-19T12:11:31.89Z
|
|
routeDuration
|
Total time the technician spends in the route.
Format: PT<h>H<m>M<s>S
Where h is for hours, m for minutes, and s for seconds.
|
PT3H17M17.835S
|
|
drivingDuration
|
Total time spent in transit in the route.
Format: PT<h>H<m>M<s>S
Where h is for hours, m for minutes, and s for seconds.
|
PT11M31.89S
|
|
distance
|
Total distance covered in transit in the route.
Format: <distance<unit>
|
15221.587436035494 m
|
|
serviceDuration
|
The sum of service durations for all the work orders and events in the route.
Format: PT<h>H<m>M<s>S
Where h is for hours, m for minutes, and s for seconds.
|
PT3H
|
|
idleDuration
|
Total idle time in the route.
Format: PT<h>H<m>M<s>S
Where h is for hours, m for minutes, and s for seconds.
|
PT0S
|
|
returnDriveDuration
|
Drive time from the last event in the route to the technician's end location.
Format: PT<h>H<m>M<s>S
Where h is for hours, m for minutes, and s for seconds.
|
PT5M45.945S
|
|
returnDistance
|
Drive distance from the last event in the route to the technician's end location.
Format: <distance<unit>
|
7610.793718017747 m
|
|
If there is a large amount of unresourced or invalid data (work orders, events, or resources), the JSON files are batched. The batch size is 20.
|
Element Type
|
Field
|
Description
|
Example
|
---|---|---|---|
jobInstanceId
|
Job reference ID
|
||
unassignedSchedulingElements
|
id
|
Element identifier which was passed in the scheduling input JSON.
|
a42e3b20-036f-4429-a374-3cdeb6939f1e
|
reason
|
Reason for unresourcing. This is an error message. For the list of error messages, see Error Codes and Messages.
|
The maximum distance of the technician exceeded constraint is violated.
|
|
unscheduledElementType
|
Can be one of the following:
BAD_WORK_ORDER, BAD_RESOURCE, BAD_EVENT, UNASSIGNED_WORK_ORDER, UNASSIGNED_EVENT.
The BAD prefix indicates input data was bad and could not be used for optimization. The UNASSIGNED prefix indicates was considered for optimization and got unassigned with the reason mentioned.
|