Struct googapis::maps::fleetengine::v1::VehicleLocation [−][src]
pub struct VehicleLocation {Show 28 fields
pub location: Option<LatLng>,
pub horizontal_accuracy: Option<f64>,
pub latlng_accuracy: Option<f64>,
pub heading: Option<i32>,
pub bearing_accuracy: Option<f64>,
pub heading_accuracy: Option<f64>,
pub altitude: Option<f64>,
pub vertical_accuracy: Option<f64>,
pub altitude_accuracy: Option<f64>,
pub speed_kmph: Option<i32>,
pub speed: Option<f64>,
pub speed_accuracy: Option<f64>,
pub update_time: Option<Timestamp>,
pub server_time: Option<Timestamp>,
pub location_sensor: i32,
pub is_road_snapped: Option<bool>,
pub is_gps_sensor_enabled: Option<bool>,
pub time_since_update: Option<i32>,
pub num_stale_updates: Option<i32>,
pub raw_location: Option<LatLng>,
pub raw_location_time: Option<Timestamp>,
pub raw_location_sensor: i32,
pub raw_location_accuracy: Option<f64>,
pub supplemental_location: Option<LatLng>,
pub supplemental_location_time: Option<Timestamp>,
pub supplemental_location_sensor: i32,
pub supplemental_location_accuracy: Option<f64>,
pub road_snapped: bool,
}
Expand description
The location, speed, and heading of a vehicle at a point in time.
Fields
location: Option<LatLng>
The location of the vehicle. When it is sent to FleetEngine, the vehicle’s location is a GPS location. When you receive it in a response, the vehicle’s location can be either a GPS location or a supplemental location. The source is specified in the field ‘location_sensor’.
horizontal_accuracy: Option<f64>
Deprecated. Use latlng_accuracy instead.
latlng_accuracy: Option<f64>
Accuracy of horizontal measurements (lat/lng) in meters as a radius.
heading: Option<i32>
Direction the vehicle is moving in degrees. 0 represents North. The valid range is [0,360).
bearing_accuracy: Option<f64>
Deprecated. Use heading_accuracy instead.
heading_accuracy: Option<f64>
Accuracy of heading (bearing) in degrees.
altitude: Option<f64>
Altitude in meters above WGS84.
vertical_accuracy: Option<f64>
Deprecated. Use altitude_accurarcy instead.
altitude_accuracy: Option<f64>
Accuracy of altitude measurement in meters.
speed_kmph: Option<i32>
Speed of the vehicle in kilometers per hour. Deprecated. Use speed instead.
speed: Option<f64>
Speed of the vehicle in meters/second
speed_accuracy: Option<f64>
Accuracy of speed in meters/second.
update_time: Option<Timestamp>
The time when the location was recorded.
server_time: Option<Timestamp>
Output only. The time when the server receives the location information, filled by FleetEngine.
location_sensor: i32
Provider of location data (for example, “gps”).
is_road_snapped: Option<bool>
Whether the vehicle location given by “location” field is snapped to a road closest to the location given by “raw_location”. Driver SDK 1.15.1/2.1.1 and up will always set this field. Unset value will be treated as true.
is_gps_sensor_enabled: Option<bool>
Input only. Indicates whether the GPS sensor is enabled.
time_since_update: Option<i32>
Input only. Time (in seconds) since this location sample was first sent to the server. This will be zero for the first update. If the time is unknown (for example, when the app restarts), this value resets to zero.
num_stale_updates: Option<i32>
Input only. Number of additional attempts to send the current location to the server. If this value is zero, then it is not stale.
raw_location: Option<LatLng>
Raw vehicle location (unprocessed by road-snapper).
raw_location_time: Option<Timestamp>
Input only. Timestamp associated with the raw location.
raw_location_sensor: i32
Input only. Source of the raw location.
raw_location_accuracy: Option<f64>
Input only. Accuracy of the raw location (lat/lng) as a radius, measured in meters.
supplemental_location: Option<LatLng>
Input only. Supplemental location provided by the integrating app, such as the location provided by Fused Location Provider.
supplemental_location_time: Option<Timestamp>
Input only. Timestamp associated with the supplemental location.
supplemental_location_sensor: i32
Input only. Source of the supplemental location.
supplemental_location_accuracy: Option<f64>
Input only. Accuracy of supplemental location (lat/lng) as a radius, measured in meters.
road_snapped: bool
Deprecated, use is_road_snapped instead.
Implementations
Returns the enum value of location_sensor
, or the default if the field is set to an invalid enum value.
Sets location_sensor
to the provided enum value.
Returns the enum value of supplemental_location_sensor
, or the default if the field is set to an invalid enum value.
Sets supplemental_location_sensor
to the provided enum value.
Returns the enum value of raw_location_sensor
, or the default if the field is set to an invalid enum value.
Sets raw_location_sensor
to the provided enum value.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for VehicleLocation
impl Send for VehicleLocation
impl Sync for VehicleLocation
impl Unpin for VehicleLocation
impl UnwindSafe for VehicleLocation
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more