Class: Google::Maps::FleetEngine::V1::VisualTrafficReportPolylineRendering
- Inherits:
-
Object
- Object
- Google::Maps::FleetEngine::V1::VisualTrafficReportPolylineRendering
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/maps/fleetengine/v1/vehicles.rb
Overview
Describes how clients should color one portion of the polyline along the route.
Defined Under Namespace
Classes: RoadStretch
Instance Attribute Summary collapse
Instance Attribute Details
#road_stretch ⇒ ::Array<::Google::Maps::FleetEngine::V1::VisualTrafficReportPolylineRendering::RoadStretch>
Returns Optional. Road stretches that should be rendered along the polyline. Stretches are guaranteed to not overlap, and do not necessarily span the full route.
In the absence of a road stretch to style, the client should apply the default for the route.
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 |
# File 'proto_docs/google/maps/fleetengine/v1/vehicles.rb', line 233 class VisualTrafficReportPolylineRendering include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # One road stretch that should be rendered. # @!attribute [rw] style # @return [::Google::Maps::FleetEngine::V1::VisualTrafficReportPolylineRendering::RoadStretch::Style] # Required. The style to apply. # @!attribute [rw] offset_meters # @return [::Integer] # Required. The style should be applied between `[offset_meters, # offset_meters + length_meters)`. # @!attribute [rw] length_meters # @return [::Integer] # Required. The length of the path where to apply the style. class RoadStretch include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The traffic style, indicating traffic speed. module Style # No style selected. STYLE_UNSPECIFIED = 0 # Traffic is slowing down. SLOWER_TRAFFIC = 1 # There is a traffic jam. TRAFFIC_JAM = 2 end end end |