Reference documentation and code samples for the Google Maps FleetEngine V1 Client class VehicleMatchOrder.
Specifies the order of the vehicle matches in the response.
Protobuf type maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder
Namespace
Google \ Maps \ FleetEngine \ V1 \ SearchVehiclesRequest
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
UNKNOWN_VEHICLE_MATCH_ORDER
Value: 0
Default, used for unspecified or unrecognized vehicle matches order.
Generated from protobuf enum UNKNOWN_VEHICLE_MATCH_ORDER = 0;
PICKUP_POINT_ETA
Value: 1
Ascending order by vehicle driving time to the pickup point.
Generated from protobuf enum PICKUP_POINT_ETA = 1;
PICKUP_POINT_DISTANCE
Value: 2
Ascending order by vehicle driving distance to the pickup point.
Generated from protobuf enum PICKUP_POINT_DISTANCE = 2;
DROPOFF_POINT_ETA
Value: 3
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.
Generated from protobuf enum DROPOFF_POINT_ETA = 3;
PICKUP_POINT_STRAIGHT_DISTANCE
Value: 4
Ascending order by straight-line distance from the vehicle's last
reported location to the pickup point.
Generated from protobuf enum PICKUP_POINT_STRAIGHT_DISTANCE = 4;
COST
Value: 5
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.
[[["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 VehicleMatchOrder (0.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.1 (latest)](/php/docs/reference/maps-fleetengine/latest/V1.SearchVehiclesRequest.VehicleMatchOrder)\n- [0.4.0](/php/docs/reference/maps-fleetengine/0.4.0/V1.SearchVehiclesRequest.VehicleMatchOrder)\n- [0.3.1](/php/docs/reference/maps-fleetengine/0.3.1/V1.SearchVehiclesRequest.VehicleMatchOrder)\n- [0.2.0](/php/docs/reference/maps-fleetengine/0.2.0/V1.SearchVehiclesRequest.VehicleMatchOrder)\n- [0.1.6](/php/docs/reference/maps-fleetengine/0.1.6/V1.SearchVehiclesRequest.VehicleMatchOrder) \nReference documentation and code samples for the Google Maps FleetEngine V1 Client class VehicleMatchOrder.\n\nSpecifies the order of the vehicle matches in the response.\n\nProtobuf type `maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder`\n\nNamespace\n---------\n\nGoogle \\\\ Maps \\\\ FleetEngine \\\\ V1 \\\\ SearchVehiclesRequest\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### UNKNOWN_VEHICLE_MATCH_ORDER\n\n Value: 0\n\nDefault, used for unspecified or unrecognized vehicle matches order.\n\nGenerated from protobuf enum `UNKNOWN_VEHICLE_MATCH_ORDER = 0;`\n\n### PICKUP_POINT_ETA\n\n Value: 1\n\nAscending order by vehicle driving time to the pickup point.\n\nGenerated from protobuf enum `PICKUP_POINT_ETA = 1;`\n\n### PICKUP_POINT_DISTANCE\n\n Value: 2\n\nAscending order by vehicle driving distance to the pickup point.\n\nGenerated from protobuf enum `PICKUP_POINT_DISTANCE = 2;`\n\n### DROPOFF_POINT_ETA\n\n Value: 3\n\nAscending order by vehicle driving time to the dropoff point. This order\ncan only be used if the dropoff point is specified in the request.\n\nGenerated from protobuf enum `DROPOFF_POINT_ETA = 3;`\n\n### PICKUP_POINT_STRAIGHT_DISTANCE\n\n Value: 4\n\nAscending order by straight-line distance from the vehicle's last\nreported location to the pickup point.\n\nGenerated from protobuf enum `PICKUP_POINT_STRAIGHT_DISTANCE = 4;`\n\n### COST\n\n Value: 5\n\nAscending order by the configured match cost. Match cost is defined as a\nweighted calculation between straight-line distance and ETA. Weights are\nset with default values and can be modified per customer. Please contact\nGoogle support if these weights need to be modified for your project.\n\nGenerated from protobuf enum `COST = 5;`"]]