Select to view content in your preferred language

Added cost barrier on Network Analyst ?

702
2
Jump to solution
04-17-2013 11:53 AM
FrancoisPelletier1
Occasional Contributor
Hi all,

Is there any way to make a route task using an "Added Cost" barrier. Using NA in ArcGIS for desktop it is possible to specify the barrier type but it does'nt seems to be the case with the Silverlight API. The route parameters class only uses an IEnumerable<Graphic> to specify barriers.

If its not supported could someone suggest an alternative ?

Thanks for your time
0 Kudos
1 Solution

Accepted Solutions
FrancoisPelletier1
Occasional Contributor
Hi,

With further research we realized it is possible to specify the barrier type by adding a "BarrierType" attribute to the barrier graphic object. It is then possible to make the resulted route depend on that value. I think its safe to say that every barrier and stop specific attributes can be manipated this way. Seems to me that this should be mentionned in the documentation resources. AFAIK it is not... Maybe someone can correct me.

Francois

View solution in original post

0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
Is there any way to make a route task using an "Added Cost" barrier. Using NA in ArcGIS for desktop it is possible to specify the barrier type but it does'nt seems to be the case with the Silverlight API. The route parameters class only uses an IEnumerable<Graphic> to specify barriers.

AFAIK, the server REST API doesn't allow to do that.
The workaround might be to set and use a geoprocessing service doing that.
0 Kudos
FrancoisPelletier1
Occasional Contributor
Hi,

With further research we realized it is possible to specify the barrier type by adding a "BarrierType" attribute to the barrier graphic object. It is then possible to make the resulted route depend on that value. I think its safe to say that every barrier and stop specific attributes can be manipated this way. Seems to me that this should be mentionned in the documentation resources. AFAIK it is not... Maybe someone can correct me.

Francois
0 Kudos