Service area solver


PurposeThis sample is an application that shows how to programmatically perform a service area analysis. You will learn how to load locations from a feature class, set solver parameters, execute the analysis, and get back the output results.

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.

  1. Start Visual Studio to build and run the application.
  2. In the application, verify the data's path is correct, then click Setup Service Area Problem.
  3. Once the map display is populated and the Solve button is available, click Solve. Information about the service areas appears.
  4. You can also change solver settings and re-solve.

frmServiceAreaSolver.cs The code behind the main form.
Program.cs Application initialization code.
frmServiceAreaSolver.Designer.cs Form design file.
frmServiceAreaSolver.resx Form managed resource file.
LicenseInitializer.cs License initializer.
Download the C# files
frmServiceAreaSolver.vb The code behind the main form.
Program.vb Application initialization code.
frmServiceAreaSolver.Designer.vb Form design file.
frmServiceAreaSolver.resx Form managed resource file.
LicenseInitializer.vb License initializer.
Download the VB.NET files

Download the files for all languages

See Also:

Programming with ArcGIS Network Analyst extension
What is ArcGIS Network Analyst extension?
What is a network dataset?
Geodatabase
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