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


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

INAVRPSolver.DistanceFieldUnits Property

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

Product Availability

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

Remarks

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.

See Also

INAVRPSolver Interface

.NET Samples

ArcGIS Network Analyst extension Engine application