PolygonBarrier

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.

Since

200.1.0

Constructors

Link copied to clipboard
constructor(polygon: Polygon)

Creates a polygon barrier instance.

Properties

Link copied to clipboard

Polygon barrier ID. This is a caller supplied foreign key that can be used to associate output polygon barriers with input polygon barriers.

Link copied to clipboard

Polygon barrier's geometry. The polygon geometry of a Polygon barrier.

Link copied to clipboard

The name of a polygon barrier.

Link copied to clipboard

Polygon barrier's type.

Functions

Link copied to clipboard
Link copied to clipboard
fun getScaleFactorForCost(attributeName: String): Double

Gets scale factor for cost.

Link copied to clipboard
fun setScaleFactorForCost(attributeName: String, scaleFactor: Double)

Sets scale factor for cost.