Optimizes vehicle tours for one or more OptimizeToursRequest
messages as a batch.
This method is a Long Running Operation (LRO). The inputs for optimization (OptimizeToursRequest
messages) and outputs (OptimizeToursResponse
messages) are read/written from/to Cloud Storage in user-specified format. Like the locations.optimizeTours
method, each OptimizeToursRequest
contains a ShipmentModel
and returns an OptimizeToursResponse
containing ShipmentRoute
s, which are a set of routes to be performed by vehicles minimizing the overall cost.
HTTP request
POST https://cloudoptimization.googleapis.com/v1/{parent}:batchOptimizeTours
Path parameters
Parameters | |
---|---|
parent |
Required. Target project and location to make a call. Format: If no location is specified, a region will be chosen automatically. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"modelConfigs": [
{
object ( |
Fields | |
---|---|
modelConfigs[] |
Required. Input/Output information each purchase model, such as file paths and data formats. |
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent
resource:
cloudoptimization.operations.create
For more information, see the IAM documentation.