How to use
See How to use ArcGIS samples for help on running the sample. 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.
- Run the SolveClosestFacility application. A dialog panel and a map bean open in the application window.
- Modify the Cost Attribute, Target Facility Count, and Cut Off values if required, and optionally, select Hierarchy and Restrictions.
- Click the Find Closest Facility button. The Closest Facility Solver solves the network using the values entered and shows the closest facilities, along with a route, in the map panel.
Download the files for Java
networkanalyst/SolveClosestFacility.java | Main class |
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit | Engine Runtime: Network |
ArcView: Network Analyst |