Tutorial : Geocoding in ArcGIS

By : Bayu Yanuargi,

Original Source : Esri Handbook

This tutorial introduces you to geocoding with ArcGIS® Desktop. You will learn the basic techniques for creating address locators and geocoding with ArcGIS. Exercises 2 and 3 demonstrate some advanced features—using alternate names and place name aliases and creating a dynamic feature class that is related to the address table.

Some procedures in this tutorial require that you be familiar with using ArcCatalog™ and ArcMap™. For example, you should know how to copy data to a new location and add data to a map. You should also have a basic understanding of what a geodatabase is and the objects it can contain.

Exercise 1: Locating and rematching addresses

In the first part of this tutorial you’ll learn how to create a new address locator, how to locate an address on a map, and how to create point features representing street addresses stored in a table such as customer locations. Before you begin, it is recommended that you make a copy of the data used in this tutorial so the original tutorial data will remain unmodified. Copy the Atlanta.gdb folder to a new location on your computer such as the C:\ disk; you’ll find it in the ArcTutor\Geocoding folder on the local diskwhere the tutorial data was installed. You’ll need 1.5 MB of free disk space to store a copy of the Atlanta.gdb folder. The Atlanta.gdb folder contains a file geodatabase named Atlanta. Make sure the geodatabase is not read-only.

Creating a new address locator

An address locator lets you convert textual descriptions of locations into geographic features. Address Locators are stored and managed in a workspace you choose. The workspace can be a file folder, file geodatabase, personal geodatabase or SDE geodatabase. The first thing you’ll do is create an address locator based on your copy of the Atlanta file geodatabase.

  • Start ArcCatalog.
  • Navigate to the Atlanta file geodatabase.
  • Click the Atlanta geodatabase in the Catalog tree.
  • Right-click within the empty space of the Contents list, point to New, then click Address Locator.

The Create New Address Locator dialog box appears.

  • Click the US Streets with Zone address locator style, then click OK. The New US Streets with Zone Address Locator  dialog box appears.
  • In the Name text box, type “Atlanta”, replacing the default name.

  • On the Primary table tab, click the Browse buttonnext to the Reference data text box. This will open the Choose Reference Data dialog box.
  • In the Choose Reference Data dialog box, navigate to the folder containing your copy of the Atlanta geodatabase. Double-click the geodatabase, click the streets feature class, then click Add. This will add the streets feature class as reference data to the Primary table tab and populate the fields.

  • Leave all other address locator settings as they are and click OK. The new address locator appears in the Atlanta file geodatabase.

  • The new address locator contains a snapshot of the reference database with standardized address attributes, indexes, queries and other geocoding parameters. With this address locator, the  addresses you want to geocode  can be quickly matched to the street features. You will now modify the properties of the address locator you just created.
  • Right-click the Atlanta address locator and click Properties. The Address Locator Properties  dialog box appears. On the right under Matching Options, you can see that the default Minimum candidate score is 10. This setting determines the matching score needed to return a potential candidate.
  • Click and drag the slide bar to change the Minimum candidate score to a value of 30.

  • Click OK, closing the Address Locator Properties dialog box. Your changes are saved in the address locator. Now you can use this address locator to find out where addresses are located on a map.

Finding an address interactively

You can use address locators to locate addresses while you are working in ArcMap. This process is commonly called geocoding.

  • Start ArcMap and click OK to create a new, empty map.
  • Add the streets feature class in the Atlanta geodatabase to the ArcMap document.
  • Click the Find button on the Tools toolbar.

  • In the Find dialog box, click the Addresses tab. Before you can locate an address on your map, you must identify the address locator you want to use.
  • Click the Browse button to choose an address locator.
  • Navigate to the Atlanta geodatabase, click the Atlanta address locator, and click Add. This populates the Choose an address locator text box and adds two additional text boxes that will be used to enter the address elements
  • Type “150 Linden Ave NE” in the Street or Intersection text box. Type “30308” in the Zone text box.

  • Click Find. A few candidate addresses appear in the list at the bottom of the Find dialog box.
  • Right-click the first candidate and click Add Point.

  • A graphic point representing the address’s location appears on the map.

  • Click Cancel to close the Find dialog box.

Geocoding addresses in a table

