ArcObjects Library Reference (NetworkAnalyst)  

INAContext.Locator Property

The locator used for finding network locations for class items.

[Visual Basic .NET]
Public ReadOnly Property Locator As INALocator
[C#]
public INALocator Locator {get;}
[C++]
HRESULT get_Locator(
  INALocator** Locator
);
[C++]

Parameters

Locator [out, retval]

  Locator is a parameter of type INALocator

Product Availability

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

Remarks

Locator returns the default NALocator for the NAClass.

The locator is used by the network analyst loading tools when it tries to locate NALocationObjects.  You can set the Locator property on the INAContextEdit interface to change the default locator.  You can also override the locator used if you call NAClassLoader programmatically.

See Also

INAContext Interface

.NET Samples

Closest facility solver (Code Files: frmClosestFacilitySolver) | Location-allocation solver (Code Files: frmLocationAllocationSolver) | Network Analyst Engine application (Code Files: frmLoadLocations frmNALayerProperties) | Origin-destination cost matrix solver (Code Files: frmODCostMatrixSolver) | Route layer (Code Files: Program) | Service area solver (Code Files: frmServiceAreaSolver) | Vehicle routing problem solver (Code Files: frmVRPSolver) |

.NET Related Topics

How to load data into a network analysis problem |