Class PolygonBarrier
A polygon barrier object is used to restrict route solving.
Inheritance
System.Object
PolygonBarrier
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |
Relevant samples
Route around barriers: Find a route that reaches all stops without crossing any barriers.