PolygonBarrier class final

A polygon barrier object is used to restrict route solving.

A class that represents a polygon feature to be avoided (or penalized) by a route. A polygon barrier may represent a regional area of interest within the network to be avoided (i.e., not entered) by a route (e.g., a flood zone) or to penalize/delay a route within any portions of the area traversed by the route (e.g., a busy downtown area or a bad neighborhood).

The polygon barrier class is derived from the graphic class.

Implemented types

Constructors

PolygonBarrier({required Polygon polygon})
Creates a polygon barrier instance.
factory

Properties

barrierId int
Polygon barrier ID.
getter/setter pair
geometry Polygon?
Polygon barrier's geometry.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String
The name of a polygon barrier.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type BarrierType
Polygon barrier's type.
getter/setter pair

Methods

clone() PolygonBarrier
Clones the PolygonBarrier.
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