If you have a table that contains address information, you can geocode all of the addresses at once. In this exercise you will begin with a table containing the addresses of customers and geocode the entire table, showing where the customers are located.

  • Open a new map document in ArcMap. You do not need to save the map you created in the previous task.
  • Add the streets feature class and the customers table from your copy of the Atlanta geodatabase to your map.
  • Right-click the customers table on the Source tab of the table of contents and click Geocode Addresses.
  • Click Add on the Choose an address locator to use dialog box. The Add Address Locator dialog box will open.
  • Navigate to the Atlanta geodatabase, click the Atlanta address locator, then click Add.

  • Click Atlanta in the Choose an address locator to use dialog box, then click OK. This will open the Geocode Addresses: Atlanta dialog box.
  • Under the Output section, click the Browse button to define the Output shapefile or feature class. This will open the Saving Data dialog box.

  • Click the Save as type dropdown arrow, then click File and Personal Geodatabase feature classes.
  • Navigate to your copy of the Atlanta geodatabase, then double-click the geodatabase. In the Name text box, type “atlanta_results”.
  • Click Save. A new point feature class named atlanta_results will be created in the Atlanta geodatabase. The point features generated by the geocoding process will be saved in that feature class.
  • Click OK to start geocoding. When the geocoding process is finished, the Review/Rematch Addresses dialog box appears. It shows the statistics of the addresses that were matched or not matched. You’ll rematch the unmatched addresses later in the tutorial.
  • Leave the rematch criteria as is and click Done to close the Review/Rematch Addresses dialog box.
  • A Geocoding Result layer is added to the map. It shows the points that were added to the atlanta_results feature class. You can also geocode a table of addresses in ArcCatalog. To do so, right-click the customers table in the Atlanta geodatabase and click Geocode Addresses. This will display a series of dialog boxes identical to those identified in this exercise. You can then add the created feature class to an ArcMap document.

Rematching addresses

  • In ArcMap, click the Tools menu, point to Geocoding, point to Review/Rematch Addresses, then click Geocoding Result: atlanta_results. The Review/Rematch Addresses dialog box opens.
  • In the Rematch Criteria section, click the option Addresses with candidates tied.

  • Click Match Interactively. The Interactive Review dialog box appears. The address records that you have chosen to rematch are listed at the top of the dialog box. In this exercise there is one record in the feature class that has two candidates that are tied for the highest match score. The tied candidates are listed at the bottom of the dialog box.

  • Arrange the ArcMap window and the Interactive Review dialog box so you can see the map. Near the center of the map, you will notice two points highlighted, one in yellow and the other in blue. These are the locations of the two candidates listed in the bottom window of the Interactive Review dialog box. The selected candidate is highlighted in yellow on the map.
  • Click the second candidate in the candidate list. The location of the yellow highlighted candidate changes on the map.
  • In the bottom right corner of the Interactive Review dialog box, click Match. The selected address in the list at the top of the dialog box is now associated with the second candidate in the list at the bottom.
  • Click the Close button to close the Interactive Review dialog box.
  • Click Done to close the Review/Rematch Addresses dialog box.
  • Close ArcMap. You do not need to save the changes to your map document. You can also rematch addresses with ArcCatalog. To do so, refresh the contents of the Atlanta geodatabase if you don’t see the atlanta_results feature class listed in the Contents tab. Right-click the atlanta_results feature class, then click Review/Rematch Addresses. This will display a series of dialog boxes similar to those described in this exercise.

Exercise 2: Using alternate street names and place name aliases

When you create an address locator, you have the option to use alternate street names and place name aliases. Place name aliases let you associate names of well-known places with street addresses—for example, the names of museums, hospitals, or landmarks. When geocoding an address, the place name alias table is consulted first. If a place name is found, the street address from the place name alias table is geocoded. Similarly, alternate street names can be defined for features in the reference data. When geocoding an address, the alternate street name table is also searched to find potential candidates where streets have more than one name.

Creating an address locator that uses alternate names and place name aliases

In this task you’ll create a new address locator that uses alternate street names and place name aliases, then use it in ArcMap to find addresses.

  • In ArcCatalog, navigate to the Atlanta geodatabase.
  • Right-click the Atlanta geodatabase, point to New, and click Address Locator. This opens the Create New Address Locator dialog box.
  • Click the US Streets with AltName address locator style, then click OK. The New US Streets with AltName Address Locator dialog box appears.

  • In the Name text box, type “Atlanta_AltName”, replacing the default name.

  • On the Primary table tab, click the Browse button next to the Reference data text box.
  • From the Choose Reference Data dialog box, navigate to the Atlanta geodatabase.
  • Double-click the Atlanta geodatabase, click the streets feature class, then click Add.
  • Click the Alternate Name table tab.
  • Click the Browse button next to the Reference data text box.
  • In the Choose Reference Data dialog box, navigate to your copy of the Atlanta geodatabase.
  • Double-click the Atlanta geodatabase, click the altname table, then click Add.
  • On the Alternate Name table tab, if not yet selected, click the Join ID drop-down list and click JOINID. The JoinID column in the altname table and the JoinID column in the streets feature class are used to relate the records in the altname table to the records in the streets feature class.

  • On the right of the dialog box, under Matching Options, click Place Name Alias Table. The Alias Table dialog box appears.

  • Click the Browse button, then navigate to the Atlanta geodatabase.
  • Double-click the Atlanta geodatabase, click the place_aliases table and click Add.
  • Click the Alias field drop-down arrow and click NAME.
  • Click OK.

 

  • Click OK in the New US Streets with AltName Address Locator dialog box. The new Atlanta_AltName address locator appears in the Atlanta geodatabase.

  • Close ArcCatalog. You can now use this address locator to find out where an address is located on a map.

