Get all the trips for a specific vehicle.
HTTP request
POST https://fleetengine.googleapis.com/v1/{parent=providers/*}/trips:search
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
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. |
vehicle |
The vehicle associated with the trips in the request. If unspecified, the returned trips do not contain:
|
active |
If set to true, the response includes Trips that influence a driver's route. |
page |
If not set, the server decides the number of results to return. |
page |
Set this to a value previously returned in the |
minimum |
If specified, returns the trips that have not been updated after the time A duration in seconds with up to nine fractional digits, ending with ' |
Response body
trips.search response message.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"trips": [
{
object ( |
Fields | |
---|---|
trips[] |
The list of trips for the requested vehicle. |
next |
Pass this token in the SearchTripsRequest to page through list results. The API returns a trip list on each call, and when no more results remain the trip list is empty. |