DeliveryVehicleLog

Log zasobu DeliveryVehicle w interfejsie Deliveries API.

Zapis JSON
{
  "name": string,
  "lastLocation": {
    object (DeliveryVehicleLocationLog)
  },
  "navigationStatus": enum (DeliveryVehicleNavigationStatusLog),
  "remainingDistanceMeters": integer,
  "remainingDuration": string,
  "remainingVehicleJourneySegments": [
    {
      object (VehicleJourneySegmentLog)
    }
  ],
  "attributes": [
    {
      object (DeliveryVehicleAttributeLog)
    }
  ]
}
Pola
name

string

Nazwa zasobu pojazdu dostawy w formacie providers/{providerId}/deliveryVehicles/{deliveryVehicleId}.

lastLocation

object (DeliveryVehicleLocationLog)

Ostatnia zgłoszona lokalizacja pojazdu.

navigationStatus

enum (DeliveryVehicleNavigationStatusLog)

Stan nawigacji pojazdu dostawy.

remainingDistanceMeters

integer

Pozostały dystans jazdy samochodem przez currentRouteSegment.

remainingDuration

string (Duration format)

Pozostały czas jazdy samochodem currentRouteSegment.

Czas trwania w sekundach składający się z maksymalnie 9 cyfr po przecinku i kończący się „s”. Przykład: "3.5s".

remainingVehicleJourneySegments[]

object (VehicleJourneySegmentLog)

Pozostały zestaw segmentów podróży przypisanych do tego pojazdu.

attributes[]

object (DeliveryVehicleAttributeLog)

Lista niestandardowych atrybutów pojazdów dostawy. Każdy atrybut ma unikalny klucz.

DeliveryVehicleAttributeLog

Opisuje atrybut pojazdu w postaci pary klucz-wartość.

Zapis 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.
}
Pola
key

string

klucz atrybutu; na przykład allowed_use_carpool_lane.

value

string

wartość atrybutu; na przykład true.

Pole sumy delivery_vehicle_attribute_value. Wartość atrybutu może być ciągiem znaków, wartością logiczną lub liczbą zmiennoprzecinkową. delivery_vehicle_attribute_value może mieć tylko jedną z tych wartości:
stringValue

string

Wartość atrybutu z ciągiem znaków.

boolValue

boolean

Wartość atrybutu wpisanego z użyciem wartości logicznej.

numberValue

number

Wartość atrybutu została wpisana dwukrotnie.