AI-generated Key Takeaways
-
GMTDVehicleStop represents a location where a delivery vehicle must stop, outlining the actions needed at that stop.
-
The
taskInfoArray
property contains an array ofTaskInfo
objects, detailing each task required at the specific stop. -
plannedWaypoint
designates the exact navigational waypoint for the vehicle to arrive, marking the physical location of the stop. -
state
property defines the current status of the stop via an enum. -
The
initWithTaskInfoArray:plannedWaypoint:state:
method is used to instantiate aGMTDVehicleStop
object, allowing customization of the stop's tasks, location, and state.
GMTDVehicleStop
@interface GMTDVehicleStop : GMTSImmutableData
An 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
taskInfoArray
The list of tasks to be performed at this stop.
plannedWaypoint
The waypoint of the stop.
state
The state of the VehicleStop.
-
Unavailable
Use
-initWithTaskInfoArray:plannedWaypoint:state:
instead.Declaration
Objective-C
- (nonnull instancetype)init;