GoogleRidesharingDriver Framework Reference

  • The GMTDVehicleUpdate object provides information about a vehicle's current status and progress towards its destination.

  • It contains the vehicle's state, its current location, and the destination waypoint.

  • The object details the route to the destination, presenting it as an array of CLLocation data points.

  • It includes the remaining time in seconds and remaining distance in meters to the destination.

  • Developers are not expected to directly initialize this object; it is created by the GMTDVehicleReporter.

GMTDVehicleUpdate

@interface GMTDVehicleUpdate : NSObject <NSCopying>

Object representing a vehicle update.

  • The vehicle state.

    Declaration

    Swift

    var vehicleState: GMTDVehicleState { get }

    Objective-C

    @property (nonatomic, readonly) GMTDVehicleState vehicleState;
  • The location.

    Declaration

    Swift

    @NSCopying var location: CLLocation? { get }

    Objective-C

    @property (nonatomic, copy, readonly, nullable) CLLocation *location;
  • The destination waypoint.

    Declaration

    Swift

    var destinationWaypoint: GMSNavigationWaypoint? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) GMSNavigationWaypoint *destinationWaypoint;
  • The route to the destination.

    Declaration

    Swift

    var route: [CLLocation]? { get }

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSArray<CLLocation *> *route;
  • The remaining time to the destination, in seconds.

    Declaration

    Swift

    @NSCopying var remainingTimeInSeconds: NSNumber? { get }

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSNumber *remainingTimeInSeconds;
  • The remaining distance in meters to the destination.

    Declaration

    Swift

    @NSCopying var remainingDistanceInMeters: NSNumber? { get }

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSNumber *remainingDistanceInMeters;
  • Unavailable

    This object is initialized by the GMTDVehicleReporter and not intended by developers.

    Declaration

    Objective-C

    - (null_unspecified instancetype)init;