GMTSVehicleLocationOptions
@interface GMTSVehicleLocationOptions : NSObject
This class defines initialization-time options for GMTSVehicleLocation
.
-
Location of the vehicle.
Declaration
Swift
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.
Declaration
Swift
var latLngAccuracy: Double { get set }
Objective-C
@property (nonatomic) double latLngAccuracy;
-
Heading corner radius of the vehicle.
Declaration
Swift
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.
Declaration
Swift
var headingAccuracy: Double { get set }
Objective-C
@property (nonatomic) double headingAccuracy;
-
Speed of the vehicle.
Declaration
Swift
var speed: Int32 { get set }
Objective-C
@property (nonatomic) int32_t speed;
-
Accuracy of speed in meters per second.
Declaration
Swift
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).
Declaration
Swift
var updateTime: TimeInterval { get set }
Objective-C
@property (nonatomic) NSTimeInterval updateTime;
-
Indicates whether the vehicle can be snapped to the route.
Declaration
Swift
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).
Declaration
Swift
var updateServerTime: TimeInterval { get set }
Objective-C
@property (nonatomic) NSTimeInterval updateServerTime;