On-demand Rides and Deliveries Solution is currently available only to select partners. Contact sales to learn more.

Task

Stay organized with collections Save and categorize content based on your preferences.
public abstract class Task extends Object

A task represents a single action to track in the Last Mile Fleet Solution system.

Nested Class Summary

@interface Task.TaskOutcome The outcome of an attempt to execute a task. 
@interface Task.TaskState The state of a Task indicating its progression. 
@interface Task.TaskType The type of a Task. 

Public Constructor Summary

Public Method Summary

abstract String
getParentId()
Returns the parent ID of the task.
abstract Waypoint
getPlannedWaypoint()
Returns the planned waypoint destination where the task will be completed.
abstract String
getProviderId()
Returns the unique identifier for this provider.
abstract long
getTaskDurationSeconds()
Returns the additional time to perform an action at this location, measured in seconds.
abstract String
getTaskId()
Returns the unique identifier for this task for this provider.
abstract String
getTaskName()
Returns the full name, including the task id, for this task among all providers.
abstract int
getTaskOutcome()
Returns the outcome of the closed task.
abstract Long
getTaskOutcomeTimestamp()
Returns the timestamp in milliseconds for when the task outcome was set.
abstract int
getTaskState()
Returns the state of the task with respect to lifecycle of a task.
abstract int
getTaskType()
Returns the type of task.
abstract String
getVehicleId()
Returns the identifier for the vehicle assigned to this task.

Inherited Method Summary

Public Constructors

public Task ()

Public Methods

public abstract String getParentId ()

Returns the parent ID of the task. This corresponds to the set of related tasks to accomplish one goal (e.g. a ridesharing trip, or a package delivery).

public abstract Waypoint getPlannedWaypoint ()

Returns the planned waypoint destination where the task will be completed.

public abstract String getProviderId ()

Returns the unique identifier for this provider.

public abstract long getTaskDurationSeconds ()

Returns the additional time to perform an action at this location, measured in seconds.

public abstract String getTaskId ()

Returns the unique identifier for this task for this provider.

public abstract String getTaskName ()

Returns the full name, including the task id, for this task among all providers. This is not a "tracking_id", which can have multiple tasks with the same identifier.

public abstract int getTaskOutcome ()

Returns the outcome of the closed task.

public abstract Long getTaskOutcomeTimestamp ()

Returns the timestamp in milliseconds for when the task outcome was set.

public abstract int getTaskState ()

Returns the state of the task with respect to lifecycle of a task.

public abstract int getTaskType ()

Returns the type of task. These values can differ depending on the vertical or can allow for a driver to be operating within multiple verticals at once.

public abstract String getVehicleId ()

Returns the identifier for the vehicle assigned to this task.