Reference documentation and code samples for the Google Maps Route Optimization V1 Client class BreakRule.
Rules to generate time breaks for a vehicle (e.g. lunch breaks). A break
is a contiguous period of time during which the vehicle remains idle at its
current position and cannot perform any visit. A break may occur:
during the travel between two visits (which includes the time right
before or right after a visit, but not in the middle of a visit), in
which case it extends the corresponding transit time between the visits,
or before the vehicle start (the vehicle may not start in the middle of
a break), in which case it does not affect the vehicle start time.
or after the vehicle end (ditto, with the vehicle end time).
Generated from protobuf message google.maps.routeoptimization.v1.BreakRule
[[["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 BreakRule (0.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.1 (latest)](/php/docs/reference/maps-routeoptimization/latest/V1.BreakRule)\n- [0.4.0](/php/docs/reference/maps-routeoptimization/0.4.0/V1.BreakRule)\n- [0.3.3](/php/docs/reference/maps-routeoptimization/0.3.3/V1.BreakRule)\n- [0.2.0](/php/docs/reference/maps-routeoptimization/0.2.0/V1.BreakRule)\n- [0.1.0](/php/docs/reference/maps-routeoptimization/0.1.0/V1.BreakRule) \nReference documentation and code samples for the Google Maps Route Optimization V1 Client class BreakRule.\n\nRules to generate time breaks for a vehicle (e.g. lunch breaks). A break\nis a contiguous period of time during which the vehicle remains idle at its\ncurrent position and cannot perform any visit. A break may occur:\n\n- during the travel between two visits (which includes the time right before or right after a visit, but not in the middle of a visit), in which case it extends the corresponding transit time between the visits,\n- or before the vehicle start (the vehicle may not start in the middle of\n a break), in which case it does not affect the vehicle start time.\n\n- or after the vehicle end (ditto, with the vehicle end time).\n\nGenerated from protobuf message `google.maps.routeoptimization.v1.BreakRule`\n\nNamespace\n---------\n\nGoogle \\\\ Maps \\\\ RouteOptimization \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getBreakRequests\n\nSequence of breaks. See the `BreakRequest` message.\n\n### setBreakRequests\n\nSequence of breaks. See the `BreakRequest` message.\n\n### getFrequencyConstraints\n\nSeveral `FrequencyConstraint` may apply. They must all be satisfied by\nthe `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`.\n\n### setFrequencyConstraints\n\nSeveral `FrequencyConstraint` may apply. They must all be satisfied by\nthe `BreakRequest`s of this `BreakRule`. See `FrequencyConstraint`."]]