enum

Google::Maps::RouteOptimization::SkippedShipment::Reason::Code

Inherits Enum < Comparable < Value < Object

Code identifying the reason type for skipped shipments

Constants

CODE_UNSPECIFIED = 0

This should never be used

NO_VEHICLE = 1

There is no vehicle in the model making all shipments infeasible

DEMAND_EXCEEDS_VEHICLE_CAPACITY = 2

The demand of the shipment exceeds a vehicle's capacity for some capacity types

CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DISTANCE_LIMIT = 3

The minimum distance necessary to perform this shipment exceeds the vehicle's routeDistanceLimit

CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DURATION_LIMIT = 4

The minimum time necessary to perform this shipment, including travel time, wait time and service time exceeds the vehicle's routeDurationLimit

CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TRAVEL_DURATION_LIMIT = 5

Same as above but we only compare minimum travel time and the vehicle's travelDurationLimit

CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TIME_WINDOWS = 6

The vehicle cannot perform this shipment in the best-case scenario if it starts at its earliest start time

VEHICLE_NOT_ALLOWED = 7

The allowedVehicleIndices field of the shipment is not empty and this vehicle does not belong to it

Instance methods

cannot_be_performed_within_vehicle_distance_limit?

Returns true if this enum value equals CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DISTANCE_LIMIT

Source
cannot_be_performed_within_vehicle_duration_limit?

Returns true if this enum value equals CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DURATION_LIMIT

Source
cannot_be_performed_within_vehicle_time_windows?

Returns true if this enum value equals CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TIME_WINDOWS

Source
cannot_be_performed_within_vehicle_travel_duration_limit?

Returns true if this enum value equals CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TRAVEL_DURATION_LIMIT

Source
code_unspecified?

Returns true if this enum value equals CODE_UNSPECIFIED

Source
demand_exceeds_vehicle_capacity?

Returns true if this enum value equals DEMAND_EXCEEDS_VEHICLE_CAPACITY

Source
no_vehicle?

Returns true if this enum value equals NO_VEHICLE

Source
vehicle_not_allowed?

Returns true if this enum value equals VEHICLE_NOT_ALLOWED

Source