Class VehicleLocation
The location, speed, and heading of a vehicle at a point in time.
Implements
Namespace: Google.Maps.FleetEngine.V1
Assembly: Google.Maps.FleetEngine.V1.dll
Syntax
public sealed class VehicleLocation : IMessage<VehicleLocation>, IEquatable<VehicleLocation>, IDeepCloneable<VehicleLocation>, IBufferMessage, IMessage
Constructors
VehicleLocation()
Declaration
public VehicleLocation()
VehicleLocation(VehicleLocation)
Declaration
public VehicleLocation(VehicleLocation other)
Parameters
Type | Name | Description |
---|---|---|
VehicleLocation | other |
Properties
Altitude
Altitude in meters above WGS84.
Declaration
public double? Altitude { get; set; }
Property Value
Type | Description |
---|---|
double? |
AltitudeAccuracy
Accuracy of altitude
in meters.
Declaration
public double? AltitudeAccuracy { get; set; }
Property Value
Type | Description |
---|---|
double? |
BearingAccuracy
Deprecated: Use heading_accuracy
instead.
Declaration
[Obsolete]
public double? BearingAccuracy { get; set; }
Property Value
Type | Description |
---|---|
double? |
Heading
Direction the vehicle is moving in degrees. 0 represents North. The valid range is [0,360).
Declaration
public int? Heading { get; set; }
Property Value
Type | Description |
---|---|
int? |
HeadingAccuracy
Accuracy of heading
in degrees.
Declaration
public double? HeadingAccuracy { get; set; }
Property Value
Type | Description |
---|---|
double? |
HorizontalAccuracy
Deprecated: Use latlng_accuracy
instead.
Declaration
[Obsolete]
public double? HorizontalAccuracy { get; set; }
Property Value
Type | Description |
---|---|
double? |
IsGpsSensorEnabled
Input only. Indicates whether the GPS sensor is enabled on the mobile device.
Declaration
public bool? IsGpsSensorEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool? |
IsRoadSnapped
Whether location
is snapped to a road.
Declaration
public bool? IsRoadSnapped { get; set; }
Property Value
Type | Description |
---|---|
bool? |
LatlngAccuracy
Accuracy of location
in meters as a radius.
Declaration
public double? LatlngAccuracy { get; set; }
Property Value
Type | Description |
---|---|
double? |
Location
The location of the vehicle.
When it is sent to Fleet Engine, 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, a supplemental location, or some other estimated location.
The source is specified in location_sensor
.
Declaration
public LatLng Location { get; set; }
Property Value
Type | Description |
---|---|
LatLng |
LocationSensor
Provider of location data (for example, GPS
).
Declaration
public LocationSensor LocationSensor { get; set; }
Property Value
Type | Description |
---|---|
LocationSensor |
NumStaleUpdates
Input only. Deprecated: Other signals are now used to determine if a location is stale.
Declaration
[Obsolete]
public int? NumStaleUpdates { get; set; }
Property Value
Type | Description |
---|---|
int? |
RawLocation
Raw vehicle location (unprocessed by road-snapper).
Declaration
public LatLng RawLocation { get; set; }
Property Value
Type | Description |
---|---|
LatLng |
RawLocationAccuracy
Accuracy of raw_location
as a radius, in meters.
Declaration
public double? RawLocationAccuracy { get; set; }
Property Value
Type | Description |
---|---|
double? |
RawLocationSensor
Source of the raw location. Defaults to GPS
.
Declaration
public LocationSensor RawLocationSensor { get; set; }
Property Value
Type | Description |
---|---|
LocationSensor |
RawLocationTime
Timestamp associated with the raw location.
Declaration
public Timestamp RawLocationTime { get; set; }
Property Value
Type | Description |
---|---|
Timestamp |
RoadSnapped
Deprecated: Use is_road_snapped
instead.
Declaration
[Obsolete]
public bool RoadSnapped { get; set; }
Property Value
Type | Description |
---|---|
bool |
ServerTime
Output only. The time when the server received the location information.
Declaration
public Timestamp ServerTime { get; set; }
Property Value
Type | Description |
---|---|
Timestamp |
Speed
Speed of the vehicle in meters/second
Declaration
public double? Speed { get; set; }
Property Value
Type | Description |
---|---|
double? |
SpeedAccuracy
Accuracy of speed
in meters/second.
Declaration
public double? SpeedAccuracy { get; set; }
Property Value
Type | Description |
---|---|
double? |
SpeedKmph
Speed of the vehicle in kilometers per hour.
Deprecated: Use speed
instead.
Declaration
[Obsolete]
public int? SpeedKmph { get; set; }
Property Value
Type | Description |
---|---|
int? |
SupplementalLocation
Supplemental location provided by the integrating app.
Declaration
public LatLng SupplementalLocation { get; set; }
Property Value
Type | Description |
---|---|
LatLng |
SupplementalLocationAccuracy
Accuracy of supplemental_location
as a radius, in meters.
Declaration
public double? SupplementalLocationAccuracy { get; set; }
Property Value
Type | Description |
---|---|
double? |
SupplementalLocationSensor
Source of the supplemental location. Defaults to
CUSTOMER_SUPPLIED_LOCATION
.
Declaration
public LocationSensor SupplementalLocationSensor { get; set; }
Property Value
Type | Description |
---|---|
LocationSensor |
SupplementalLocationTime
Timestamp associated with the supplemental location.
Declaration
public Timestamp SupplementalLocationTime { get; set; }
Property Value
Type | Description |
---|---|
Timestamp |
TimeSinceUpdate
Input only. Time (in seconds) since this location 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.
Declaration
public int? TimeSinceUpdate { get; set; }
Property Value
Type | Description |
---|---|
int? |
UpdateTime
The time when location
was reported by the sensor according to the
sensor's clock.
Declaration
public Timestamp UpdateTime { get; set; }
Property Value
Type | Description |
---|---|
Timestamp |
VerticalAccuracy
Deprecated: Use altitude_accuracy
instead.
Declaration
[Obsolete]
public double? VerticalAccuracy { get; set; }
Property Value
Type | Description |
---|---|
double? |