Sends an OptimizeToursRequest containing a ShipmentModel and returns an OptimizeToursResponse containing ShipmentRoutes, which are a set of routes to be performed by vehicles minimizing the overall cost.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-13 UTC."],[[["\u003cp\u003eThis resource represents Route Optimization within Google Maps Platform and does not store persistent data.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two primary methods: \u003ccode\u003ebatchOptimizeTours\u003c/code\u003e for optimizing multiple vehicle tours at once and \u003ccode\u003eoptimizeTours\u003c/code\u003e for optimizing a single set of routes based on a provided model.\u003c/p\u003e\n"],["\u003cp\u003eThese methods allow users to minimize overall transportation costs by generating efficient vehicle routes for deliveries or other logistical operations.\u003c/p\u003e\n"]]],["The resource described has no persistent data. Key actions involve optimizing vehicle tours. The `batchOptimizeTours` method optimizes tours for multiple `OptimizeToursRequest` messages in a batch. The `optimizeTours` method handles a single `OptimizeToursRequest`, which includes a `ShipmentModel`, and returns an `OptimizeToursResponse`. This response provides `ShipmentRoute`s designed to minimize the overall cost of the routes.\n"],null,["- [Resource](#RESOURCE_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource\n\nThere is no persistent data associated with this resource.\n\n| Methods ||\n|------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [batchOptimizeTours](/maps/documentation/route-optimization/reference/rest/v1/projects/batchOptimizeTours) | Optimizes vehicle tours for one or more `OptimizeToursRequest` messages as a batch. |\n| [optimizeTours](/maps/documentation/route-optimization/reference/rest/v1/projects/optimizeTours) | Sends an `OptimizeToursRequest` containing a `ShipmentModel` and returns an `OptimizeToursResponse` containing `ShipmentRoute`s, which are a set of routes to be performed by vehicles minimizing the overall cost. |\n| [optimizeToursLongRunning](/maps/documentation/route-optimization/reference/rest/v1/projects/optimizeToursLongRunning) | This is a variant of the [OptimizeTours](/maps/documentation/route-optimization/reference/rest/v1/projects.locations/optimizeTours#google.maps.routeoptimization.v1.RouteOptimization.OptimizeTours) method designed for optimizations with large timeout values. |\n| [optimizeToursUri](/maps/documentation/route-optimization/reference/rest/v1/projects/optimizeToursUri) | This is a variant of the [OptimizeToursLongRunning](/maps/documentation/route-optimization/reference/rest/v1/projects.locations/optimizeToursLongRunning#google.maps.routeoptimization.v1.RouteOptimization.OptimizeToursLongRunning) method designed for optimizations with large timeout values and large input/output sizes. |"]]