# GoogleRidesharingConsumer Framework Reference

# GMTSVehicleLocationOptions

    @interface GMTSVehicleLocationOptions : NSObject

This class defines initialization-time options for `https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicleLocation.html`.
- `


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


  ` Location of the vehicle.

  #### Declaration

  Swift

      var latLng: https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSLatLng.html? { get set }

  Objective-C

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

- `


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


  ` 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](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicleLocationOptions#/c:objc(cs)GMTSVehicleLocationOptions(py)heading)


  ` Heading corner radius of the vehicle.

  #### Declaration

  Swift

      var heading: CLLocationDirection { get set }

  Objective-C

      @property (nonatomic) CLLocationDirection heading;

- `


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


  ` 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](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/reference/ios/Classes/GMTSVehicleLocationOptions#/c:objc(cs)GMTSVehicleLocationOptions(py)speed)


  ` Speed of the vehicle.

  #### Declaration

  Swift

      var speed: Int32 { get set }

  Objective-C

      @property (nonatomic) int32_t speed;

- `


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


  ` Accuracy of speed in meters per second.

  #### Declaration

  Swift

      var speedAccuracy: Double { get set }

  Objective-C

      @property (nonatomic) double speedAccuracy;

- `


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


  ` 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;

- `


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


  ` Indicates whether the vehicle can be snapped to the route.

  #### Declaration

  Swift

      var isSnappableToRoute: Bool { get set }

  Objective-C

      @property (nonatomic) BOOL isSnappableToRoute;

- `


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


  ` 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;