Class PolylineBarrier
A polyline barrier is used to restrict route solving.
Inheritance
System.Object
PolylineBarrier
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 PolylineBarrier
Remarks
A class that represents a linear feature to be avoided (or penalized) by a route. 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).
Constructors
Name | Description |
---|---|
PolylineBarrier(Polyline) | Initializes a new instance of the PolylineBarrier class. |
Properties
Name | Description |
---|---|
BarrierId | Gets or sets the polyline barrier ID. |
Geometry | Gets the polyline barrier's geometry. |
Name | Gets or sets the name of the barrier. |
Type | Gets or sets the polyline 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.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
Relevant samples
Find service area: Find the service area within a network from a given point.