하나 이상의 OptimizeToursRequest 메시지에 대해 차량 투어를 일괄적으로 최적화합니다.
이 메서드는 장기 실행 작업 (LRO)입니다. 최적화 입력 (OptimizeToursRequest 메시지) 및 출력 (OptimizeToursResponse 메시지)은 사용자 지정 형식으로 Cloud Storage에서 읽고 씁니다. projects.optimizeTours 메서드와 마찬가지로 각 OptimizeToursRequest에는 ShipmentModel가 포함되어 있으며, 전체 비용을 최소화하면서 차량이 실행할 경로 집합인 ShipmentRoute 필드가 포함된 OptimizeToursResponse를 반환합니다.
사용자는 operations.get를 폴링하여 LRO 상태를 확인할 수 있습니다.
LRO done 필드가 false이면 하나 이상의 요청이 아직 처리되고 있는 것입니다. 다른 요청은 성공적으로 완료되었을 수 있으며 Cloud Storage에서 결과를 확인할 수 있습니다.
LRO의 done 필드가 true이면 모든 요청이 처리된 것입니다. 처리가 완료된 요청의 결과는 Cloud Storage에서 확인할 수 있습니다. 실패한 요청의 결과는 Cloud Storage에서 사용할 수 없습니다. LRO의 error 필드가 설정된 경우 실패한 요청 중 하나의 오류가 포함됩니다.
HTTP 요청
POST https://routeoptimization.googleapis.com/v1/{parent=projects/*}:batchOptimizeTours
[[["이해하기 쉬움","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"]],["최종 업데이트: 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"]]