Show / Hide Table of Contents

Class PolygonBarrier

A polygon barrier object is used to restrict route solving.

Inheritance
System.Object
PolygonBarrier
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Esri.ArcGISRuntime.Tasks.NetworkAnalysis
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class PolygonBarrier
Remarks

A class that represents a polygon feature to be avoided (or penalized) by a route. 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).

Constructors

Name Description
PolygonBarrier(Polygon)

Initializes a new instance of the PolygonBarrier class.

Properties

Name Description
BarrierId

Gets or sets the polygon barrier ID.

Geometry

Gets the polygon barrier's geometry.

Name

Gets or sets the name of the barrier.

Type

Gets or sets the polygon barrier's type.

Methods

Name Description
GetScaleFactorForCost(String)

Gets scale factor for cost.

SetScaleFactorForCost(String, Double)

Sets scale factor for cost.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8

Relevant samples

Route around barriers: Find a route that reaches all stops without crossing any barriers.
In This Article
Back to top Copyright © 2022 Esri.