[[["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 SearchMode (0.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.1 (latest)](/php/docs/reference/maps-routeoptimization/latest/V1.OptimizeToursRequest.SearchMode)\n- [0.4.0](/php/docs/reference/maps-routeoptimization/0.4.0/V1.OptimizeToursRequest.SearchMode)\n- [0.3.3](/php/docs/reference/maps-routeoptimization/0.3.3/V1.OptimizeToursRequest.SearchMode)\n- [0.2.0](/php/docs/reference/maps-routeoptimization/0.2.0/V1.OptimizeToursRequest.SearchMode)\n- [0.1.0](/php/docs/reference/maps-routeoptimization/0.1.0/V1.OptimizeToursRequest.SearchMode) \nReference documentation and code samples for the Google Maps Route Optimization V1 Client class SearchMode.\n\nMode defining the behavior of the search, trading off latency versus\nsolution quality. In all modes, the global request deadline is enforced.\n\nProtobuf type `google.maps.routeoptimization.v1.OptimizeToursRequest.SearchMode`\n\nNamespace\n---------\n\nGoogle \\\\ Maps \\\\ RouteOptimization \\\\ V1 \\\\ OptimizeToursRequest\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### SEARCH_MODE_UNSPECIFIED\n\n Value: 0\n\nUnspecified search mode, equivalent to `RETURN_FAST`.\n\nGenerated from protobuf enum `SEARCH_MODE_UNSPECIFIED = 0;`\n\n### RETURN_FAST\n\n Value: 1\n\nStop the search after finding the first good solution.\n\nGenerated from protobuf enum `RETURN_FAST = 1;`\n\n### CONSUME_ALL_AVAILABLE_TIME\n\n Value: 2\n\nSpend all the available time to search for better solutions.\n\nGenerated from protobuf enum `CONSUME_ALL_AVAILABLE_TIME = 2;`"]]