Google::Maps::RouteOptimization::Visit
Inherits MessagePack::Serializable < JSON::Serializable < Google::Resource < Struct < Value < Object
A visit performed during a route. This visit corresponds to a pickup or delivery of a Shipment
Constructors
new(pull : JSON::PullParser)
new(pull : MessagePack::Unpacker)
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance methods
detour
Extra detour time due to the shipments visited on the route before the visit
is_pickup
If true the visit corresponds to a pickup of a Shipment. Otherwise, it corresponds to a delivery
load_demands
Total visit load demand
shipment_index
Index of the shipments field in the source ShipmentModel
shipment_label
Copy of the corresponding Shipment.label
start_time
Time at which the visit starts
visit_label
Copy of the corresponding VisitRequest.label
visit_request_index
Index of VisitRequest in either the pickup or delivery field of the Shipment