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


NAClosestFacilitySolver Class (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Classes > N > NAClosestFacilitySolver Class
ArcGIS Developer Help

NAClosestFacilitySolverClass Class

Performs closest facility analysis.

Product Availability

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

Extended Error Information

Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.

Interfaces

Interfaces Description
IClone (esriSystem) Provides access to members that control cloning of objects.
INAClosestFacilitySolver Provides access to the closest facility solver.
INASolver Provides access to the common interface for all network solvers.
INASolverForwardStar Creates a network dataset forward star which honors the current solver settings as well as any barriers.
INASolverOutputGeneralization Provides access to generalization parameters used on solver output.
INASolverOverrides Overrides for implementation settings.
INASolverSettings Provides access to settings common to all solvers.
INASolverSettings2 Provides access to settings common to all solvers.
INASolverSettings3 Provides access to settings common to all solvers.
INATimeAwareSolverSettings Provides access to settings common to all time-aware solvers.
INATimeAwareSolverSettings2 Provides access to settings common to all time-aware solvers.
IPersist (esriSystem)
IPersistStream (esriSystem)
ISupportErrorInfo (esriSystem)
IXMLSerialize (esriSystem) Provides access to members that XML serialize and deserialize an object to/from XML.

Remarks

NAClosestFacilitySolver is a Network Analyst solver that finds a set of closest facilities from a set of incidents. It can find the closest facility based on any suitable cost attribute and then write the results to an in-memory feature class. It has options to limit the number of facilities to compute to/from any incident by either specifying a maximum number of facilities to find or by specifying a cutoff value. For example, find the three closest facilities from a set of incidents that are no more than 10 Km away. It can also generate the actual path or straight line geometries connecting each facility to each incident. The NAClosestFacilitySolver honors all of the settings of the INASolverSettings interface.