Class: Google::Maps::FleetEngine::V1::VehicleLocation

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#altitude::Google::Protobuf::DoubleValue

Returns Altitude in meters above WGS84.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

class VehicleLocation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#altitude_accuracy::Google::Protobuf::DoubleValue

Returns Accuracy of altitude in meters.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

class VehicleLocation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#bearing_accuracy::Google::Protobuf::DoubleValue

Deprecated.

This field is deprecated and may be removed in the next major version update.

Returns Deprecated: Use heading_accuracy instead.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

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).

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

class VehicleLocation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#heading_accuracy::Google::Protobuf::DoubleValue

Returns Accuracy of heading in degrees.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

class VehicleLocation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#horizontal_accuracy::Google::Protobuf::DoubleValue

Deprecated.

This field is deprecated and may be removed in the next major version update.

Returns Deprecated: Use latlng_accuracy instead.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

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.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

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.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

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.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

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.

Returns:

  • (::Google::Type::LatLng)

    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.



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

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).

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

class VehicleLocation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#num_stale_updates::Google::Protobuf::Int32Value

Deprecated.

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.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

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).

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

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.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

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.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

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.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

class VehicleLocation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#road_snapped::Boolean

Deprecated.

This field is deprecated and may be removed in the next major version update.

Returns Deprecated: Use is_road_snapped instead.

Returns:

  • (::Boolean)

    Deprecated: Use is_road_snapped instead.



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

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.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

class VehicleLocation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#speed::Google::Protobuf::DoubleValue

Returns Speed of the vehicle in meters/second.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

class VehicleLocation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#speed_accuracy::Google::Protobuf::DoubleValue

Returns Accuracy of speed in meters/second.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

class VehicleLocation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#speed_kmph::Google::Protobuf::Int32Value

Deprecated.

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.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

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.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

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.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

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.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

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.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

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.

Returns:

  • (::Google::Protobuf::Int32Value)

    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.



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

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.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

class VehicleLocation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#vertical_accuracy::Google::Protobuf::DoubleValue

Deprecated.

This field is deprecated and may be removed in the next major version update.

Returns Deprecated: Use altitude_accuracy instead.

Returns:



243
244
245
246
# File 'proto_docs/google/maps/fleetengine/v1/fleetengine.rb', line 243

class VehicleLocation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end