ArcObjects Library Reference (NetworkAnalyst)  

INALocator2.QueryOffsetPoint Method

The point offset from a network location.

[Visual Basic .NET]
Public Sub QueryOffsetPoint ( _
    ByVal Location As INALocation, _
    ByVal offset As Double, _
    ByVal Units As esriUnits, _
    ByRef Point As IPoint _
)
[C#]
public void QueryOffsetPoint (
    INALocation Location,
    double offset,
    esriUnits Units,
    ref IPoint Point
);
[C++]
HRESULT QueryOffsetPoint(
  INALocation* Location,
  double offset,
  esriUnits Units,
  IPoint** Point
);
[C++]

Parameters

Location [in]

  Location is a parameter of type INALocation

offset [in]   offset is a parameter of type double Units [in]

  Units is a parameter of type esriUnits

Point [in, out]

  Point is a parameter of type IPoint

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Remarks

QueryOffsetPoint returns the spatial location of an NALocation after applying the offset distance and units specified.  If the location occurs along a line, the (input location parameter) INALocation.Side property indicates whether the offset occurs to the left or right of the digitized direction of the line.  In other words, if the location is on the left side, the offset occurs to the left.  For locations on junctions, nothing is offset.

Generally, the NALocator should be retrieved from a NAContext.  However, if you do create a NALocator, or have added a new locator agent, then, before querying the NALocator, Bind should be called on the NALocator to set up the agents and associate it with the NetworkDataset.

The output geometry is returned in the spatial reference of the network dataset.  Optionally, set an OutputSpatialReference on the NALocator.

See Also

INALocator2 Interface