GMTSVehicleMatch Class Reference
Overview
Object that contains the vehicle's information, ETA, and distance calculations for a vehicle that matches the SearchVehiclesRequest.
Inherits GMTCImmutableData.
Public Member Functions | |
(instancetype) | - initWithVehicle:pickupETA:pickupDistance:dropoffETA:pickupToDropoffDistance:tripType: |
Initialization of the object. | |
Properties | |
GMTSVehicle * | vehicle |
The related vehicle information. | |
NSTimeInterval | pickupETA |
The timestamp of the pickup ETA. | |
int32_t | pickupDistanceInMeters |
The distance from current location to the pickup location. | |
NSTimeInterval | dropoffETA |
The timestamp of the drop off ETA. | |
int32_t | pickupToDropoffDistanceInMeters |
The distance from pickup to drop off. | |
enum GMTSTripType | tripType |
The trip type of the vehicle. |
Member Function Documentation
- (instancetype) initWithVehicle: | (nullable GMTSVehicle *) | vehicle | |
pickupETA: | (NSTimeInterval) | pickupETA | |
pickupDistance: | (int32_t) | pickupDistance | |
dropoffETA: | (NSTimeInterval) | dropoffETA | |
pickupToDropoffDistance: | (int32_t) | pickupToDropoffDistance | |
tripType: | (enum GMTSTripType) | tripType | |
Initialization of the object.
- Parameters:
-
vehicle The vehicle data. pickupETA The timestamp of the pickup ETA. pickupDistance The distance from current location to the pickup point. dropoffETA The timestamp of the drop off ETA. pickupToDropoffDistance The distance from pickup to drop off. tripType The trip type.
- Note:
- GMTSVehicleMatch is deprecated.
Property Documentation
- (GMTSVehicle*) vehicle [read, copy] |
The related vehicle information.
- (NSTimeInterval) pickupETA [read, assign] |
The timestamp of the pickup ETA.
- (int32_t) pickupDistanceInMeters [read, assign] |
The distance from current location to the pickup location.
- (NSTimeInterval) dropoffETA [read, assign] |
The timestamp of the drop off ETA.
- (int32_t) pickupToDropoffDistanceInMeters [read, assign] |
The distance from pickup to drop off.
- (enum GMTSTripType) tripType [read, assign] |
The trip type of the vehicle.