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-08-31 UTC."],[],["The resource described has no persistent data. Two methods are available: `batchOptimizeTours` and `optimizeTours`. `batchOptimizeTours` optimizes vehicle tours for multiple `OptimizeToursRequest` messages in a single batch. `optimizeTours` processes a single `OptimizeToursRequest`, which includes a `ShipmentModel`, and returns an `OptimizeToursResponse` with optimized `ShipmentRoute`s, aiming to minimize the overall cost of vehicle routes.\n"]]