Araç turlarını bir veya daha fazla OptimizeToursRequest mesajı için toplu olarak optimize eder.
Bu yöntem, uzun süreli bir işlemdir (LRO). Optimizasyon girişleri (OptimizeToursRequest mesajları) ve çıkışları (OptimizeToursResponse mesajları), kullanıcı tarafından belirtilen biçimde Cloud Storage'dan okunur ve Cloud Storage'a yazılır. projects.optimizeTours yönteminde olduğu gibi her OptimizeToursRequest bir ShipmentModel içerir ve toplam maliyeti en aza indirecek şekilde araçlar tarafından gerçekleştirilecek bir rota grubu olan ShipmentRoute alanları içeren bir OptimizeToursResponse döndürür.
Kullanıcı, LRO'nun durumunu kontrol etmek için operations.get kaynağını yoklayabilir:
LRO done alanı yanlışsa en az bir istek hâlâ işlenmektedir. Diğer istekler başarıyla tamamlanmış olabilir ve sonuçları Cloud Storage'da mevcuttur.
LRO'nun done alanı doğruysa tüm istekler işlenmiştir. Başarıyla işlenen isteklerin sonuçları Cloud Storage'da kullanılabilir. Başarısız olan isteklerin sonuçları Cloud Storage'da kullanılamaz. LRO'nun error alanı ayarlanmışsa başarısız isteklerden birindeki hatayı içerir.
HTTP isteği
POST https://routeoptimization.googleapis.com/v1/{parent=projects/*}:batchOptimizeTours
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2024-12-22 UTC."],[[["The `batchOptimizeTours` method optimizes vehicle tours for multiple requests as a Long Running Operation (LRO), reading inputs and writing outputs to Cloud Storage."],["Users can monitor the LRO status using `operations.get`, with results becoming available in Cloud Storage upon completion."],["The request body requires `modelConfigs` which specifies file paths and data formats for each model using the `AsyncModelConfig` structure."],["Authorization requires the `https://www.googleapis.com/auth/cloud-platform` OAuth scope and the `routeoptimization.operations.create` IAM permission."],["Successful responses contain an `Operation` instance providing information about the ongoing operation."]]],["This API method `batchOptimizeTours` optimizes vehicle tours for multiple `OptimizeToursRequest` messages via a Long Running Operation (LRO). Inputs and outputs are stored in Cloud Storage. Each request includes a `ShipmentModel`, and returns `ShipmentRoute` fields, minimizing overall cost. Users can check the LRO's status via `operations.get`. The `done` field indicates completion, while the `error` field shows failures. Requires `routeoptimization.operations.create` IAM permission and `cloud-platform` OAuth scope. The parent parameter will be used for routing.\n"]]