- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- VehicleApiCall
- CreateVehicleCall
- CreateVehicleRequest
- GetVehicleCall
- GetVehicleRequest
- UpdateVehicleCall
- UpdateVehicleRequest
- SearchVehiclesCall
- SearchVehiclesRequest
- VehicleAttributeList
- VehicleMatchOrder
- CurrentTripsPresent
- SearchVehiclesResponse
- VehicleMatch
- Waypoint
- VehicleMatchType
Returns a list of all API calls referencing a vehicle within the given time window.
HTTP request
GET https://fleetengine.googleapis.com/v1/archive/{vehicle=providers/*/vehicles/*}:collectCalls
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
vehicle |
Required. Must be in the format |
Query parameters
Parameters | |
---|---|
header |
Optional. The standard Fleet Engine request header. |
dataset |
Optional. Name of the Cloud Logging sink dataset. |
timeWindow |
Required. The time window for which to list vehicles. Only vehicles that had at least one update performed during the time window will be returned. |
modifyingCallsOnly |
Optional. If true then only modifying API calls like create and update will be included in the results. If unspecified, all API calls will be returned. |
pageSize |
Optional. The maximum number of vehicles to return. The service may return fewer than this value. If unspecified, the server will decide the number of results to return. |
pageToken |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
maximumBytesBilled |
Optional. This parameter is used to limit BigQuery costs. Limits the bytes billed for this request. Requests with bytes billed above this limit will fail (without incurring a charge). If the parameter is not specified, the system uses the default project limit set by BigQuery. This is either unlimited, or whatever you have specified as your project default with BigQuery. See BigQuery documentation for details. |
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
vehicles.collectCalls response message. Next id: 3
JSON representation |
---|
{
"apiCalls": [
{
object ( |
Fields | |
---|---|
apiCalls[] |
The list of API calls for the requested vehicle and time window. Calls are sorted from oldest to most recent based on server time. |
nextPageToken |
Pass this token in the CollectVehicleCallsRequest to continue to list results. If all results have been returned, this field is an empty string or not present in the response. |
VehicleApiCall
Describes an API call related to a vehicle. Next id: 7
JSON representation |
---|
{ "serverTime": string, // Union field |
Fields | |
---|---|
serverTime |
The timestamp of the call being received by the server. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
Union field call . The actual API call description related to the vehicle. call can be only one of the following: |
|
createVehicle |
Result is a create vehicle call. |
getVehicle |
Result is a get vehicle call. |
updateVehicle |
Result is an update vehicle call. |
searchVehicles |
Result is a search vehicles call. |
CreateVehicleCall
Describes a vehicles.create API call. Next id: 4
JSON representation |
---|
{ "request": { object ( |
Fields | |
---|---|
request |
The request message sent to create the vehicle. |
response |
The vehicle entity created. |
errorResponse |
The errorResponse returned. |
CreateVehicleRequest
vehicles.create
request message.
JSON representation |
---|
{ "header": { object ( |
Fields | |
---|---|
header |
The standard Fleet Engine request header. |
parent |
Required. Must be in the format |
vehicleId |
Required. Unique Vehicle ID. Subject to the following restrictions:
|
vehicle |
Required. The Vehicle entity to create. When creating a Vehicle, the following fields are required:
When creating a Vehicle, the following fields are ignored:
All other fields are optional and used if provided. |
GetVehicleCall
Describes a vehicles.get API call. Next id: 4
JSON representation |
---|
{ "request": { object ( |
Fields | |
---|---|
request |
The request message sent to get the vehicle. |
response |
The vehicle entity returned. |
errorResponse |
The errorResponse returned. |
GetVehicleRequest
vehicles.get
request message.
JSON representation |
---|
{
"header": {
object ( |
Fields | |
---|---|
header |
The standard Fleet Engine request header. |
name |
Required. Must be in the format |
currentRouteSegmentVersion |
Indicates the minimum timestamp (exclusive) for which A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
waypointsVersion |
Indicates the minimum timestamp (exclusive) for which A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
UpdateVehicleCall
Describes an vehicles.update API call. Next id: 4
JSON representation |
---|
{ "request": { object ( |
Fields | |
---|---|
request |
The request message sent to update the vehicle. |
response |
The vehicle entity returned. |
errorResponse |
The errorResponse returned. |
UpdateVehicleRequest
`vehicles.update request message.
JSON representation |
---|
{ "header": { object ( |
Fields | |
---|---|
header |
The standard Fleet Engine request header. |
name |
Required. Must be in the format |
vehicle |
Required. The
Furthermore, the vehicle If the |
updateMask |
Required. A field mask indicating which fields of the This is a comma-separated list of fully qualified names of fields. Example: |
SearchVehiclesCall
Describes an vehicles.search API call. Next id: 4
JSON representation |
---|
{ "request": { object ( |
Fields | |
---|---|
request |
The request message sent to search for a vehicle. |
response |
The searchVehicles entity returned. |
errorResponse |
The errorResponse returned. |
SearchVehiclesRequest
vehicles.search
request message.
JSON representation |
---|
{ "header": { object ( |
Fields | |
---|---|
header |
The standard Fleet Engine request header. |
parent |
Required. Must be in the format |
pickupPoint |
Required. The pickup point to search near. |
dropoffPoint |
The customer's intended dropoff location. The field is required if |
pickupRadiusMeters |
Required. Defines the vehicle search radius around the pickup point. Only vehicles within the search radius will be returned. Value must be between 400 and 10000 meters (inclusive). |
count |
Required. Specifies the maximum number of vehicles to return. The value must be between 1 and 50 (inclusive). |
minimumCapacity |
Required. Specifies the number of passengers being considered for a trip. The value must be greater than or equal to one. The driver is not considered in the capacity value. |
tripTypes[] |
Required. Represents the type of proposed trip. Eligible vehicles are those that can support at least one of the specified trip type.
|
maximumStaleness |
Restricts the search to only those vehicles that have updated their locations within the specified duration. If this field is not set, the server uses five minutes as the default value. A duration in seconds with up to nine fractional digits, ending with ' |
vehicleTypes[] |
Required. Restricts the search to vehicles with one of the specified types. At least one vehicle type must be specified. |
requiredAttributes[] |
Callers can form complex logical operations using any combination of the
Restricts the search to only those vehicles with the specified attributes. This field is a conjunction/AND operation. A max of 50 requiredAttributes is allowed. This matches the maximum number of attributes allowed on a vehicle. |
requiredOneOfAttributes[] |
Restricts the search to only those vehicles with at least one of the specified attributes in each |
requiredOneOfAttributeSets[] |
Similar to
Restricts the search to only those vehicles with all the attributes in a |
orderBy |
Required. Specifies the desired ordering criterion for results. |
includeBackToBack |
Indicates if a vehicle with a single active trip is eligible for another match. If This field is only considered if a single The default value is |
tripId |
Indicates the trip associated with this |
currentTripsPresent |
Restricts vehicles from appearing in the search results based on their current trips. When currentTripsPresent is |
VehicleAttributeList
A list-of-lists datatype for vehicle attributes.
JSON representation |
---|
{
"attributes": [
{
object ( |
Fields | |
---|---|
attributes[] |
A list of attributes in this collection. |
VehicleMatchOrder
Specifies the order of the vehicle matches in the response.
Enums | |
---|---|
UNKNOWN_VEHICLE_MATCH_ORDER |
Default, used for unspecified or unrecognized vehicle matches order. |
PICKUP_POINT_ETA |
Ascending order by vehicle driving time to the pickup point. |
PICKUP_POINT_DISTANCE |
Ascending order by vehicle driving distance to the pickup point. |
DROPOFF_POINT_ETA |
Ascending order by vehicle driving time to the dropoff point. This order can only be used if the dropoff point is specified in the request. |
PICKUP_POINT_STRAIGHT_DISTANCE |
Ascending order by straight-line distance from the vehicle's last reported location to the pickup point. |
COST |
Ascending order by the configured match cost. Match cost is defined as a weighted calculation between straight-line distance and ETA. Weights are set with default values and can be modified per customer. Please contact Google support if these weights need to be modified for your project. |
CurrentTripsPresent
Specifies the types of restrictions on a vehicle's current trips.
Enums | |
---|---|
CURRENT_TRIPS_PRESENT_UNSPECIFIED |
Only vehicles without trips can appear in search results. A validation exception is thrown if includeBackToBack is true. See the includeBackToBack flag for more details. |
NONE |
Vehicles without trips can appear in search results. A validation exception is thrown if includeBackToBack is true. |
ANY |
Vehicles with at most 5 current trips and 10 waypoints are included in the search results. A validation exception is thrown if includeBackToBack is true. |
SearchVehiclesResponse
vehicles.search
response message.
JSON representation |
---|
{
"matches": [
{
object ( |
Fields | |
---|---|
matches[] |
List of vehicles that match the |
VehicleMatch
Contains the vehicle and related estimates for a vehicle that match the points of active trips for the vehicle SearchVehiclesRequest
.
JSON representation |
---|
{ "vehicle": { object ( |
Fields | |
---|---|
vehicle |
Required. A vehicle that matches the request. |
vehiclePickupEta |
The vehicle's driving ETA to the pickup point specified in the request. An empty value indicates a failure in calculating ETA for the vehicle. If A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
vehiclePickupDistanceMeters |
The distance from the Vehicle's current location to the pickup point specified in the request, including any intermediate pickup or dropoff points for existing trips. This distance comprises the calculated driving (route) distance, plus the straight line distance between the navigation end point and the requested pickup point. (The distance between the navigation end point and the requested pickup point is typically small.) An empty value indicates an error in calculating the distance. |
vehiclePickupStraightLineDistanceMeters |
Required. The straight-line distance between the vehicle and the pickup point specified in the request. |
vehicleDropoffEta |
The complete vehicle's driving ETA to the drop off point specified in the request. The ETA includes stopping at any waypoints before the A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
vehiclePickupToDropoffDistanceMeters |
The vehicle's driving distance (in meters) from the pickup point to the drop off point specified in the request. The distance is only between the two points and does not include the vehicle location or any other points that must be visited before the vehicle visits either the pickup point or dropoff point. The value will only be populated when a |
tripType |
Required. The trip type of the request that was used to calculate the ETA to the pickup point. |
vehicleTripsWaypoints[] |
The ordered list of waypoints used to calculate the ETA. The list includes vehicle location, the pickup points of active trips for the vehicle, and the pickup points provided in the request. An empty list indicates a failure in calculating ETA for the vehicle. |
vehicleMatchType |
Type of the vehicle match. |
requestedOrderedBy |
The order requested for sorting vehicle matches. |
orderedBy |
The actual order that was used for this vehicle. Normally this will match the 'orderBy' field from the request; however, in certain circumstances such as an internal server error, a different method may be used (such as |
Waypoint
Describes intermediate points along a route.
JSON representation |
---|
{
"latLng": {
object ( |
Fields | |
---|---|
latLng |
The location of this waypoint. |
eta |
The estimated time that the vehicle will arrive at this waypoint. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
VehicleMatchType
Type of vehicle match.
Enums | |
---|---|
UNKNOWN |
Unknown vehicle match type |
EXCLUSIVE |
The vehicle currently has no trip assigned to it and can proceed to the pickup point. |
BACK_TO_BACK |
The vehicle is currently assigned to a trip, but can proceed to the pickup point after completing the in-progress trip. ETA and distance calculations take the existing trip into account. |
CARPOOL |
The vehicle has sufficient capacity for a shared ride. |
CARPOOL_BACK_TO_BACK |
The vehicle will finish its current, active trip before proceeding to the pickup point. ETA and distance calculations take the existing trip into account. |