AI-generated Key Takeaways
-
GMTDVehicleStop represents a location where a delivery vehicle must stop, outlining the actions needed at that stop.
-
The
taskInfoArrayproperty contains an array ofTaskInfoobjects, detailing each task required at the specific stop. -
plannedWaypointdesignates the exact navigational waypoint for the vehicle to arrive, marking the physical location of the stop. -
stateproperty defines the current status of the stop via an enum. -
The
initWithTaskInfoArray:plannedWaypoint:state:method is used to instantiate aGMTDVehicleStopobject, allowing customization of the stop's tasks, location, and state.
GMTDVehicleStop
@interface GMTDVehicleStop : GMTSImmutableDataAn object representing a vehicle stop for deliveries.
-
The array of TaskInfo objects to be performed at this stop.
Declaration
Swift
var taskInfoArray: [GMTDTaskInfo] { get }Objective-C
@property (nonatomic, copy, readonly) NSArray<GMTDTaskInfo *> *_Nonnull taskInfoArray; -
The waypoint for the stop.
Declaration
Swift
var plannedWaypoint: GMSNavigationWaypoint? { get }Objective-C
@property (nonatomic, readonly, nullable) GMSNavigationWaypoint *plannedWaypoint; -
The current state of a VehicleStop.
Declaration
Swift
var state: GMTDVehicleStopState { get }Objective-C
@property (nonatomic, readonly) GMTDVehicleStopState state; -
Instantiates an instance of this class.
Declaration
Swift
init(taskInfoArray: [GMTDTaskInfo], plannedWaypoint: GMSNavigationWaypoint?, state: GMTDVehicleStopState)Objective-C
- (nonnull instancetype) initWithTaskInfoArray:(nonnull NSArray<GMTDTaskInfo *> *)taskInfoArray plannedWaypoint:(nullable GMSNavigationWaypoint *)plannedWaypoint state:(GMTDVehicleStopState)state;Parameters
taskInfoArrayThe list of tasks to be performed at this stop.
plannedWaypointThe waypoint of the stop.
stateThe state of the VehicleStop.
-
Unavailable
Use
-initWithTaskInfoArray:plannedWaypoint:state:instead.Declaration
Objective-C
- (nonnull instancetype)init;