Reference documentation and code samples for the Google Maps Route Optimization V1 Client class IncompatibilityMode.
Modes defining how the appearance of incompatible shipments are restricted
on the same route.
Protobuf type google.maps.routeoptimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode
Namespace
Google \ Maps \ RouteOptimization \ V1 \ ShipmentTypeIncompatibility
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
INCOMPATIBILITY_MODE_UNSPECIFIED
Value: 0
Unspecified incompatibility mode. This value should never be used.
Generated from protobuf enum INCOMPATIBILITY_MODE_UNSPECIFIED = 0;
NOT_PERFORMED_BY_SAME_VEHICLE
Value: 1
In this mode, two shipments with incompatible types can never share the
same vehicle.
Generated from protobuf enum NOT_PERFORMED_BY_SAME_VEHICLE = 1;
NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY
Value: 2
For two shipments with incompatible types with the
NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY incompatibility mode:
If both are pickups only (no deliveries) or deliveries only (no
pickups), they cannot share the same vehicle at all.
If one of the shipments has a delivery and the other a pickup, the two
shipments can share the same vehicle iff the former shipment is
delivered before the latter is picked up.
Generated from protobuf enum NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY = 2;
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Maps Route Optimization V1 Client - Class IncompatibilityMode (0.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.1 (latest)](/php/docs/reference/maps-routeoptimization/latest/V1.ShipmentTypeIncompatibility.IncompatibilityMode)\n- [0.4.0](/php/docs/reference/maps-routeoptimization/0.4.0/V1.ShipmentTypeIncompatibility.IncompatibilityMode)\n- [0.3.3](/php/docs/reference/maps-routeoptimization/0.3.3/V1.ShipmentTypeIncompatibility.IncompatibilityMode)\n- [0.2.0](/php/docs/reference/maps-routeoptimization/0.2.0/V1.ShipmentTypeIncompatibility.IncompatibilityMode)\n- [0.1.0](/php/docs/reference/maps-routeoptimization/0.1.0/V1.ShipmentTypeIncompatibility.IncompatibilityMode) \nReference documentation and code samples for the Google Maps Route Optimization V1 Client class IncompatibilityMode.\n\nModes defining how the appearance of incompatible shipments are restricted\non the same route.\n\nProtobuf type `google.maps.routeoptimization.v1.ShipmentTypeIncompatibility.IncompatibilityMode`\n\nNamespace\n---------\n\nGoogle \\\\ Maps \\\\ RouteOptimization \\\\ V1 \\\\ ShipmentTypeIncompatibility\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### INCOMPATIBILITY_MODE_UNSPECIFIED\n\n Value: 0\n\nUnspecified incompatibility mode. This value should never be used.\n\nGenerated from protobuf enum `INCOMPATIBILITY_MODE_UNSPECIFIED = 0;`\n\n### NOT_PERFORMED_BY_SAME_VEHICLE\n\n Value: 1\n\nIn this mode, two shipments with incompatible types can never share the\nsame vehicle.\n\nGenerated from protobuf enum `NOT_PERFORMED_BY_SAME_VEHICLE = 1;`\n\n### NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY\n\n Value: 2\n\nFor two shipments with incompatible types with the\n`NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY` incompatibility mode:\n\n- If both are pickups only (no deliveries) or deliveries only (no\n pickups), they cannot share the same vehicle at all.\n\n- If one of the shipments has a delivery and the other a pickup, the two\n shipments can share the same vehicle iff the former shipment is\n delivered before the latter is picked up.\n\nGenerated from protobuf enum `NOT_IN_SAME_VEHICLE_SIMULTANEOUSLY = 2;`"]]