ArcObjects Library Reference (NetworkAnalysis)  

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,
  long* 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