GoogleRidesharingConsumer Framework Reference

GMTSVehicleMatch

@interface GMTSVehicleMatch : GMTCImmutableData

Object 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

    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.

  • Unavailable

    Use initWithVehicle:vehiclePickupETA:vehicleDropoffETA:vehiclePickupToDropoffDistance:tripType: instead.

    Declaration

    Objective-C

    - (nonnull instancetype)init;