AI-generated Key Takeaways
-
GMTSVehicleMatchprovides details about a vehicle matching aSearchVehiclesRequest, including vehicle information, ETA, and distance calculations. -
The object contains properties for
vehicledetails,pickupETA,pickupDistanceInMeters,dropoffETA,pickupToDropoffDistanceInMeters, andtripType. -
It allows for retrieving timestamps for both pickup and drop-off ETAs, which are represented as
TimeInterval. -
Distance information is available for the distance from the current location to the pickup point, as well as the distance from pickup to drop-off, represented as
Int32. -
The
initWithVehicle:pickupETA:pickupDistance:dropoffETA:pickupToDropoffDistance:tripType:method is deprecated for initializingGMTSVehicleMatchobjects, it is recommended to use theinitWithVehicle:vehiclePickupETA:vehicleDropoffETA:vehiclePickupToDropoffDistance:tripType:method instead.
GMTSVehicleMatch
@interface GMTSVehicleMatch : GMTCImmutableDataObject that contains the vehicle’s information, ETA, and distance
calculations for a vehicle that matches the SearchVehiclesRequest.
-
The related vehicle information.
Declaration
Swift
@NSCopying var vehicle: GMTSVehicle? { get }Objective-C
@property (nonatomic, copy, readonly, nullable) GMTSVehicle *vehicle; -
The timestamp of the pickup ETA.
Declaration
Swift
var pickupETA: TimeInterval { get }Objective-C
@property (nonatomic, readonly) NSTimeInterval pickupETA; -
The distance from current location to the pickup location.
Declaration
Swift
var pickupDistanceInMeters: Int32 { get }Objective-C
@property (nonatomic, readonly) int32_t pickupDistanceInMeters; -
The timestamp of the drop off ETA.
Declaration
Swift
var dropoffETA: TimeInterval { get }Objective-C
@property (nonatomic, readonly) NSTimeInterval dropoffETA; -
The distance from pickup to drop off.
Declaration
Swift
var pickupToDropoffDistanceInMeters: Int32 { get }Objective-C
@property (nonatomic, readonly) int32_t pickupToDropoffDistanceInMeters; -
The trip type of the vehicle.
Declaration
Swift
var tripType: GMTSTripType { get }Objective-C
@property (nonatomic, readonly) enum GMTSTripType tripType; -
Deprecated
GMTSVehicleMatch is deprecated.
Initialization of the object.
Declaration
Swift
init(vehicle: GMTSVehicle?, pickupETA: TimeInterval, pickupDistance: Int32, dropoffETA: TimeInterval, pickupToDropoffDistance: Int32, tripType: GMTSTripType)Objective-C
- (nonnull instancetype)initWithVehicle:(nullable GMTSVehicle *)vehicle pickupETA:(NSTimeInterval)pickupETA pickupDistance:(int32_t)pickupDistance dropoffETA:(NSTimeInterval)dropoffETA pickupToDropoffDistance:(int32_t)pickupToDropoffDistance tripType:(enum GMTSTripType)tripType;Parameters
vehicleThe vehicle data.
pickupETAThe timestamp of the pickup ETA.
pickupDistanceThe distance from current location to the pickup point.
dropoffETAThe timestamp of the drop off ETA.
pickupToDropoffDistanceThe distance from pickup to drop off.
tripTypeThe trip type.
-
Unavailable
Use
initWithVehicle:vehiclePickupETA:vehicleDropoffETA:vehiclePickupToDropoffDistance:tripType:instead.Declaration
Objective-C
- (nonnull instancetype)init;