# GoogleRidesharingConsumer Framework Reference

# GMTSVehicleMatch

    @interface GMTSVehicleMatch : https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTCImmutableData.html

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


  ### [vehicle](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicleMatch#/c:objc(cs)GMTSVehicleMatch(py)vehicle)


  ` The related vehicle information.

  #### Declaration

  Swift

      @NSCopying var vehicle: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicle.html? { get }

  Objective-C

      @property (nonatomic, copy, readonly, nullable) https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicle.html *vehicle;

- `


  ### [pickupETA](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicleMatch#/c:objc(cs)GMTSVehicleMatch(py)pickupETA)


  ` The timestamp of the pickup ETA.

  #### Declaration

  Swift

      var pickupETA: TimeInterval { get }

  Objective-C

      @property (nonatomic, readonly) NSTimeInterval pickupETA;

- `


  ### [pickupDistanceInMeters](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicleMatch#/c:objc(cs)GMTSVehicleMatch(py)pickupDistanceInMeters)


  ` The distance from current location to the pickup location.

  #### Declaration

  Swift

      var pickupDistanceInMeters: Int32 { get }

  Objective-C

      @property (nonatomic, readonly) int32_t pickupDistanceInMeters;

- `


  ### [dropoffETA](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicleMatch#/c:objc(cs)GMTSVehicleMatch(py)dropoffETA)


  ` The timestamp of the drop off ETA.

  #### Declaration

  Swift

      var dropoffETA: TimeInterval { get }

  Objective-C

      @property (nonatomic, readonly) NSTimeInterval dropoffETA;

- `


  ### [pickupToDropoffDistanceInMeters](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicleMatch#/c:objc(cs)GMTSVehicleMatch(py)pickupToDropoffDistanceInMeters)


  ` The distance from pickup to drop off.

  #### Declaration

  Swift

      var pickupToDropoffDistanceInMeters: Int32 { get }

  Objective-C

      @property (nonatomic, readonly) int32_t pickupToDropoffDistanceInMeters;

- `


  ### [tripType](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicleMatch#/c:objc(cs)GMTSVehicleMatch(py)tripType)


  ` The trip type of the vehicle.

  #### Declaration

  Swift

      var tripType: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Enums/GMTSTripType.html { get }

  Objective-C

      @property (nonatomic, readonly) enum https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Enums/GMTSTripType.html tripType;

- `


  ### [-initWithVehicle:pickupETA:pickupDistance:dropoffETA:pickupToDropoffDistance:tripType:](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicleMatch#/c:objc(cs)GMTSVehicleMatch(im)initWithVehicle:pickupETA:pickupDistance:dropoffETA:pickupToDropoffDistance:tripType:)


  ` Deprecated

  GMTSVehicleMatch is deprecated.
  Initialization of the object.

  #### Declaration

  Swift

      init(vehicle: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicle.html?, pickupETA: TimeInterval, pickupDistance: Int32, dropoffETA: TimeInterval, pickupToDropoffDistance: Int32, tripType: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Enums/GMTSTripType.html)

  Objective-C

      - (nonnull instancetype)initWithVehicle:(nullable https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicle.html *)vehicle
                                    pickupETA:(NSTimeInterval)pickupETA
                               pickupDistance:(int32_t)pickupDistance
                                   dropoffETA:(NSTimeInterval)dropoffETA
                      pickupToDropoffDistance:(int32_t)pickupToDropoffDistance
                                     tripType:(enum https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Enums/GMTSTripType.html)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. |

- `


  ### [-init](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicleMatch#/c:objc(cs)GMTSVehicleMatch(im)init)


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

  #### Declaration

  Objective-C

      - (nonnull instancetype)init;