Class: Google::Maps::FleetEngine::V1::Vehicle
- Inherits:
-
Object
- Object
- Google::Maps::FleetEngine::V1::Vehicle
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/maps/fleetengine/v1/vehicles.rb
Overview
Vehicle metadata.
Defined Under Namespace
Classes: VehicleType
Instance Attribute Summary collapse
-
#attributes ⇒ ::Array<::Google::Maps::FleetEngine::V1::VehicleAttribute>
List of vehicle attributes.
-
#back_to_back_enabled ⇒ ::Boolean
Indicates if the driver accepts back-to-back trips.
-
#current_route_segment ⇒ ::String
The polyline specifying the route the driver app intends to take to the next waypoint.
-
#current_route_segment_end_point ⇒ ::Google::Maps::FleetEngine::V1::TripWaypoint
The waypoint where
current_route_segmentends. -
#current_route_segment_traffic ⇒ ::Google::Maps::FleetEngine::V1::TrafficPolylineData
Input only.
-
#current_route_segment_version ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#current_trips ⇒ ::Array<::String>
readonly
Output only.
-
#device_settings ⇒ ::Google::Maps::FleetEngine::V1::DeviceSettings
Input only.
-
#eta_to_first_waypoint ⇒ ::Google::Protobuf::Timestamp
The ETA to the first entry in the
waypointsfield. -
#last_location ⇒ ::Google::Maps::FleetEngine::V1::VehicleLocation
Last reported location of the vehicle.
-
#license_plate ⇒ ::Google::Maps::FleetEngine::V1::LicensePlate
License plate information for the vehicle.
-
#maximum_capacity ⇒ ::Integer
The total numbers of riders this vehicle can carry.
-
#name ⇒ ::String
readonly
Output only.
-
#navigation_status ⇒ ::Google::Maps::FleetEngine::V1::NavigationStatus
The vehicle's navigation status.
-
#past_locations ⇒ ::Array<::Google::Maps::FleetEngine::V1::VehicleLocation>
Input only.
-
#remaining_distance_meters ⇒ ::Google::Protobuf::Int32Value
The remaining driving distance for the
current_route_segment. -
#remaining_time_seconds ⇒ ::Google::Protobuf::Int32Value
Input only.
-
#route ⇒ ::Array<::Google::Maps::FleetEngine::V1::TerminalLocation>
deprecated
Deprecated.
This field is deprecated and may be removed in the next major version update.
-
#supported_trip_types ⇒ ::Array<::Google::Maps::FleetEngine::V1::TripType>
Trip types supported by this vehicle.
-
#vehicle_state ⇒ ::Google::Maps::FleetEngine::V1::VehicleState
The vehicle state.
-
#vehicle_type ⇒ ::Google::Maps::FleetEngine::V1::Vehicle::VehicleType
Required.
-
#waypoints ⇒ ::Array<::Google::Maps::FleetEngine::V1::TripWaypoint>
The remaining waypoints assigned to this Vehicle.
-
#waypoints_version ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
Instance Attribute Details
#attributes ⇒ ::Array<::Google::Maps::FleetEngine::V1::VehicleAttribute>
Returns List of vehicle attributes. A vehicle can have at most 100 attributes, and each attribute must have a unique key.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#back_to_back_enabled ⇒ ::Boolean
Returns Indicates if the driver accepts back-to-back trips. If true,
SearchVehicles may include the vehicle even if it is currently assigned
to a trip. The default value is false.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#current_route_segment ⇒ ::String
Returns The polyline specifying the route the driver app intends to take to
the next waypoint. This list is also returned in
Trip.current_route_segment for all active trips assigned to the vehicle.
Note: This field is intended only for use by the Driver SDK. Decoding is not yet supported.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#current_route_segment_end_point ⇒ ::Google::Maps::FleetEngine::V1::TripWaypoint
Returns The waypoint where current_route_segment ends. This can be supplied by
drivers on UpdateVehicle calls either as a full trip waypoint, a waypoint
LatLng, or as the last LatLng of the current_route_segment. Fleet
Engine will then do its best to interpolate to an actual waypoint if it is
not fully specified. This field is ignored in UpdateVehicle calls unless
current_route_segment is also specified.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#current_route_segment_traffic ⇒ ::Google::Maps::FleetEngine::V1::TrafficPolylineData
Returns Input only. Fleet Engine uses this information to improve journey sharing. Note: This field is intended only for use by the Driver SDK.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#current_route_segment_version ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. Time when current_route_segment was set. It can be stored by
the client and passed in future GetVehicle requests to prevent returning
routes that haven't changed.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#current_trips ⇒ ::Array<::String> (readonly)
Returns Output only. List of trip_id's for trips currently assigned to this
vehicle.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#device_settings ⇒ ::Google::Maps::FleetEngine::V1::DeviceSettings
Returns Input only. Information about settings in the mobile device being used by the driver.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#eta_to_first_waypoint ⇒ ::Google::Protobuf::Timestamp
Returns The ETA to the first entry in the waypoints field. The value is
unspecified if the waypoints field is empty or the
Vehicle.current_route_segment field is empty.
When updating a vehicle, remaining_time_seconds takes precedence over
eta_to_first_waypoint in the same request.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#last_location ⇒ ::Google::Maps::FleetEngine::V1::VehicleLocation
Returns Last reported location of the vehicle.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#license_plate ⇒ ::Google::Maps::FleetEngine::V1::LicensePlate
Returns License plate information for the vehicle.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#maximum_capacity ⇒ ::Integer
Returns The total numbers of riders this vehicle can carry. The driver is not considered in this value. This value must be greater than or equal to one.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#name ⇒ ::String (readonly)
Returns Output only. The unique name for this vehicle.
The format is providers/{provider}/vehicles/{vehicle}.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#navigation_status ⇒ ::Google::Maps::FleetEngine::V1::NavigationStatus
Returns The vehicle's navigation status.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#past_locations ⇒ ::Array<::Google::Maps::FleetEngine::V1::VehicleLocation>
Returns Input only. Locations where this vehicle has been in the past that haven't
yet been reported to Fleet Engine. This is used in UpdateVehicleRequest
to record locations which were previously unable to be sent to the server.
Typically this happens when the vehicle does not have internet
connectivity.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#remaining_distance_meters ⇒ ::Google::Protobuf::Int32Value
Returns The remaining driving distance for the current_route_segment.
This value is also returned in Trip.remaining_distance_meters for all
active trips assigned to the vehicle. The value is unspecified if the
current_route_segment field is empty.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#remaining_time_seconds ⇒ ::Google::Protobuf::Int32Value
Returns Input only. The remaining driving time for the current_route_segment. The
value is unspecified if the waypoints field is empty or the
Vehicle.current_route_segment field is empty. This value should match
eta_to_first_waypoint - current_time if all parties are using the same
clock.
When updating a vehicle, remaining_time_seconds takes precedence over
eta_to_first_waypoint in the same request.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#route ⇒ ::Array<::Google::Maps::FleetEngine::V1::TerminalLocation>
This field is deprecated and may be removed in the next major version update.
Returns Deprecated: Use Vehicle.waypoints instead.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#supported_trip_types ⇒ ::Array<::Google::Maps::FleetEngine::V1::TripType>
Returns Trip types supported by this vehicle.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#vehicle_state ⇒ ::Google::Maps::FleetEngine::V1::VehicleState
Returns The vehicle state.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#vehicle_type ⇒ ::Google::Maps::FleetEngine::V1::Vehicle::VehicleType
Returns Required. The type of this vehicle. Can be used to filter vehicles in
SearchVehicles results. Also influences ETA and route calculations.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#waypoints ⇒ ::Array<::Google::Maps::FleetEngine::V1::TripWaypoint>
Returns The remaining waypoints assigned to this Vehicle.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |
#waypoints_version ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. Last time the waypoints field was updated. Clients should
cache this value and pass it in GetVehicleRequest to ensure the
waypoints field is only returned if it is updated.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 137 class Vehicle include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of vehicle. # @!attribute [rw] category # @return [::Google::Maps::FleetEngine::V1::Vehicle::VehicleType::Category] # Vehicle type category class VehicleType include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Vehicle type categories module Category # Default, used for unspecified or unrecognized vehicle categories. UNKNOWN = 0 # An automobile. AUTO = 1 # Any vehicle that acts as a taxi (typically licensed or regulated). TAXI = 2 # Generally, a vehicle with a large storage capacity. TRUCK = 3 # A motorcycle, moped, or other two-wheeled vehicle TWO_WHEELER = 4 # Human-powered transport. BICYCLE = 5 # A human transporter, typically walking or running, traveling along # pedestrian pathways. PEDESTRIAN = 6 end end end |