GoogleRidesharingDriver Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMTDVehicleUpdate
@interface GMTDVehicleUpdate : NSObject <NSCopying>
Object representing a vehicle update.
-
-
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;
-
Declaration
Objective-C
- (null_unspecified instancetype)init;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGMTDVehicleUpdate\u003c/code\u003e object provides information about a vehicle's current status and progress towards its destination.\u003c/p\u003e\n"],["\u003cp\u003eIt contains the vehicle's state, its current location, and the destination waypoint.\u003c/p\u003e\n"],["\u003cp\u003eThe object details the route to the destination, presenting it as an array of \u003ccode\u003eCLLocation\u003c/code\u003e data points.\u003c/p\u003e\n"],["\u003cp\u003eIt includes the remaining time in seconds and remaining distance in meters to the destination.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers are not expected to directly initialize this object; it is created by the \u003ccode\u003eGMTDVehicleReporter\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# GoogleRidesharingDriver Framework Reference\n\nGMTDVehicleUpdate\n=================\n\n @interface GMTDVehicleUpdate : NSObject \u003cNSCopying\u003e\n\nObject representing a vehicle update.\n- `\n ``\n ``\n `\n\n ### [vehicleState](#/c:objc(cs)GMTDVehicleUpdate(py)vehicleState)\n\n `\n ` \n The vehicle state. \n\n #### Declaration\n\n Swift \n\n var vehicleState: ../Enums/GMTDVehicleState.html { get }\n\n Objective-C \n\n @property (nonatomic, readonly) ../Enums/GMTDVehicleState.html vehicleState;\n\n- `\n ``\n ``\n `\n\n ### [location](#/c:objc(cs)GMTDVehicleUpdate(py)location)\n\n `\n ` \n The location. \n\n #### Declaration\n\n Swift \n\n @NSCopying var location: CLLocation? { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) CLLocation *location;\n\n- `\n ``\n ``\n `\n\n ### [destinationWaypoint](#/c:objc(cs)GMTDVehicleUpdate(py)destinationWaypoint)\n\n `\n ` \n The destination waypoint. \n\n #### Declaration\n\n Swift \n\n var destinationWaypoint: GMSNavigationWaypoint? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) GMSNavigationWaypoint *destinationWaypoint;\n\n- `\n ``\n ``\n `\n\n ### [route](#/c:objc(cs)GMTDVehicleUpdate(py)route)\n\n `\n ` \n The route to the destination. \n\n #### Declaration\n\n Swift \n\n var route: [CLLocation]? { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) NSArray\u003cCLLocation *\u003e *route;\n\n- `\n ``\n ``\n `\n\n ### [remainingTimeInSeconds](#/c:objc(cs)GMTDVehicleUpdate(py)remainingTimeInSeconds)\n\n `\n ` \n The remaining time to the destination, in seconds. \n\n #### Declaration\n\n Swift \n\n @NSCopying var remainingTimeInSeconds: NSNumber? { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) NSNumber *remainingTimeInSeconds;\n\n- `\n ``\n ``\n `\n\n ### [remainingDistanceInMeters](#/c:objc(cs)GMTDVehicleUpdate(py)remainingDistanceInMeters)\n\n `\n ` \n The remaining distance in meters to the destination. \n\n #### Declaration\n\n Swift \n\n @NSCopying var remainingDistanceInMeters: NSNumber? { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) NSNumber *remainingDistanceInMeters;\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)GMTDVehicleUpdate(im)init)\n\n `\n ` \n Unavailable \n This object is initialized by the [GMTDVehicleReporter](../Classes/GMTDVehicleReporter.html) and not intended by developers. \n\n #### Declaration\n\n Objective-C \n\n - (null_unspecified instancetype)init;"]]