Show / Hide Table of Contents

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

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

Relevant samples

Find service area: Find the service area within a network from a given point.
In This Article
Back to top Copyright © 2022 Esri.