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.

משך זמן בשניות עם עד תשע ספרות אחרי הנקודה העשרונית, המסתיים ב-'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. ערך המאפיין יכול להיות במחרוזת, בערך בוליאני או בטיפוס כפול. הערך של delivery_vehicle_attribute_value יכול להיות רק אחת מהאפשרויות הבאות:
stringValue

string

ערך מאפיין מסוג מחרוזת.

boolValue

boolean

ערך מאפיין מוקלד בוליאני.

numberValue

number

ערך מאפיין שהוקלד פעמיים.