This content has been marked as final. Show 4 replies
thanks for your response, but I'm not sure if I follow what your suggesting. I tried creating a network description attribute called left restriction. I used a field expression to get the value from the feature class that indicates if a left restriction occurs in the digitized direction and opposite. In the default values tab under turns I used the vbscript below:
restricted = false
a = Turn.Angle
If a > 210 And a < 330 Then
If toEdge.AttributeValueByName( "Left Restriction" ) = "LR" Then
restricted = True
this script did not work. I'm not clear how to use the element variable and methods. I have minimal programming experience.
If a road feature class has attributes that indicate turn restrictions is there an alternative way to apply this to the network without manually creating a turn feature class? Creating a turn feature class is just not feasible in my situation.
Hi I tried your suggestions and the scripts validate correctly but still does not create a restriction when testing using a route between 2 locations. I've attached screen shots of the network attributes and evaluator scripts.
turnrestrict.doc 259.0 K
I got it to work
I have a similar problem.
I was just wondering if there is a possibility to detect changes in an attribute between 2 via turn connected edges?
For example i have a multimodal network and i want to add a delay to all possible turns that don't follow the same public transport line i'm currently driving. (e.g. changing from Bus A to another edge with Bus A will cause no delay but changing from Bus A to Bus B will cause one)
is there a way to access within a junction evaluator not only the angle but also 1 attribute of the source and one of the destination edge?