This document is archived and information here might be outdated. Recommended version. |
The units for distance fields in the NA classes.
[Visual Basic .NET] Public Property DistanceFieldUnits As esriNetworkAttributeUnits
[C#] public esriNetworkAttributeUnits DistanceFieldUnits {get; set;}
[C++]
HRESULT get_DistanceFieldUnits(
esriNetworkAttributeUnits* Units
);
[C++]
HRESULT put_DistanceFieldUnits(
esriNetworkAttributeUnits Units
);
[C++] Parameters Units [out, retval]
Units is a parameter of type esriNetworkAttributeUnits* Units [in]
Units is a parameter of type esriNetworkAttributeUnits
The DistanceFieldUnits property specifies the unit of distance to associate with the distance-based input and output field values of NAClasses within a VRP NAContext. Examples of such distance-based fields include the TotalDistance field and the CostPerUnitDistance field on the Routes NAClass. This distance unit need not agree with the distance unit of the accumulate cost attribute. For example, the client may use an accumulate cost attribute based on kilometers but use miles for the distance-based field values.