How to use
See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample.
Data has been provided for your use with this sample. It can be found at
<Your ArcGIS Developer Kit Install directory>/Samples/data/SanFrancisco/SanFrancisco.gdb.
If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders.
However, you will need to update the sample to point to the location of the data once you have extracted all the files.
- Start Visual Studio to build and run the application.
- In the application, click Find Closest Facilities to perform the analysis. The ordered list of facilities appears.
- You can change the impedance attribute, use one-way restriction, and use hierarchy.
- You can change the target facility Count and CutOff values.
Program.cs | Application entry point. |
frmClosestFacilitySolver.cs | Main application form. |
frmClosestFacilitySolver.resx | Resource file. |
frmClosestFacilitySolver.Designer.cs | Automatically generated file. |
frmClosestFacilitySolver.vb | Main application form. |
frmClosestFacilitySolver.resx | Resource file. |
frmClosestFacilitySolver.Designer.vb | Automatically generated file. |
Download the files for all languages
See Also:
Programming with ArcGIS Network Analyst extensionWhat is ArcGIS Network Analyst extension?
About the ArcGIS Network Analyst extension tutorial
NetworkAnalyst
ArcGIS Network Analyst extension Object Model Diagram
An overview of the network analyst toolbox
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit | Engine: Network Analyst |
ArcGIS for Desktop Basic: Network Analyst | |
ArcGIS for Desktop Standard: Network Analyst | |
ArcGIS for Desktop Advanced: Network Analyst |