struct Google::Maps::RouteOptimization::Visit

Overview

A visit performed during a route. This visit corresponds to a pickup or delivery of a Shipment

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 detour : String #

Extra detour time due to the shipments visited on the route before the visit


def is_pickup : Bool #

If true the visit corresponds to a pickup of a Shipment. Otherwise, it corresponds to a delivery


def load_demands : Hash(String, Load) #

Total visit load demand


def shipment_index : Int32 #

Index of the shipments field in the source ShipmentModel


def shipment_label : String | Nil #

Copy of the corresponding Shipment.label


def start_time : Time #

Time at which the visit starts


def visit_label : String | Nil #

Copy of the corresponding VisitRequest.label


def visit_request_index : Int32 #

Index of VisitRequest in either the pickup or delivery field of the Shipment