Required. Must be in the formatproviders/{provider}. 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.
↳ vehicle_id
string
The vehicle associated with the trips in the request. If unspecified, the returned trips do not contain: * *current_route_segment* *remaining_waypoints* *remaining_distance_meters* *eta_to_first_waypoint
↳ active_trips_only
bool
If set to true, the response includes Trips that influence a driver's route.
↳ page_size
int
If not set, the server decides the number of results to return.
↳ page_token
string
Set this to a value previously returned in theSearchTripsResponseto continue from previous results.
Required. Must be in the formatproviders/{provider}.
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.
Returns
Type
Description
string
setParent
Required. Must be in the formatproviders/{provider}.
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.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getVehicleId
The vehicle associated with the trips in the request. If unspecified, the
returned trips do not contain:
current_route_segment
remaining_waypoints
remaining_distance_meters
eta_to_first_waypoint
Returns
Type
Description
string
setVehicleId
The vehicle associated with the trips in the request. If unspecified, the
returned trips do not contain:
current_route_segment
remaining_waypoints
remaining_distance_meters
eta_to_first_waypoint
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getActiveTripsOnly
If set to true, the response includes Trips that influence a driver's
route.
Returns
Type
Description
bool
setActiveTripsOnly
If set to true, the response includes Trips that influence a driver's
route.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getPageSize
If not set, the server decides the number of results to return.
Returns
Type
Description
int
setPageSize
If not set, the server decides the number of results to return.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getPageToken
Set this to a value previously returned in theSearchTripsResponseto
continue from previous results.
Returns
Type
Description
string
setPageToken
Set this to a value previously returned in theSearchTripsResponseto
continue from previous results.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getMinimumStaleness
If specified, returns the trips that have not been updated after the time(current - minimum_staleness).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Maps FleetEngine V1 Client - Class SearchTripsRequest (0.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.1 (latest)](/php/docs/reference/maps-fleetengine/latest/V1.SearchTripsRequest)\n- [0.4.0](/php/docs/reference/maps-fleetengine/0.4.0/V1.SearchTripsRequest)\n- [0.3.1](/php/docs/reference/maps-fleetengine/0.3.1/V1.SearchTripsRequest)\n- [0.2.0](/php/docs/reference/maps-fleetengine/0.2.0/V1.SearchTripsRequest)\n- [0.1.6](/php/docs/reference/maps-fleetengine/0.1.6/V1.SearchTripsRequest) \nReference documentation and code samples for the Google Maps FleetEngine V1 Client class SearchTripsRequest.\n\nSearchTrips request message.\n\nGenerated from protobuf message `maps.fleetengine.v1.SearchTripsRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Maps \\\\ FleetEngine \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getHeader\n\nThe standard Fleet Engine request header.\n\n### hasHeader\n\n### clearHeader\n\n### setHeader\n\nThe standard Fleet Engine request header.\n\n### getParent\n\nRequired. Must be in the format `providers/{provider}`.\n\nThe provider must be the Project ID (for example, `sample-cloud-project`)\nof the Google Cloud Project of which the service account making\nthis call is a member.\n\n### setParent\n\nRequired. Must be in the format `providers/{provider}`.\n\nThe provider must be the Project ID (for example, `sample-cloud-project`)\nof the Google Cloud Project of which the service account making\nthis call is a member.\n\n### getVehicleId\n\nThe vehicle associated with the trips in the request. If unspecified, the\nreturned trips do not contain:\n\n- `current_route_segment`\n- `remaining_waypoints`\n- `remaining_distance_meters`\n- `eta_to_first_waypoint`\n\n### setVehicleId\n\nThe vehicle associated with the trips in the request. If unspecified, the\nreturned trips do not contain:\n\n- `current_route_segment`\n- `remaining_waypoints`\n- `remaining_distance_meters`\n- `eta_to_first_waypoint`\n\n### getActiveTripsOnly\n\nIf set to true, the response includes Trips that influence a driver's\nroute.\n\n### setActiveTripsOnly\n\nIf set to true, the response includes Trips that influence a driver's\nroute.\n\n### getPageSize\n\nIf not set, the server decides the number of results to return.\n\n### setPageSize\n\nIf not set, the server decides the number of results to return.\n\n### getPageToken\n\nSet this to a value previously returned in the `SearchTripsResponse` to\ncontinue from previous results.\n\n### setPageToken\n\nSet this to a value previously returned in the `SearchTripsResponse` to\ncontinue from previous results.\n\n### getMinimumStaleness\n\nIf specified, returns the trips that have not been updated after the time\n`(current - minimum_staleness)`.\n\n### hasMinimumStaleness\n\n### clearMinimumStaleness\n\n### setMinimumStaleness\n\nIf specified, returns the trips that have not been updated after the time\n`(current - minimum_staleness)`."]]