API Reference
API Reference

The unscheduledStops field is an array that lists all of your orders that could not be scheduled due to either constraint violations, geographically infeasible locations, or due to errors is geocoding the address of the order.

{
    "routeSchedule": {
        "unscheduledStops": [
          {unscheduledStop 1},
          {unscheduledStop 2},
          ...
          {unscheduledStop n}
        ],
        ...
    },
    ...
}

An unscheduledStop object looks like this:

{
    "name": "stop_5",
    "load": 600000,
    "duration": 4,
    "eventUuid": "6ec53b3c-02d9-4283-9ac1-af574abd5b49",
    "isScheduled": false,
    "locations": [
        {
            "address": "dundas square, toronto, ontario, canada",
            "latitude": 43.655976,
            "longitude": -79.380373,
            "active": true,
            "status": "Validated"
        }
    ],
    "unscheduledReason": {
        "reason": "Cannot be scheduled due to constraints."
    },
    "timeWindows": [
        {
            "startTime": "16:00",
            "endTime": "22:00"
        }
    ]
}
FieldsTypeDescription
nameStringName of the order assigned within the orders object
loadIntLoad assigned to the order
durationIntService time for the order (in seconds)
eventUuidString UuidA unique Id used to identify the order with Routific's ecosystem. This eventUuid can be used to cross-reference the orders in the routeScenario.stops array
isScheduledbooleanIndicates whether an order has been scheduled to a route
locationsArray of location objectsProvides additional details related to the service location of the order
unscheduledReasonobjectProvides information or reason as to why the order couldn't be scheduled to a route
timeWindowsArray of time-window objectsProvides information on service time windows for the current order