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


IPointToEID.GetNearestEdge Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (NetworkAnalysis)  

IPointToEID.GetNearestEdge Method

Returns the edge EID nearest to the input point, the physical point location that corresponds to the EID, and the percentage along that EID.

[Visual Basic .NET]
Public Sub GetNearestEdge ( _
    ByVal inputPoint As IPoint, _
    ByRef nearestEdgeEID As Integer, _
    ByRef location As IPoint, _
    ByRef percent As Double _
)
[C#]
public void GetNearestEdge (
    IPoint inputPoint,
    ref int nearestEdgeEID,
    ref IPoint location,
    ref double percent
);
[C++]
HRESULT GetNearestEdge(
  IPoint* inputPoint,
  long* nearestEdgeEID,
  IPoint** location,
  double* percent
);
[C++]

Parameters inputPoint [in]
inputPoint is a parameter of type IPoint nearestEdgeEID [out] nearestEdgeEID is a parameter of type long location [out]
location is a parameter of type IPoint percent [out] percent is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

GetNearestEdge returns the element ID of the nearest edge feature.

The location parameter returns the point along the nearest edge feature that is nearest the input point.

The percent parameter returns the percentage along the nearest edge feature that corresponds to the point found in the location parameter.

See Also

IPointToEID Interface