This document is archived and information here might be outdated. Recommended version. |
The direction of the traversal.
[Visual Basic .NET] Public Property TravelDirection As esriNATravelDirection
[C#] public esriNATravelDirection TravelDirection {get; set;}
[C++]
HRESULT get_TravelDirection(
esriNATravelDirection* Value
);
[C++]
HRESULT put_TravelDirection(
esriNATravelDirection Value
);
[C++] Parameters Value [out, retval]
Value is a parameter of type esriNATravelDirection* Value [in]
Value is a parameter of type esriNATravelDirection
TravelDirection can be set to travel from the facility (default) or travel to the facility. This can make a difference in finding the closest facility if there are oneway restrictions, turn restrictions, or different travel cost attributes for each side of the street in the network. This property sets and gets the travel direction for the NAClosestFacilitySolver.
Do not set both ReturnCFRouteGeometries and ReturnCFRoutes to true. If just the geometry is needed, just set ReturnCFRouteGeometry to true. If the geometry and the other fields on the CFRoutes RecordSet are needed, just set ReturnCFRoutes to true since the geometries in the shape field of CFRoutes are the same geometries that are returned in CFRouteGeometries.
Do not set both ReturnDirections and ReturnCompactDirections to true. They each return directions in slightly different formats but contain similar information, Either direction format can be used independently and it is bad practice to return both formats. The time to compute each type of directions is considerable and should not be done unless necessary.