Gửi OptimizeToursRequest chứa ShipmentModel và trả về OptimizeToursResponse chứa ShipmentRoute. Đây là một tập hợp các tuyến đường mà xe sẽ thực hiện để giảm thiểu tổng chi phí.
Đây là một biến thể của phương thức OptimizeToursLongRunning được thiết kế để tối ưu hoá với các giá trị thời gian chờ lớn và kích thước đầu vào/đầu ra lớn.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-05-13 UTC."],[[["This resource represents Route Optimization within Google Maps Platform and does not store persistent data."],["It offers two primary methods: `batchOptimizeTours` for optimizing multiple vehicle tours at once and `optimizeTours` for optimizing a single set of routes based on a provided model."],["These methods allow users to minimize overall transportation costs by generating efficient vehicle routes for deliveries or other logistical operations."]]],["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"]]