This document is archived and information here might be outdated.  Recommended version.


INAClosestFacilitySolver.TravelDirection Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INAClosestFacilitySolver Interface > INAClosestFacilitySolver.TravelDirection Property
ArcGIS Developer Help

INAClosestFacilitySolver.TravelDirection Property

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Remarks

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.

 

See Also

INAClosestFacilitySolver Interface

.NET Samples

ArcGIS Network Analyst extension Engine application