struct Google::Maps::RouteOptimization::Shipment

Overview

Single item shipment from pickup(s) to delivery(s)

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 allowed_vehicle_indices : Array(Int32) #

Vehicles that may perform this shipment


def costs_per_vehicle : Array(Float64) #

Cost per vehicle to perform shipment


def costs_per_vehicle_indices : Array(Int32) #

Indices that costs_per_vehicle applies to


def deliveries : Array(VisitRequest) #

Set of available delivery locations


def display_name : String | Nil #

Display name (up to 63 UTF-8 chars)


def ignore : Bool | Nil #

Whether to skip this shipment


def label : String | Nil #

Label for this shipment


def load_demands : Hash(String, Load) #

Load demands of the shipment


def penalty_cost : Float64 | Nil #

Cost if shipment is not completed


def pickup_to_delivery_absolute_detour_limit : String | Nil #

Maximum absolute detour time


def pickup_to_delivery_relative_detour_limit : Float64 | Nil #

Maximum relative detour time


def pickup_to_delivery_time_limit : String | Nil #

Maximum time between pickup and delivery


def pickups : Array(VisitRequest) #

Set of available pickup locations


def shipment_type : String | Nil #

Type classification for this shipment