MaxSpeedOnSegment class - routing library - Dart API
MaxSpeedOnSegment
MaxSpeedOnSegment class
New base speed for a segment.
Affects route calculation and the ETA. Cannot increase base speed on segment.
Note: This option can only be used with the RoutingEngine. The OfflineRoutingEngine is not supported and the option will be ignored. Note that the OfflineRoutingEngine is only available for editions such as the Navigate Edition.
Constructors
- MaxSpeedOnSegment(SegmentReference segment, double baseSpeedInMetersPerSecond)
- Creates a new instance.
Properties
- baseSpeedInMetersPerSecond ↔ double
-
New maximum value in m/s of baseSpeed on segment. The provided value must be in the range [1.0, 70.0].
Cannot increase base speed on segment. If the value is greater than the default base speed, then such penalty will have no effect.
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
- segment ↔ SegmentReference
-
A segment for which the new base speed is specified. Only the
segmendIdandtravelDirectionparameters are used, other parameters are ignored. Setting asegmendIdis mandatory.getter/setter pair
Methods
-
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.