Find an address


PurposeThis sample shows how to use ArcObjects to geocode an address.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and 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.

  1. Open the solution using Visual Studio.
  2. Add the path to your locator for the GetLocatorWorkspaceFromPath() method.
  3. Add the name of your locator.
  4. Build the solution.
  5. Run the FindAddress application.
  6. Enter an address, city, state, and ZIP Code into the text fields of the user interface (UI).
  7. Click Find or press Enter.

FindAddress/AddressForm.cs Contains all the geocoding functionality as well as the Windows UI functionality.
FindAddress/Program.cs Initializes the AddressForm class.
Download the C# files
FindAddress/AddressForm.vb Contains all the geocoding functionality as well as the Windows UI functionality.
FindAddress/Program.vb Initializes the AddressForm class.
Download the VB.NET files

Download the files for all languages




Additional Requirements
  • A workspace that contains an address locator.

Development licensing Deployment licensing
ArcView ArcView
ArcEditor ArcEditor
ArcInfo ArcInfo