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

IPointToEID.GetNearestJunction 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.GetNearestJunction Method
ArcGIS Developer Help

IPointToEID.GetNearestJunction Method

Returns the junction EID nearest to the input point, and the physical point location that corresponds to the EID.

[Visual Basic .NET]
Public Sub GetNearestJunction ( _
    ByVal inputPoint As IPoint, _
    ByRef nearestJunctionEID As Integer, _
    ByRef location As IPoint _
public void GetNearestJunction (
    IPoint inputPoint,
    ref int nearestJunctionEID,
    ref IPoint location
HRESULT GetNearestJunction(
  IPoint* inputPoint,
  System.Int32* nearestJunctionEID,
  IPoint** location
inputPoint [in]

inputPoint is a parameter of type IPoint* nearestJunctionEID [out]
nearestJunctionEID is a parameter of type long* location [out]
location is a parameter of type IPoint**

Product Availability

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


GetNearestJunction returns the element ID of the nearest junction feature.

The location parameter returns the geometry of the nearest junction feature that is nearest the input point.

See Also

IPointToEID Interface