DeliveryVehicleLog

Nhật ký của tài nguyên DeliveryXe trong Deliveries API.

Biểu diễn dưới dạng JSON
{
  "name": string,
  "lastLocation": {
    object (DeliveryVehicleLocationLog)
  },
  "navigationStatus": enum (DeliveryVehicleNavigationStatusLog),
  "remainingDistanceMeters": integer,
  "remainingDuration": string,
  "remainingVehicleJourneySegments": [
    {
      object (VehicleJourneySegmentLog)
    }
  ],
  "attributes": [
    {
      object (DeliveryVehicleAttributeLog)
    }
  ]
}
Các trường
name

string

Tên tài nguyên xe phân phối ở định dạng providers/{providerId}/deliveryVehicles/{deliveryVehicleId}.

lastLocation

object (DeliveryVehicleLocationLog)

Vị trí được báo cáo gần đây nhất của xe.

navigationStatus

enum (DeliveryVehicleNavigationStatusLog)

Trạng thái di chuyển của xe giao hàng.

remainingDistanceMeters

integer

Quãng đường lái xe còn lại cho currentRouteSegment.

remainingDuration

string (Duration format)

Thời gian lái xe còn lại của currentRouteSegment.

Thời lượng tính bằng giây có tối đa 9 chữ số phân số, kết thúc bằng 's'. Ví dụ: "3.5s".

remainingVehicleJourneySegments[]

object (VehicleJourneySegmentLog)

Nhóm đoạn đường còn lại của hành trình được chỉ định cho xe này.

attributes[]

object (DeliveryVehicleAttributeLog)

Danh sách các thuộc tính xe giao hàng tuỳ chỉnh. Mỗi thuộc tính có một khoá duy nhất.

DeliveryVehicleAttributeLog

Mô tả thuộc tính xe dưới dạng một cặp khoá-giá trị.

Biểu diễn dưới dạng JSON
{
  "key": string,
  "value": string,

  // Union field delivery_vehicle_attribute_value can be only one of the
  // following:
  "stringValue": string,
  "boolValue": boolean,
  "numberValue": number
  // End of list of possible types for union field
  // delivery_vehicle_attribute_value.
}
Các trường
key

string

Khoá của thuộc tính này; ví dụ: allowed_use_carpool_lane.

value

string

Giá trị của thuộc tính; ví dụ: true.

Trường nhóm delivery_vehicle_attribute_value. Giá trị của thuộc tính có thể ở dạng chuỗi, bool hoặc kiểu double. delivery_vehicle_attribute_value chỉ có thể là một trong những trạng thái sau đây:
stringValue

string

Giá trị thuộc tính đã nhập chuỗi.

boolValue

boolean

Giá trị thuộc tính đã nhập là Boolean.

numberValue

number

Giá trị thuộc tính đã nhập 2 lần.