[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-12-22。"],[[["The Route Optimization API minimizes the total cost of routes by assigning `ShipmentRoute`s to `Vehicle`s."],["The API takes an `OptimizeToursRequest` with a `ShipmentModel` and returns an `OptimizeToursResponse` with `ShipmentRoute`s."],["The `ShipmentModel` defines the `Shipment`s to be transported, the `Vehicle`s available, and the cost components."],["The API considers various factors, including traffic, time windows, and vehicle capacities, to optimize the routes."],["Authorization is required using OAuth scope `https://www.googleapis.com/auth/cloud-platform` and IAM permission `routeoptimization.locations.use`."]]],["This content details the `OptimizeTours` API, which optimizes routes for shipments using vehicles. The core action involves sending a `POST` request to `https://routeoptimization.googleapis.com/v1/{parent=projects/*}:optimizeTours`, specifying a `ShipmentModel` within the request body. This model defines shipments, vehicles, and cost parameters. The API returns an `OptimizeToursResponse` that details `ShipmentRoute`s, assigning visits to each vehicle to minimize costs. The request body allows for parameters like `timeout`, `solvingMode`, and `injectedSolutionConstraint` to further fine-tune the route optimization process.\n"]]