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

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