REST Resource: providers.taskTrackingInfo

资源:TaskTrackingInfo

TaskTrackingInfo 消息。此消息包含用于显示的任务跟踪信息。如果一个跟踪 ID 与多个任务相关联,Fleet Engine 会使用启发法来决定选择哪个任务的 TaskTrackingInfo。

JSON 表示法
{
  "name": string,
  "trackingId": string,
  "vehicleLocation": {
    object (DeliveryVehicleLocation)
  },
  "routePolylinePoints": [
    {
      object (LatLng)
    }
  ],
  "remainingStopCount": integer,
  "remainingDrivingDistanceMeters": integer,
  "estimatedArrivalTime": string,
  "estimatedTaskCompletionTime": string,
  "state": enum (State),
  "taskOutcome": enum (TaskOutcome),
  "taskOutcomeTime": string,
  "plannedLocation": {
    object (LocationInfo)
  },
  "targetTimeWindow": {
    object (TimeWindow)
  },
  "attributes": [
    {
      object (TaskAttribute)
    }
  ]
}
字段
name

string

必须采用 providers/{provider}/taskTrackingInfo/{tracking} 格式,其中 tracking 表示跟踪 ID。

trackingId

string

不可变。任务的跟踪 ID。* 必须是有效的 Unicode 字符串。* 长度上限为 64 个字符。* 根据 Unicode 标准化格式 C 进行了标准化处理。* 不得包含以下任何 ASCII 字符:“/”“:”“?”“,”或“#”。

vehicleLocation

object (DeliveryVehicleLocation)

车辆的最后位置。

routePolylinePoints[]

object (LatLng)

点列表,连接时形成车辆前往此任务位置的预期路线的多段线。

remainingStopCount

integer

指示在完成任务(包括任务停止)之前,车辆剩余的停靠次数。例如,如果车辆的下一站是任务停止点,则值将为 1。

remainingDrivingDistanceMeters

integer

到感兴趣的 VehicleStop 的剩余总距离(以米为单位)。

estimatedArrivalTime

string (Timestamp format)

表示到达停靠站位置的预计到达时间的时间戳。

时间戳,采用 RFC3339 世界协调时间 (UTC)(即“祖鲁时”)格式,具有纳秒级分辨率,最多包含九个小数位。示例:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z"

estimatedTaskCompletionTime

string (Timestamp format)

表示任务预计完成时间的时间戳。

时间戳,采用 RFC3339 世界协调时间 (UTC)(即“祖鲁时”)格式,具有纳秒级分辨率,最多包含九个小数位。示例:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z"

state

enum (State)

任务的当前执行状态。

taskOutcome

enum (TaskOutcome)

尝试执行任务的结果。

taskOutcomeTime

string (Timestamp format)

时间戳,表示提供程序设置任务结果的时间。

时间戳,采用 RFC3339 世界协调时间 (UTC)(即“祖鲁时”)格式,具有纳秒级分辨率,最多包含九个小数位。示例:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z"

plannedLocation

object (LocationInfo)

不可变。将完成任务的位置。

targetTimeWindow

object (TimeWindow)

应完成任务的时间范围。

attributes[]

object (TaskAttribute)

为任务设置的自定义属性。

方法

get

返回指定的 TaskTrackingInfo 实例。