Method: providers.vehicles.updateLocation

Deprecated: Use the vehicles.update method instead. vehicles.updateLocation updates the location of the vehicle.

HTTP request

PUT https://fleetengine.googleapis.com/v1/{name=providers/*/vehicles/*}:updateLocation

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Must be in the format providers/{provider}/vehicles/{vehicle}. The {provider} must be the Project ID (for example, sample-cloud-project) of the Google Cloud Project of which the service account making this call is a member.

Request body

The request body contains data with the following structure:

JSON representation
{
  "header": {
    object (RequestHeader)
  },
  "currentLocation": {
    object (VehicleLocation)
  },
  "currentState": enum (VehicleState)
}
Fields
header

object (RequestHeader)

The standard Fleet Engine request header.

currentLocation

object (VehicleLocation)

Required. The vehicle's most recent location. The location and updateTime subfields are required.

currentState

enum (VehicleState)

Set the vehicle's state to either ONLINE or OFFLINE. If set to UNKNOWN_VEHICLE_STATE, the vehicle's state will not be altered.

Response body

If successful, the response body contains an instance of VehicleLocation.