Class protos.google.maps.routeoptimization.v1.RouteOptimization (0.2.0)

Represents a RouteOptimization

Inheritance

$protobuf.rpc.Service > protos.google.maps.routeoptimization.v1.RouteOptimization

Package

@googlemaps/routeoptimization

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new RouteOptimization service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

batchOptimizeTours(request, callback)

public batchOptimizeTours(request: google.maps.routeoptimization.v1.IBatchOptimizeToursRequest, callback: google.maps.routeoptimization.v1.RouteOptimization.BatchOptimizeToursCallback): void;

Calls BatchOptimizeTours.

Parameters
Name Description
request IBatchOptimizeToursRequest

BatchOptimizeToursRequest message or plain object

callback BatchOptimizeToursCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

batchOptimizeTours(request)

public batchOptimizeTours(request: google.maps.routeoptimization.v1.IBatchOptimizeToursRequest): Promise<google.longrunning.Operation>;

Calls BatchOptimizeTours.

Parameter
Name Description
request IBatchOptimizeToursRequest

BatchOptimizeToursRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RouteOptimization;

Creates new RouteOptimization service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
RouteOptimization

RPC service. Useful where requests and/or responses are streamed.

optimizeTours(request, callback)

public optimizeTours(request: google.maps.routeoptimization.v1.IOptimizeToursRequest, callback: google.maps.routeoptimization.v1.RouteOptimization.OptimizeToursCallback): void;

Calls OptimizeTours.

Parameters
Name Description
request IOptimizeToursRequest

OptimizeToursRequest message or plain object

callback OptimizeToursCallback

Node-style callback called with the error, if any, and OptimizeToursResponse

Returns
Type Description
void

optimizeTours(request)

public optimizeTours(request: google.maps.routeoptimization.v1.IOptimizeToursRequest): Promise<google.maps.routeoptimization.v1.OptimizeToursResponse>;

Calls OptimizeTours.

Parameter
Name Description
request IOptimizeToursRequest

OptimizeToursRequest message or plain object

Returns
Type Description
Promise<google.maps.routeoptimization.v1.OptimizeToursResponse>

Promise