DeliveryVehicleLog

Dziennik zasobu DeliveryVehicle w 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 dostawczego.

remainingDistanceMeters

integer

Pozostała odległość dojazdu samochodem z lotniska currentRouteSegment.

remainingDuration

string (Duration format)

Pozostały czas jazdy samochodem: currentRouteSegment.

Czas trwania w sekundach z maksymalnie 9 cyframi po przecinku, kończącym się cyframi „s”. Przykład: "3.5s".

remainingVehicleJourneySegments[]

object (VehicleJourneySegmentLog)

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

attributes[]

object (DeliveryVehicleAttributeLog)

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

DeliveryVehicleAttributeLog

Opisuje atrybut pojazdu jako parę 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, np. allowed_use_carpool_lane.

value

string

Wartość atrybutu, np. 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 wpisana na podstawie ciągu znaków.

boolValue

boolean

Wartość atrybutu o typie wartości logicznej.

numberValue

number

Wartość atrybutu z podwójnym wpisanym.