Reference documentation and code samples for the Google Maps Route Optimization V1 Client class OptimizeToursResponse.
Response after solving a tour optimization problem containing the routes
followed by each vehicle, the shipments which have been skipped and the
overall cost of the solution.
Generated from protobuf messagegoogle.maps.routeoptimization.v1.OptimizeToursResponse
List of all the validation errors that we were able to detect independently. See the "MULTIPLE ERRORS" explanation for theOptimizeToursValidationErrormessage. Instead of errors, this will include warnings in the casesolving_modeisDEFAULT_SOLVE.
List of all the validation errors that we were able to detect
independently. See the "MULTIPLE ERRORS" explanation for theOptimizeToursValidationErrormessage. Instead of errors, this will include warnings in the casesolving_modeisDEFAULT_SOLVE.
List of all the validation errors that we were able to detect
independently. See the "MULTIPLE ERRORS" explanation for theOptimizeToursValidationErrormessage. Instead of errors, this will include warnings in the casesolving_modeisDEFAULT_SOLVE.
[[["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 OptimizeToursResponse (0.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.1 (latest)](/php/docs/reference/maps-routeoptimization/latest/V1.OptimizeToursResponse)\n- [0.4.0](/php/docs/reference/maps-routeoptimization/0.4.0/V1.OptimizeToursResponse)\n- [0.3.3](/php/docs/reference/maps-routeoptimization/0.3.3/V1.OptimizeToursResponse)\n- [0.2.0](/php/docs/reference/maps-routeoptimization/0.2.0/V1.OptimizeToursResponse)\n- [0.1.0](/php/docs/reference/maps-routeoptimization/0.1.0/V1.OptimizeToursResponse) \nReference documentation and code samples for the Google Maps Route Optimization V1 Client class OptimizeToursResponse.\n\nResponse after solving a tour optimization problem containing the routes\nfollowed by each vehicle, the shipments which have been skipped and the\noverall cost of the solution.\n\nGenerated from protobuf message `google.maps.routeoptimization.v1.OptimizeToursResponse`\n\nNamespace\n---------\n\nGoogle \\\\ Maps \\\\ RouteOptimization \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getRoutes\n\nRoutes computed for each vehicle; the i-th route corresponds to the i-th\nvehicle in the model.\n\n### setRoutes\n\nRoutes computed for each vehicle; the i-th route corresponds to the i-th\nvehicle in the model.\n\n### getRequestLabel\n\nCopy of the\n[OptimizeToursRequest.label](/php/docs/reference/maps-routeoptimization/latest/V1.OptimizeToursRequest#_Google_Maps_RouteOptimization_V1_OptimizeToursRequest__getLabel__),\nif a label was specified in the request.\n\n### setRequestLabel\n\nCopy of the\n[OptimizeToursRequest.label](/php/docs/reference/maps-routeoptimization/latest/V1.OptimizeToursRequest#_Google_Maps_RouteOptimization_V1_OptimizeToursRequest__getLabel__),\nif a label was specified in the request.\n\n### getSkippedShipments\n\nThe list of all shipments skipped.\n\n### setSkippedShipments\n\nThe list of all shipments skipped.\n\n### getValidationErrors\n\nList of all the validation errors that we were able to detect\nindependently. See the \"MULTIPLE ERRORS\" explanation for the\n[OptimizeToursValidationError](/php/docs/reference/maps-routeoptimization/latest/V1.OptimizeToursValidationError)\nmessage. Instead of errors, this will include warnings in the case\n`solving_mode` is `DEFAULT_SOLVE`.\n\n### setValidationErrors\n\nList of all the validation errors that we were able to detect\nindependently. See the \"MULTIPLE ERRORS\" explanation for the\n[OptimizeToursValidationError](/php/docs/reference/maps-routeoptimization/latest/V1.OptimizeToursValidationError)\nmessage. Instead of errors, this will include warnings in the case\n`solving_mode` is `DEFAULT_SOLVE`.\n\n### getMetrics\n\nDuration, distance and usage metrics for this solution.\n\n### hasMetrics\n\n### clearMetrics\n\n### setMetrics\n\nDuration, distance and usage metrics for this solution."]]