Class: Google::Maps::FleetEngine::V1::VehicleLocation
- Inherits:
-
Object
- Object
- Google::Maps::FleetEngine::V1::VehicleLocation
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/maps/fleetengine/v1/fleetengine.rb
Overview
The location, speed, and heading of a vehicle at a point in time.
Instance Attribute Summary collapse
-
#altitude ⇒ ::Google::Protobuf::DoubleValue
Altitude in meters above WGS84.
-
#altitude_accuracy ⇒ ::Google::Protobuf::DoubleValue
Accuracy of
altitudein meters. -
#bearing_accuracy ⇒ ::Google::Protobuf::DoubleValue
deprecated
Deprecated.
This field is deprecated and may be removed in the next major version update.
-
#flp_heading_degrees ⇒ ::Google::Protobuf::Int32Value
Direction the vehicle is moving in degrees, as determined by the Fused Location Provider.
-
#flp_latlng_accuracy_meters ⇒ ::Google::Protobuf::DoubleValue
Accuracy of
flp_locationin meters as a radius. -
#flp_location ⇒ ::Google::Type::LatLng
The location from Android's Fused Location Provider.
-
#flp_update_time ⇒ ::Google::Protobuf::Timestamp
Update timestamp of
flp_location. -
#heading ⇒ ::Google::Protobuf::Int32Value
Direction the vehicle is moving in degrees.
-
#heading_accuracy ⇒ ::Google::Protobuf::DoubleValue
Accuracy of
headingin degrees. -
#horizontal_accuracy ⇒ ::Google::Protobuf::DoubleValue
deprecated
Deprecated.
This field is deprecated and may be removed in the next major version update.
-
#is_gps_sensor_enabled ⇒ ::Google::Protobuf::BoolValue
Input only.
-
#is_road_snapped ⇒ ::Google::Protobuf::BoolValue
Whether
locationis snapped to a road. -
#latlng_accuracy ⇒ ::Google::Protobuf::DoubleValue
Accuracy of
locationin meters as a radius. -
#location ⇒ ::Google::Type::LatLng
The location of the vehicle.
-
#location_sensor ⇒ ::Google::Maps::FleetEngine::V1::LocationSensor
Provider of location data (for example,
GPS). -
#num_stale_updates ⇒ ::Google::Protobuf::Int32Value
deprecated
Deprecated.
This field is deprecated and may be removed in the next major version update.
-
#raw_location ⇒ ::Google::Type::LatLng
Raw vehicle location (unprocessed by road-snapper).
-
#raw_location_accuracy ⇒ ::Google::Protobuf::DoubleValue
Accuracy of
raw_locationas a radius, in meters. -
#raw_location_sensor ⇒ ::Google::Maps::FleetEngine::V1::LocationSensor
Source of the raw location.
-
#raw_location_time ⇒ ::Google::Protobuf::Timestamp
Timestamp associated with the raw location.
-
#road_snapped ⇒ ::Boolean
deprecated
Deprecated.
This field is deprecated and may be removed in the next major version update.
-
#server_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#speed ⇒ ::Google::Protobuf::DoubleValue
Speed of the vehicle in meters/second.
-
#speed_accuracy ⇒ ::Google::Protobuf::DoubleValue
Accuracy of
speedin meters/second. -
#speed_kmph ⇒ ::Google::Protobuf::Int32Value
deprecated
Deprecated.
This field is deprecated and may be removed in the next major version update.
-
#supplemental_location ⇒ ::Google::Type::LatLng
Supplemental location provided by the integrating app.
-
#supplemental_location_accuracy ⇒ ::Google::Protobuf::DoubleValue
Accuracy of
supplemental_locationas a radius, in meters. -
#supplemental_location_sensor ⇒ ::Google::Maps::FleetEngine::V1::LocationSensor
Source of the supplemental location.
-
#supplemental_location_time ⇒ ::Google::Protobuf::Timestamp
Timestamp associated with the supplemental location.
-
#time_since_update ⇒ ::Google::Protobuf::Int32Value
Input only.
-
#update_time ⇒ ::Google::Protobuf::Timestamp
The time when
locationwas reported by the sensor according to the sensor's clock. -
#vertical_accuracy ⇒ ::Google::Protobuf::DoubleValue
deprecated
Deprecated.
This field is deprecated and may be removed in the next major version update.
Instance Attribute Details
#altitude ⇒ ::Google::Protobuf::DoubleValue
Returns Altitude in meters above WGS84.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#altitude_accuracy ⇒ ::Google::Protobuf::DoubleValue
Returns Accuracy of altitude in meters.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#bearing_accuracy ⇒ ::Google::Protobuf::DoubleValue
This field is deprecated and may be removed in the next major version update.
Returns Deprecated: Use heading_accuracy instead.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#flp_heading_degrees ⇒ ::Google::Protobuf::Int32Value
Returns Direction the vehicle is moving in degrees, as determined by the Fused Location Provider. 0 represents North. The valid range is [0,360).
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#flp_latlng_accuracy_meters ⇒ ::Google::Protobuf::DoubleValue
Returns Accuracy of flp_location in meters as a radius.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#flp_location ⇒ ::Google::Type::LatLng
Returns The location from Android's Fused Location Provider.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#flp_update_time ⇒ ::Google::Protobuf::Timestamp
Returns Update timestamp of flp_location.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#heading ⇒ ::Google::Protobuf::Int32Value
Returns Direction the vehicle is moving in degrees. 0 represents North. The valid range is [0,360).
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#heading_accuracy ⇒ ::Google::Protobuf::DoubleValue
Returns Accuracy of heading in degrees.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#horizontal_accuracy ⇒ ::Google::Protobuf::DoubleValue
This field is deprecated and may be removed in the next major version update.
Returns Deprecated: Use latlng_accuracy instead.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#is_gps_sensor_enabled ⇒ ::Google::Protobuf::BoolValue
Returns Input only. Indicates whether the GPS sensor is enabled on the mobile device.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#is_road_snapped ⇒ ::Google::Protobuf::BoolValue
Returns Whether location is snapped to a road.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#latlng_accuracy ⇒ ::Google::Protobuf::DoubleValue
Returns Accuracy of location in meters as a radius.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#location ⇒ ::Google::Type::LatLng
Returns 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.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#location_sensor ⇒ ::Google::Maps::FleetEngine::V1::LocationSensor
Returns Provider of location data (for example, GPS).
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#num_stale_updates ⇒ ::Google::Protobuf::Int32Value
This field is deprecated and may be removed in the next major version update.
Returns Input only. Deprecated: Other signals are now used to determine if a location is stale.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#raw_location ⇒ ::Google::Type::LatLng
Returns Raw vehicle location (unprocessed by road-snapper).
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#raw_location_accuracy ⇒ ::Google::Protobuf::DoubleValue
Returns Accuracy of raw_location as a radius, in meters.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#raw_location_sensor ⇒ ::Google::Maps::FleetEngine::V1::LocationSensor
Returns Source of the raw location. Defaults to GPS.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#raw_location_time ⇒ ::Google::Protobuf::Timestamp
Returns Timestamp associated with the raw location.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#road_snapped ⇒ ::Boolean
This field is deprecated and may be removed in the next major version update.
Returns Deprecated: Use is_road_snapped instead.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#server_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The time when the server received the location information.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#speed ⇒ ::Google::Protobuf::DoubleValue
Returns Speed of the vehicle in meters/second.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#speed_accuracy ⇒ ::Google::Protobuf::DoubleValue
Returns Accuracy of speed in meters/second.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#speed_kmph ⇒ ::Google::Protobuf::Int32Value
This field is deprecated and may be removed in the next major version update.
Returns Speed of the vehicle in kilometers per hour.
Deprecated: Use speed instead.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#supplemental_location ⇒ ::Google::Type::LatLng
Returns Supplemental location provided by the integrating app.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#supplemental_location_accuracy ⇒ ::Google::Protobuf::DoubleValue
Returns Accuracy of supplemental_location as a radius, in meters.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#supplemental_location_sensor ⇒ ::Google::Maps::FleetEngine::V1::LocationSensor
Returns Source of the supplemental location. Defaults to
CUSTOMER_SUPPLIED_LOCATION.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#supplemental_location_time ⇒ ::Google::Protobuf::Timestamp
Returns Timestamp associated with the supplemental location.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#time_since_update ⇒ ::Google::Protobuf::Int32Value
Returns 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.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#update_time ⇒ ::Google::Protobuf::Timestamp
Returns The time when location was reported by the sensor according to the
sensor's clock.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#vertical_accuracy ⇒ ::Google::Protobuf::DoubleValue
This field is deprecated and may be removed in the next major version update.
Returns Deprecated: Use altitude_accuracy instead.
266 267 268 269 |
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 266 class VehicleLocation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |