Reference documentation and code samples for the Google Maps Route Optimization V1 Client class ShipmentTypeIncompatibility.
Specifies incompatibilties between shipments depending on their
shipment_type. The appearance of incompatible shipments on the same route is
restricted based on the incompatibility mode.
Generated from protobuf message google.maps.routeoptimization.v1.ShipmentTypeIncompatibility
Namespace
Google \ Maps \ RouteOptimization \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ types
array
List of incompatible types. Two shipments having different shipment_types among those listed are "incompatible".
↳ incompatibility_mode
int
Mode applied to the incompatibility.
getTypes
List of incompatible types. Two shipments having different shipment_types
among those listed are "incompatible".
[[["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 ShipmentTypeIncompatibility (0.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.1 (latest)](/php/docs/reference/maps-routeoptimization/latest/V1.ShipmentTypeIncompatibility)\n- [0.4.0](/php/docs/reference/maps-routeoptimization/0.4.0/V1.ShipmentTypeIncompatibility)\n- [0.3.3](/php/docs/reference/maps-routeoptimization/0.3.3/V1.ShipmentTypeIncompatibility)\n- [0.2.0](/php/docs/reference/maps-routeoptimization/0.2.0/V1.ShipmentTypeIncompatibility)\n- [0.1.0](/php/docs/reference/maps-routeoptimization/0.1.0/V1.ShipmentTypeIncompatibility) \nReference documentation and code samples for the Google Maps Route Optimization V1 Client class ShipmentTypeIncompatibility.\n\nSpecifies incompatibilties between shipments depending on their\nshipment_type. The appearance of incompatible shipments on the same route is\nrestricted based on the incompatibility mode.\n\nGenerated from protobuf message `google.maps.routeoptimization.v1.ShipmentTypeIncompatibility`\n\nNamespace\n---------\n\nGoogle \\\\ Maps \\\\ RouteOptimization \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTypes\n\nList of incompatible types. Two shipments having different `shipment_types`\namong those listed are \"incompatible\".\n\n### setTypes\n\nList of incompatible types. Two shipments having different `shipment_types`\namong those listed are \"incompatible\".\n\n### getIncompatibilityMode\n\nMode applied to the incompatibility.\n\n### setIncompatibilityMode\n\nMode applied to the incompatibility."]]