ArcGIS Runtime SDK for iOS: AGSPointBarrier Class Reference
ArcGIS Runtime SDK for iOS  100.15
AGSPointBarrier Class Reference

Description

A point barrier to constrain routes.

Instances of this class represent a point barrier that can be used to constrain routes generated by AGSRouteTask or service areas generated by AGSServiceAreaTask.

Barriers serve to temporarily restrict, add impedance (cost) to, and scale impedance on parts of the transportation network.

Since
100
See also
http://desktop.arcgis.com/en/arcmap/latest/extensions/network-analyst/barriers.htm
Inheritance diagram for AGSPointBarrier:
AGSObject

Instance Methods

(double) - addedCostForCostAttribute:
 
(instancetype) - initWithPoint:
 
(void) - setAddedCost:forCostAttribute:
 

Class Methods

(instancetype) + barrierWithPoint:
 

Properties

NSInteger barrierID
 
AGSCurbApproach curbApproach
 
AGSPointgeometry
 
AGSLocationStatus locationStatus
 
NSString * name
 
AGSBarrierType type
 

Method Documentation

◆ addedCostForCostAttribute:

- (double) addedCostForCostAttribute: (NSString *)  attributeName

◆ barrierWithPoint:

+ (instancetype) barrierWithPoint: (AGSPoint *)  point

Initialize the point barrier with provided location

Parameters
pointwhere the barrier should be located
Returns
Initialized point barrier
Since
100

◆ initWithPoint:

- (instancetype) initWithPoint: (AGSPoint *)  point

Initialize the point barrier with provided location

Parameters
pointwhere the barrier should be located
Returns
Initialized point barrier
Since
100

◆ setAddedCost:forCostAttribute:

- (void) setAddedCost: (double)  addedCost
forCostAttribute: (NSString *)  attributeName 

Property Documentation

◆ barrierID

◆ curbApproach

- (AGSCurbApproach) curbApproach
readwritenonatomicassign

Specifies how the restriction applies to the direction a vehicle may arrive at or depart from the barrier.

Since
100

◆ geometry

- (AGSPoint*) geometry
readwritenonatomicstrong

Where the barrier is located

Since
100

◆ locationStatus

- (AGSLocationStatus) locationStatus
readnonatomicassign

The status of where this barrier appears on the underlying transportation network

Since
100

◆ name

- (NSString*) name
readwritenonatomiccopy

The name of the point barrier.

Since
100.3

◆ type

- (AGSBarrierType) type
readwritenonatomicassign

The type of the barrier, whether it fully restricts travel accross it, or merely increases the cost of travel

Since
100