GoogleRidesharingDriver Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMTSTask
An immutable object representing a unit of work that is completed at a vehicle stop.
-
Declaration
Swift
var taskID: String? { get }
-
The ID associated with the provider.
Declaration
Swift
var providerID: String? { get }
Objective-C
@property (nonatomic, readonly, nullable) NSString *providerID;
-
The type of current task.
Declaration
Objective-C
@property (nonatomic, readonly) GMTSTaskType taskType;
-
The current execution state of the task.
Declaration
Objective-C
@property (nonatomic, readonly) GMTSTaskState taskState;
-
-
The timestamp of when the task’s outcome was updated (from server).
Declaration
Swift
var taskOutcomeTimestamp: TimeInterval { get }
Objective-C
@property (nonatomic, readonly) NSTimeInterval taskOutcomeTimestamp;
-
Waypoint where the task’s outcome was set.
Declaration
Swift
var taskOutcomeWaypoint: GMSNavigationWaypoint? { get }
Objective-C
@property (nonatomic, readonly, nullable) GMSNavigationWaypoint *taskOutcomeWaypoint;
-
Indicates the source of the location information in the taskOutcomeWaypoint.
-
Lets you store an ID so that the customer can avoid unnecessary or complicated mapping.
Declaration
Swift
var trackingID: String? { get }
-
The ID of the vehicle performing this task.
Declaration
Swift
var vehicleID: String? { get }
-
The waypoint where the task is to be completed.
Declaration
Swift
var plannedWaypoint: GMSNavigationWaypoint? { get }
Objective-C
@property (nonatomic, readonly, nullable) GMSNavigationWaypoint *plannedWaypoint;
-
Additional time to perform an action at this location.
Declaration
Swift
var taskDuration: TimeInterval { get }
Objective-C
@property (nonatomic, readonly) NSTimeInterval taskDuration;
-
Instantiates an instance of this class.
Declaration
Swift
init(taskID: String?, providerID: String?, taskType: GMTSTaskType, taskState: GMTSTaskState, taskOutcome: GMTSTaskOutcome, taskOutcomeTimestamp: TimeInterval, taskOutcomeWaypoint: GMSNavigationWaypoint?, taskOutcomeLocationSource: GMTSTaskOutcomeLocationSource, trackingID: String?, vehicleID: String?, plannedWaypoint: GMSNavigationWaypoint?, taskDuration: TimeInterval)
Parameters
taskID
|
|
providerID
|
The ID associated with the provider.
|
taskType
|
|
taskState
|
The current execution state of the task.
|
taskOutcome
|
|
taskOutcomeTimestamp
|
The time when the task’s outcome was set.
|
taskOutcomeWaypoint
|
Waypoint where the task’s outcome was set.
|
taskOutcomeLocationSource
|
Indicates whether the value of the task_outcome_location came
from unnecessary or complicated mapping.
|
trackingID
|
Lets you store an ID so that the customer can avoid an unnecessary or
complicated mapping.
|
vehicleID
|
The ID of the vehicle performing this Task.
|
plannedWaypoint
|
The waypoint where the task will be completed.
|
taskDuration
|
Additional time to perform an action at this location.
|
-
Use the designated initializer instead.
Declaration
Objective-C
- (nonnull instancetype)init;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[[["\u003cp\u003eGMTSTask represents an immutable unit of work completed at a vehicle stop, containing information like task ID, provider ID, and vehicle ID.\u003c/p\u003e\n"],["\u003cp\u003eThe task's current status is tracked through properties like \u003ccode\u003etaskType\u003c/code\u003e, \u003ccode\u003etaskState\u003c/code\u003e, and \u003ccode\u003etaskOutcome\u003c/code\u003e, reflecting its type, execution state, and result.\u003c/p\u003e\n"],["\u003cp\u003eEach task has timestamps and location data associated with its outcome, such as \u003ccode\u003etaskOutcomeTimestamp\u003c/code\u003e and \u003ccode\u003etaskOutcomeWaypoint\u003c/code\u003e, and is linked with a source.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003etrackingID\u003c/code\u003e is provided for easier mapping, allowing users to avoid complex workarounds, and also it holds a \u003ccode\u003etaskDuration\u003c/code\u003e, which is extra time to perform the task at the location.\u003c/p\u003e\n"],["\u003cp\u003eTasks can be created with specific details using the \u003ccode\u003einitWithTaskID\u003c/code\u003e initializer, which requires parameters like the task's ID, provider, type, state, outcome, timestamps, location, tracking ID, vehicle, planned location and duration.\u003c/p\u003e\n"]]],[],null,["GMTSTask \n\n @interface GMTSTask : ../Classes/GMTSImmutableData.html\n\nAn immutable object representing a unit of work that is completed at a vehicle stop.\n- `\n ``\n ``\n `\n\n [taskID](#/c:objc(cs)GMTSTask(py)taskID)`\n ` \n The ID of the task. \n\n Declaration \n Swift \n\n var taskID: String? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) ../Type-Definitions/GMTDFleetEngineIDString.html *taskID;\n\n- `\n ``\n ``\n `\n\n [providerID](#/c:objc(cs)GMTSTask(py)providerID)`\n ` \n The ID associated with the provider. \n\n Declaration \n Swift \n\n var providerID: String? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) NSString *providerID;\n\n- `\n ``\n ``\n `\n\n [taskType](#/c:objc(cs)GMTSTask(py)taskType)`\n ` \n The type of current task. \n\n Declaration \n Swift \n\n var taskType: ../Enums/GMTSTaskType.html { get }\n\n Objective-C \n\n @property (nonatomic, readonly) ../Enums/GMTSTaskType.html taskType;\n\n- `\n ``\n ``\n `\n\n [taskState](#/c:objc(cs)GMTSTask(py)taskState)`\n ` \n The current execution state of the task. \n\n Declaration \n Swift \n\n var taskState: ../Enums/GMTSTaskState.html { get }\n\n Objective-C \n\n @property (nonatomic, readonly) ../Enums/GMTSTaskState.html taskState;\n\n- `\n ``\n ``\n `\n\n [taskOutcome](#/c:objc(cs)GMTSTask(py)taskOutcome)`\n ` \n The outcome of the task. \n\n Declaration \n Swift \n\n var taskOutcome: ../Enums/GMTSTaskOutcome.html { get }\n\n Objective-C \n\n @property (nonatomic, readonly) ../Enums/GMTSTaskOutcome.html taskOutcome;\n\n- `\n ``\n ``\n `\n\n [taskOutcomeTimestamp](#/c:objc(cs)GMTSTask(py)taskOutcomeTimestamp)`\n ` \n The timestamp of when the task's outcome was updated (from server). \n\n Declaration \n Swift \n\n var taskOutcomeTimestamp: TimeInterval { get }\n\n Objective-C \n\n @property (nonatomic, readonly) NSTimeInterval taskOutcomeTimestamp;\n\n- `\n ``\n ``\n `\n\n [taskOutcomeWaypoint](#/c:objc(cs)GMTSTask(py)taskOutcomeWaypoint)`\n ` \n Waypoint where the task's outcome was set. \n\n Declaration \n Swift \n\n var taskOutcomeWaypoint: GMSNavigationWaypoint? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) GMSNavigationWaypoint *taskOutcomeWaypoint;\n\n- `\n ``\n ``\n `\n\n [taskOutcomeLocationSource](#/c:objc(cs)GMTSTask(py)taskOutcomeLocationSource)`\n ` \n Indicates the source of the location information in the taskOutcomeWaypoint. \n\n Declaration \n Swift \n\n var taskOutcomeLocationSource: ../Enums/GMTSTaskOutcomeLocationSource.html { get }\n\n Objective-C \n\n @property (nonatomic, readonly) ../Enums/GMTSTaskOutcomeLocationSource.html taskOutcomeLocationSource;\n\n- `\n ``\n ``\n `\n\n [trackingID](#/c:objc(cs)GMTSTask(py)trackingID)`\n ` \n Lets you store an ID so that the customer can avoid unnecessary or complicated mapping. \n\n Declaration \n Swift \n\n var trackingID: String? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) ../Type-Definitions/GMTDFleetEngineIDString.html *trackingID;\n\n- `\n ``\n ``\n `\n\n [vehicleID](#/c:objc(cs)GMTSTask(py)vehicleID)`\n ` \n The ID of the vehicle performing this task. \n\n Declaration \n Swift \n\n var vehicleID: String? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) ../Type-Definitions/GMTDFleetEngineIDString.html *vehicleID;\n\n- `\n ``\n ``\n `\n\n [plannedWaypoint](#/c:objc(cs)GMTSTask(py)plannedWaypoint)`\n ` \n The waypoint where the task is to be completed. \n\n Declaration \n Swift \n\n var plannedWaypoint: GMSNavigationWaypoint? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) GMSNavigationWaypoint *plannedWaypoint;\n\n- `\n ``\n ``\n `\n\n [taskDuration](#/c:objc(cs)GMTSTask(py)taskDuration)`\n ` \n Additional time to perform an action at this location. \n\n Declaration \n Swift \n\n var taskDuration: TimeInterval { get }\n\n Objective-C \n\n @property (nonatomic, readonly) NSTimeInterval taskDuration;\n\n- `\n ``\n ``\n `\n\n [-initWithTaskID:providerID:taskType:taskState:taskOutcome:taskOutcomeTimestamp:taskOutcomeWaypoint:taskOutcomeLocationSource:trackingID:vehicleID:plannedWaypoint:taskDuration:](#/c:objc(cs)GMTSTask(im)initWithTaskID:providerID:taskType:taskState:taskOutcome:taskOutcomeTimestamp:taskOutcomeWaypoint:taskOutcomeLocationSource:trackingID:vehicleID:plannedWaypoint:taskDuration:)`\n ` \n Instantiates an instance of this class. \n\n Declaration \n Swift \n\n init(taskID: String?, providerID: String?, taskType: ../Enums/GMTSTaskType.html, taskState: ../Enums/GMTSTaskState.html, taskOutcome: ../Enums/GMTSTaskOutcome.html, taskOutcomeTimestamp: TimeInterval, taskOutcomeWaypoint: GMSNavigationWaypoint?, taskOutcomeLocationSource: ../Enums/GMTSTaskOutcomeLocationSource.html, trackingID: String?, vehicleID: String?, plannedWaypoint: GMSNavigationWaypoint?, taskDuration: TimeInterval)\n\n Objective-C \n\n - (nonnull instancetype)\n initWithTaskID:(nullable ../Type-Definitions/GMTDFleetEngineIDString.html *)taskID\n providerID:(nullable NSString *)providerID\n taskType:(../Enums/GMTSTaskType.html)taskType\n taskState:(../Enums/GMTSTaskState.html)taskState\n taskOutcome:(../Enums/GMTSTaskOutcome.html)taskOutcome\n taskOutcomeTimestamp:(NSTimeInterval)taskOutcomeTimestamp\n taskOutcomeWaypoint:\n (nullable GMSNavigationWaypoint *)taskOutcomeWaypoint\n taskOutcomeLocationSource:\n (../Enums/GMTSTaskOutcomeLocationSource.html)taskOutcomeLocationSource\n trackingID:(nullable ../Type-Definitions/GMTDFleetEngineIDString.html *)trackingID\n vehicleID:(nullable ../Type-Definitions/GMTDFleetEngineIDString.html *)vehicleID\n plannedWaypoint:(nullable GMSNavigationWaypoint *)plannedWaypoint\n taskDuration:(NSTimeInterval)taskDuration;\n\n Parameters\n\n |-----------------------------------|--------------------------------------------------------------------------------------------------------|\n | ` `*taskID*` ` | The ID of a task. |\n | ` `*providerID*` ` | The ID associated with the provider. |\n | ` `*taskType*` ` | The type of task. |\n | ` `*taskState*` ` | The current execution state of the task. |\n | ` `*taskOutcome*` ` | The outcome of the task. |\n | ` `*taskOutcomeTimestamp*` ` | The time when the task's outcome was set. |\n | ` `*taskOutcomeWaypoint*` ` | Waypoint where the task's outcome was set. |\n | ` `*taskOutcomeLocationSource*` ` | Indicates whether the value of the task_outcome_location came from unnecessary or complicated mapping. |\n | ` `*trackingID*` ` | Lets you store an ID so that the customer can avoid an unnecessary or complicated mapping. |\n | ` `*vehicleID*` ` | The ID of the vehicle performing this Task. |\n | ` `*plannedWaypoint*` ` | The waypoint where the task will be completed. |\n | ` `*taskDuration*` ` | Additional time to perform an action at this location. |\n\n- `\n ``\n ``\n `\n\n [-init](#/c:objc(cs)GMTSTask(im)init)`\n ` \n Unavailable \n Use the designated initializer instead. \n\n Declaration \n Objective-C \n\n - (nonnull instancetype)init;"]]