AI-generated Key Takeaways
- 
          
Retrieves detailed trip information for a specified provider and trip ID.
 - 
          
Allows customization of the data returned using query parameters such as
view,routeFormatType, and various version parameters. - 
          
Requires an empty request body and a valid
namepath parameter in the formatproviders/{provider}/trips/{trip}. - 
          
If successful, the response includes a
Tripobject containing comprehensive trip details. - 
          
Offers the flexibility to request routes in either
LAT_LNG_LIST_TYPEorENCODED_POLYLINE_TYPEformat. 
Get information about a single trip.
HTTP request
GET https://fleetengine.googleapis.com/v1/{name=providers/*/trips/*}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
name | 
                
                   
 Required. Must be in the format   | 
              
Query parameters
| Parameters | |
|---|---|
header | 
                
                   
 The standard Fleet Engine request header.  | 
              
view | 
                
                   
 The subset of Trip fields that should be returned and their interpretation.  | 
              
currentRouteSegmentVersion | 
                
                   
 Indicates the minimum timestamp (exclusive) for which  Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:   | 
              
remainingWaypointsVersion | 
                
                   
 Deprecated:  Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:   | 
              
routeFormatType | 
                
                   
 The returned current route format,   | 
              
currentRouteSegmentTrafficVersion | 
                
                   
 Indicates the minimum timestamp (exclusive) for which  Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:   | 
              
remainingWaypointsRouteVersion | 
                
                   
 Indicates the minimum timestamp (exclusive) for which  Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:   | 
              
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of Trip.
PolylineFormatType
The type of polyline format.
| Enums | |
|---|---|
UNKNOWN_FORMAT_TYPE | 
                The format is unspecified or unknown. | 
LAT_LNG_LIST_TYPE | 
                A list of google.type.LatLng. | 
              
ENCODED_POLYLINE_TYPE | 
                A polyline encoded with a polyline compression algorithm. Decoding is not yet supported. |