Class: Google::Maps::FleetEngine::V1::SpeedReadingInterval
- Inherits:
-
Object
- Object
- Google::Maps::FleetEngine::V1::SpeedReadingInterval
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/maps/fleetengine/v1/traffic.rb
Overview
Traffic density indicator on a contiguous segment of a path. Given a path with points P_0, P_1, ... , P_N (zero-based index), the SpeedReadingInterval defines an interval and describes its traffic using the following categories.
Defined Under Namespace
Modules: Speed
Instance Attribute Summary collapse
-
#end_polyline_point_index ⇒ ::Integer
The ending index of this interval in the path.
-
#speed ⇒ ::Google::Maps::FleetEngine::V1::SpeedReadingInterval::Speed
Traffic speed in this interval.
-
#start_polyline_point_index ⇒ ::Integer
The starting index of this interval in the path.
Instance Attribute Details
#end_polyline_point_index ⇒ ::Integer
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'proto_docs/google/maps/fleetengine/v1/traffic.rb', line 38 class SpeedReadingInterval include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The classification of polyline speed based on traffic data. module Speed # Default value. This value is unused. SPEED_UNSPECIFIED = 0 # Normal speed, no slowdown is detected. NORMAL = 1 # Slowdown detected, but no traffic jam formed. SLOW = 2 # Traffic jam detected. TRAFFIC_JAM = 3 end end |
#speed ⇒ ::Google::Maps::FleetEngine::V1::SpeedReadingInterval::Speed
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'proto_docs/google/maps/fleetengine/v1/traffic.rb', line 38 class SpeedReadingInterval include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The classification of polyline speed based on traffic data. module Speed # Default value. This value is unused. SPEED_UNSPECIFIED = 0 # Normal speed, no slowdown is detected. NORMAL = 1 # Slowdown detected, but no traffic jam formed. SLOW = 2 # Traffic jam detected. TRAFFIC_JAM = 3 end end |
#start_polyline_point_index ⇒ ::Integer
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'proto_docs/google/maps/fleetengine/v1/traffic.rb', line 38 class SpeedReadingInterval include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The classification of polyline speed based on traffic data. module Speed # Default value. This value is unused. SPEED_UNSPECIFIED = 0 # Normal speed, no slowdown is detected. NORMAL = 1 # Slowdown detected, but no traffic jam formed. SLOW = 2 # Traffic jam detected. TRAFFIC_JAM = 3 end end |