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

IPointToEID.GetNearestEdge Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalysis > ESRI.ArcGIS.NetworkAnalysis > Interfaces > IP > IPointToEID Interface > IPointToEID.GetNearestEdge Method
ArcGIS Developer Help

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 _
public void GetNearestEdge (
    IPoint inputPoint,
    ref int nearestEdgeEID,
    ref IPoint location,
    ref double percent
HRESULT GetNearestEdge(
  IPoint* inputPoint,
  System.Int32* nearestEdgeEID,
  IPoint** location,
  System.Double* percent
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.


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