GoogleRidesharingConsumer Framework Reference
GMTSVehicleSearchOrder
enum GMTSVehicleSearchOrder : NSUInteger {}
Enum that defines all supported search orders.
-
Declaration
Objective-C
GMTSVehicleSearchOrderUnknown
-
Declaration
Swift
case byPickupETA = 1
Objective-C
GMTSVehicleSearchOrderByPickupETA
-
Declaration
Swift
case byPickupDistance = 2
Objective-C
GMTSVehicleSearchOrderByPickupDistance
-
Declaration
Swift
case byDropoffETA = 3
Objective-C
GMTSVehicleSearchOrderByDropoffETA
-
Declaration
Swift
case byPickupPointStraightDistance = 4
Objective-C
GMTSVehicleSearchOrderByPickupPointStraightDistance
-
Declaration
Objective-C
GMTSVehicleSearchOrderByCost
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
[null,null,["Last updated 2025-01-21 UTC."],[[["This content defines the `GMTSVehicleSearchOrder` enum, which is used to specify the order in which vehicle search results are presented."],["The enum includes cases for ordering by unknown criteria, estimated time of arrival for pickup (`byPickupETA`), and distance to the pickup location (`byPickupDistance`)."],["Other supported ordering options include estimated time of arrival for drop-off (`byDropoffETA`), straight-line distance to the pickup point (`byPickupPointStraightDistance`), and cost (`byCost`)."],["Each search order case is available for use in both Swift and Objective-C."]]],["`GMTSVehicleSearchOrder` is an enumeration defining vehicle search orders. It supports six search types: `unknown`, `byPickupETA` (estimated time of arrival), `byPickupDistance`, `byDropoffETA`, `byPickupPointStraightDistance`, and `byCost`. Each option is associated with a numerical value, starting with 0 for `unknown` and incrementing up to 5 for `byCost`. These orders are available for both Swift and Objective-C implementations.\n"]]