enum
Google::Maps::RouteOptimization::SkippedShipment::Reason::Code
Overview
Code identifying the reason type for skipped shipments
Defined in:
maps.crEnum Members
-
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 Method Summary
-
#cannot_be_performed_within_vehicle_distance_limit?
Returns
trueif this enum value equalsCANNOT_BE_PERFORMED_WITHIN_VEHICLE_DISTANCE_LIMIT -
#cannot_be_performed_within_vehicle_duration_limit?
Returns
trueif this enum value equalsCANNOT_BE_PERFORMED_WITHIN_VEHICLE_DURATION_LIMIT -
#cannot_be_performed_within_vehicle_time_windows?
Returns
trueif this enum value equalsCANNOT_BE_PERFORMED_WITHIN_VEHICLE_TIME_WINDOWS -
#cannot_be_performed_within_vehicle_travel_duration_limit?
Returns
trueif this enum value equalsCANNOT_BE_PERFORMED_WITHIN_VEHICLE_TRAVEL_DURATION_LIMIT -
#code_unspecified?
Returns
trueif this enum value equalsCODE_UNSPECIFIED -
#demand_exceeds_vehicle_capacity?
Returns
trueif this enum value equalsDEMAND_EXCEEDS_VEHICLE_CAPACITY -
#no_vehicle?
Returns
trueif this enum value equalsNO_VEHICLE -
#vehicle_not_allowed?
Returns
trueif this enum value equalsVEHICLE_NOT_ALLOWED
Instance Method Detail
Returns true if this enum value equals CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DISTANCE_LIMIT
Returns true if this enum value equals CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DURATION_LIMIT
Returns true if this enum value equals CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TIME_WINDOWS
Returns true if this enum value equals CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TRAVEL_DURATION_LIMIT
Returns true if this enum value equals DEMAND_EXCEEDS_VEHICLE_CAPACITY