struct Google::Maps::RouteOptimization::OptimizeToursResponse

Included Modules

Extended Modules

Defined in:

maps.cr

Constructors

Instance Method Summary

Macros inherited from module Google::Resource

define(name, *fields) define, field(var, key = nil, **options, &block) field, field!(var, key = nil, **options, &block) field!, field?(var, key = nil, **options, &block) field?

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(pull : MessagePack::Unpacker) #

Instance Method Detail

def metrics : Metrics #

Duration, distance and usage metrics for this solution.


def request_label : String | Nil #

Copy of the OptimizeToursRequest#label, if a label was specified in the request.


def routes : Array(ShipmentRoute) #

Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.


def skipped_shipments : Array(SkippedShipment) #

The list of all shipments skipped.


def validation_errors : Array(OptimizeToursValidationError) #

List of all the validation errors that we were able to detect independently. See the "MULTIPLE ERRORS" explanation for the OptimizeToursValidationError message. Instead of errors, this will include warnings in the case solvingMode is DEFAULT_SOLVE.