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 |
Required. Must be in the format |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "header": { object ( |
Fields | |
---|---|
header |
The standard Fleet Engine request header. |
currentLocation |
Required. The vehicle's most recent location. The |
currentState |
Set the vehicle's state to either |
Response body
If successful, the response body contains an instance of VehicleLocation
.