The sample demonstrates how to avoid certain area when finding the shortest path by FindingPath event.
The WKT Of Area:
POLYGON((-97.7559 30.2889,-97.7605 30.2794,-97.7563 30.2712,-97.7421 30.2704,-97.7392 30.2831,-97.744 30.2946,-97.7559 30.2889))
Start FeatureId:
End FeatureId:
Avoid The Area