Finding locations using alternate street names and place name aliases

  • Open a new map document in ArcMap.
  • Add the streets feature class from the Atlanta geodatabase to your map.
  • Click the Find button on the Tools toolbar.
  • In the Find dialog box, click the Addresses tab.
  • Click the Browse button to choose an address locator.
  • Navigate to the Atlanta geodatabase, click the Atlanta_AltName address locator, and click Add. A street may have more than one name. For example, “Atlanta Blvd” is defined as an alternate name for “Old 10th St NE” in the Atlanta database. With the Atlanta_AltName address locator, “30 Old 10th St NE” and “30 Atlanta Blvd” will both find the same location.
  • Type “30 Old 10th St NE” in the Street or Intersection text box.
  • Click Find.
  • Right-click the candidate and click Add Point. A graphic point representing the address’s location appears on the map.
  • Type “30 Atlanta Blvd” in the Street or Intersection text box.
  • Click Find.

  • Right-click the candidate and click Flash. You can see that both addresses are matched to the same location on the map. In addition to geocoding addresses, you can also geocode place names that have been defined in the place_aliases table.
  • Type “Children’s Hospital” in the Street or Intersection text box.
  • Click Find.
  • Right-click the first candidate in the candidates list, which has a score of 100, and click Add Point.

  • The location of the hospital appears on the map as if you had typed its complete address.

  • Click Cancel to close the Find dialog box. Creating address locators that use alternate names and place name aliases is beneficial for people who know a landmark’s name but not its address. It will also help in situations where a street has more than one name.

Exercise 3: Creating a dynamic geocoded feature class

  • Open a new map document in ArcMap. You do not need to save your previous map document.
  • Add the customers table and the streets feature class in the Atlanta geodatabase to your map.
  • Right-click the customers table in the Source tab of the map’s table of contents and click Geocode Addresses.
  • Click Add in the Choose an address locator to use dialog box.
  • In the Add Address Locator dialog box, navigate to the the Atlanta geodatabase and choose the Atlanta address locator, then click Add.
  • Click Atlanta in the Choose an address locator to use dialog box, then click OK.

  • In the Geocode Addresses: Atlanta dialog box, click the Output shapefile or feature class Browse button to define the output feature class.
  • In the Saving Data dialog box, click the Save as type drop-down arrow and click File and Personal Geodatabase feature classes.
  • Navigate to the Atlanta geodatabase, then double-click the geodatabase.
  • In the Name text box, type “dynamic_results”.
  • Click Save.

  • Click Create dynamic feature class related to table. A new point feature class named dynamic_results will be created in the Atlanta geodatabase. The point features generated by the geocoding process will be saved in that feature class. A relationship class between the table and feature class will be created.

  • Click OK to start geocoding. When the geocoding process is finished, the Review/ Rematch Addresses dialog box appears.
  • Click Done to close the Review/Rematch Address dialog box. A Geocoding Result layer is added to the map. It shows the points that were added to the dynamic_results feature class.
  • Right-click the Geocoding Result layer in the map’s table of contents and click Open Attribute Table. The first record in the table has the address 1171 PIEDMONT AVE NE in the Street or Intersection column. The Status (M: matched, U: unmatched, or T: tied), Score (match score), and Side (R: right side of the road or L: left side of the road) columns contain the values M, 100, and R respectively. To see where this customer is located on the map, click the button at the far left of this row to select this record in the table. The feature will be highlighted on the map.
  • Minimize the Geocoding Result layer’s attribute table.
  • Right-click the customers table in the map’s table of contents and click Open. The address that appears for the first customer in the table, Ace Market, is 1171 Piedmont Ave. NE. That customer has moved to a new address, 30 12th St. The ZIP Code remains the same. The customers table must be updated with this information.
  • If the Editor toolbar is not showing, click the Editor Toolbar button to show the Editor toolbar.

  • On the Editor toolbar, click the Editor menu and click Start Editing.

  • Type “30 12TH ST” in the Address column next to Ace Market.

  • Click another record in the table.
  • Minimize the customers table and maximize the Geocoding Result layer’s attribute table. The new address was geocoded automatically, and the corresponding values have been updated in the layer’s attribute table. The Status, Score, and Side columns now contain the values T, 81, and L, respectively. The value “T” in the Status field stands for tied; two or more candidates had the highest score. To see on the map where Ace Market is now located, click to select this record in the layer’s attribute table. Now you need to add a new customer to the customers table.

  • Minimize the Geocoding Result layer’s attribute table and maximize the customers table.
  • Scroll down to the bottom of the customers table.
  • In the blank record after the last record in the table, click in the NAME column. Type “Vine Cafe”. A new blank record is added to the bottom of the table.

  • In the same record, type “379 VINE ST NW” in the ADDRESS column.
  • Type “30314” in the ZIP column.
  • Type “Cafe” in the TYPE column.
  • Type “10000” in the SALES column.
  • Click another record in the table.
  • Close the customers table. Maximize the Geocoding Result layer’s attribute table, then scroll to the bottom. A new feature was automatically added to the result feature class representing the new address.
  • On the Editor toolbar, click the Editor menu and click Stop Editing. Click Yes to save your changes.
  • Close ArcMap. Click No to stop ArcMap without saving this map.


Leave a Reply

Dansette