Hi Al,
Sorry that my explanation confused you. We don’t remove the segment from real network, we just remove its index from the adjacent collection of East-bound traffic segment. For instance, like the figure below:
The “Road 1” has 4 adjacent segments “Road 4”, “Road 5”, “Road 2” and “Road 3”, in rtg file, the record for “Road 1” is stored like:
Road 1
Start Point
End Point
Start Adjacent Segments
End Adjacent Segments
So we just remove the “Road 3” from “Start Adjacent Segments” or “End Adjacent Segments” of “Road 1” recode to let the Routing Extension know “You are unable to turn right at this intersection when coming from Road 1”, but we don’t remove the “Road 3” from adjacent segments from “Road 2”, so this segment is still available to North-South traffic.
Regarding the “how do we encode this information”, I think I’m unable to get you, can you let us know what is “Encode the turn restrictions”? And the sample code for second approach is very similar to the first one except using “FindingPath” event of Algorithm, the similar code can be available at gis.thinkgeo.com/Support/Dis...fault.aspx
Thanks,
Johnny