On-demand Rides and Deliveries Solution is currently available only to select partners. Contact sales to learn more.

GMTSVehicleMatch Class Reference

Stay organized with collections Save and categorize content based on your preferences.
GMTSVehicleMatch Class Reference

Overview

Object that contains the vehicle's information, ETA, and distance calculations for a vehicle that matches the SearchVehiclesRequest.

Inherits GMTSImmutableData.

Public Member Functions

(instancetype) - initWithVehicle:pickupETA:pickupDistance:dropoffETA:pickupToDropoffDistance:tripType:
 Initialization of the object.

Properties

GMTSVehiclevehicle
 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:
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.

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.