AI-generated Key Takeaways
- 
          GMTSVehicleLocationOptionsdefines the initialization-time options forGMTSVehicleLocation, including the vehicle's location, accuracy, heading, and speed.
- 
          This class allows setting the location's latitude and longitude ( latLng) along with its radius of uncertainty (latLngAccuracy).
- 
          You can define the vehicle's heading and its corresponding accuracy using headingandheadingAccuracy, respectively.
- 
          The class allows setting vehicle speed and its accuracy with speedandspeedAccuracy, as well as tracking location timestamps withupdateTimeandupdateServerTime.
- 
          The isSnappableToRouteoption indicates whether the vehicle's location can be snapped to the route.
GMTSVehicleLocationOptions
@interface GMTSVehicleLocationOptions : NSObjectThis class defines initialization-time options for GMTSVehicleLocation.
- 
                  
                  Location of the vehicle. DeclarationSwift var latLng: GMTSLatLng? { get set }Objective-C @property (nonatomic, strong, nullable) GMTSLatLng *latLng;
- 
                  
                  The radius of uncertainty for |latLng|, measured in meters. The |latLng| indicates the center of the circle, and |latLngAccuracy| indicates the radius of that circle. DeclarationSwift var latLngAccuracy: Double { get set }Objective-C @property (nonatomic) double latLngAccuracy;
- 
                  
                  Heading corner radius of the vehicle. DeclarationSwift var heading: CLLocationDirection { get set }Objective-C @property (nonatomic) CLLocationDirection heading;
- 
                  
                  The radius of uncertainty for |heading|, measured in degrees. The |heading| identifies the mean of the heading estimate and this value indicates the standard deviation of the estimate. DeclarationSwift var headingAccuracy: Double { get set }Objective-C @property (nonatomic) double headingAccuracy;
- 
                  
                  Speed of the vehicle. DeclarationSwift var speed: Int32 { get set }Objective-C @property (nonatomic) int32_t speed;
- 
                  
                  Accuracy of speed in meters per second. DeclarationSwift var speedAccuracy: Double { get set }Objective-C @property (nonatomic) double speedAccuracy;
- 
                  
                  The timestamp in milliseconds when the location was collected by the Driver application (client side). DeclarationSwift var updateTime: TimeInterval { get set }Objective-C @property (nonatomic) NSTimeInterval updateTime;
- 
                  
                  Indicates whether the vehicle can be snapped to the route. DeclarationSwift var isSnappableToRoute: Bool { get set }Objective-C @property (nonatomic) BOOL isSnappableToRoute;
- 
                  
                  The timestamp in milliseconds when Fleet Engine received the updated location from the Driver app. You can use this to determine if the “Driver” is “Connected”. By comparing this timestamp with the current time in the device, you can determine how long ago the driver location was reported to Fleet Engine. A negative value indicates that this value is not valid (it is absent). DeclarationSwift var updateServerTime: TimeInterval { get set }Objective-C @property (nonatomic) NSTimeInterval updateServerTime;