Wysyła OptimizeToursRequest zawierające ShipmentModel i zwraca OptimizeToursResponse zawierające ShipmentRoute, czyli zestaw tras, które mają być wykonane przez pojazdy w taki sposób, aby zminimalizować łączny koszt.
Jest to wariant metody OptimizeToursLongRunning, która została zaprojektowana z myślą o optymalizacjach z dużymi wartościami limitu czasu i dużymi rozmiarami danych wejściowych i wyjściowych.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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"]]