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

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

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

Deprecated. Use altitude_accurarcy instead.

altitude_accuracy: Option<f64>

Accuracy of altitude measurement in meters.

speed_kmph: Option<i32>
👎 Deprecated

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Returns the encoded length of the message without a length delimiter.

Clears the message, resetting all fields to their default.

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

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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