PolylineBarrier class final
A polyline barrier is used to restrict route solving.
A class that represents a linear feature to be avoided (or penalized) by a route. A polyline barrier may represent a linear feature (e.g., a subpath in the network) to be avoided (i.e., not crossed or followed) by a route or to penalize/delay a route along any portions of the feature traversed by the route (e.g., a stretch of interstate with temporarily reduced speed limits due to local construction along an adjacent lane).
The polyline barrier class is derived from the graphic class.
- Implemented types
Constructors
- PolylineBarrier({required Polyline polyline})
-
Creates a polyline barrier instance.
factory
Properties
- barrierId ↔ int
-
Polyline barrier ID.
getter/setter pair
- geometry ↔ Polyline?
-
The geometry of a polyline barrier.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- name ↔ String
-
The name of a polyline barrier.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ BarrierType
-
Polyline barrier's type.
getter/setter pair
Methods
-
clone(
) → PolylineBarrier - Clones the PolylineBarrier.
-
getScaleFactorForCost(
{required String attributeName}) → double - Gets scale factor for cost.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setScaleFactorForCost(
{required String attributeName, required double scaleFactor}) → void - Sets scale factor for cost.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited