DeliveryVehicleLog

บันทึกของทรัพยากร DeliveryVehicle ใน Deliveries API

การแสดง JSON
{
  "name": string,
  "lastLocation": {
    object (DeliveryVehicleLocationLog)
  },
  "navigationStatus": enum (DeliveryVehicleNavigationStatusLog),
  "remainingDistanceMeters": integer,
  "remainingDuration": string,
  "remainingVehicleJourneySegments": [
    {
      object (VehicleJourneySegmentLog)
    }
  ],
  "attributes": [
    {
      object (DeliveryVehicleAttributeLog)
    }
  ]
}
ช่อง
name

string

ชื่อทรัพยากรรถนำส่งในรูปแบบ providers/{providerId}/deliveryVehicles/{deliveryVehicleId}

lastLocation

object (DeliveryVehicleLocationLog)

ตำแหน่งล่าสุดของยานพาหนะที่รายงาน

navigationStatus

enum (DeliveryVehicleNavigationStatusLog)

สถานะการนำทางของรถนำส่ง

remainingDistanceMeters

integer

ระยะทางขับรถที่เหลือสำหรับ currentRouteSegment

remainingDuration

string (Duration format)

ระยะเวลาขับรถที่เหลืออยู่สำหรับ currentRouteSegment

ระยะเวลาเป็นวินาทีโดยมีเลขเศษส่วนไม่เกิน 9 หลัก ลงท้ายด้วย "s" ตัวอย่างเช่น "3.5s"

remainingVehicleJourneySegments[]

object (VehicleJourneySegmentLog)

ส่วนการเดินทางชุดที่เหลือซึ่งกำหนดให้กับยานพาหนะคันนี้

attributes[]

object (DeliveryVehicleAttributeLog)

รายการแอตทริบิวต์ยานพาหนะสำหรับนำส่งแบบกำหนดเอง แอตทริบิวต์แต่ละรายการมีคีย์ที่ไม่ซ้ำกัน

DeliveryVehicleAttributeLog

อธิบายแอตทริบิวต์ยานพาหนะเป็นคู่คีย์-ค่า

การแสดง 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.
}
ช่อง
key

string

คีย์ของแอตทริบิวต์ ตัวอย่างเช่น allowed_use_carpool_lane

value

string

ค่าแอตทริบิวต์ ตัวอย่างเช่น true

ช่องการรวม delivery_vehicle_attribute_value ค่าของแอตทริบิวต์อาจเป็นสตริง บูลีน หรือประเภท Double delivery_vehicle_attribute_value ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้
stringValue

string

ค่าแอตทริบิวต์ที่พิมพ์โดยสตริง

boolValue

boolean

ค่าแอตทริบิวต์ที่พิมพ์ด้วยบูลีน

numberValue

number

ค่าแอตทริบิวต์ที่พิมพ์คู่