DynamicSpeedInfo class - routing library - Dart API
DynamicSpeedInfo
DynamicSpeedInfo class
Provides estimated speed information.
Constructors
- DynamicSpeedInfo(double baseSpeedInMetersPerSecond, double trafficSpeedInMetersPerSecond, int turnTimeInSeconds)
- Creates a new instance.
Properties
- baseSpeedInMetersPerSecond ↔ double
-
The speed in meters per second without taking traffic into consideration.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trafficSpeedInMetersPerSecond ↔ double
-
The speed in meters per second considering traffic.
getter/setter pair
- turnTimeInSeconds ↔ int
-
The time it takes to make a turn, represented in seconds.
getter/setter pair
Methods
-
calculateJamFactor(
) → double - Calculates the traffic jam factor that shows the traffic condition in a numeric way.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool - The equality operator.