This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INAODCostMatrix Interface > INAODCostMatrix.FindOriginIndex Method (ArcObjects .NET 10.5 SDK) |
Finds the origin corresponding to the given network location.
[Visual Basic .NET] Public Function FindOriginIndex ( _ ByVal Location As INALocation, _ ByVal curbApproach As esriNACurbApproachType _ ) As Integer
[C#] public int FindOriginIndex ( INALocation Location, esriNACurbApproachType curbApproach );
[C++]
HRESULT FindOriginIndex(
INALocation* Location,
esriNACurbApproachType curbApproach,
long* Index
);
[C++]
Parameters Location [in]
Location is a parameter of type INALocation curbApproach [in]
curbApproach is a parameter of type esriNACurbApproachType Index [out, retval] Index is a parameter of type long
Given a network location and curb approach, this method returns the internal index of a matching origin location. The internal index values range from 0 through INAODCostMatrix.OriginCount - 1. There may be more than one matching origin location, in which case an arbitrary index value is returned.
If a matching origin index cannot be determined, the integer value -1 is returned.