Learning Goals
You will sometimes collect location data in the form of addresses rather than as latitude and longitude. In this case, your data will need the extra step of geocoding before you can use it in ArcGIS. Geocoding takes a location like an address or city or state and renders it as latitude and longitude coordinates so that ArcGIS or other mapping programs can read it and mark its location.
In this exercise, you'll take a list of addresses and use the US Census Bureau's Geocoding service in order to batch process a group of addresses and get their coordinates. You'll read the output file that you receive to determine if the results you got were accurate and to take note of the addresses that the service was unable to provide. You'll find the coordinates that the gecoding service was unable to find matches for by using Google Maps. Finally you'll plot the addresses that you have found using the Display XY Data function in ArcGIS.
It's important to note, however, that this geocoding service only works with U.S. addresses so if you are looking for addresses in foreign countries, search their government's websites to see if they provide a similar service. Additionally, the site has a limit of 10,000 records so if you need more than that, you'll have to divide up your searches.
Below I've attached the csv file that you'll be using with on the US Census Bureau Geocoding website, it's a list of addresses of locations used in the first two Ghostbusters movies.
Data
Getting Started
- Download GhostbustersFilmLocations and open it in Notepad or whatever plain-text editor that you use. Notice that it is formatted as a series of lines, with commas between each section. The heading contains the different field names: Location, StreetAddress, City, State, ZIPCode. This is because it is a csv or comma-separated value file, rather an Excel spreadsheet. If you did want to edit this file you could do so in Excel (where you would see columns separating these values rather than commas) but you would need to save it as a CSV for it to work with the Census Geocoder.
Remember to keep this in mind for if you want to use this method to get coordinates for your own list of addresses. You can still feed in these values if you are missing a city or zip code for one of your addresses, as long as you leave a blank column (or space between commas) for that value.
- Close GhostbustersFilmLocations
- Go to the Census Geocoder online at https://geocoding.geo.census.gov/geocoder/ and choose the option on the left side menu that you'd like to Find Geographies Using... Batch Address Geographies. This will bring you to a page where you can upload your csv file. and the geocoder will use the Census's Master Address File to provide the latitude and longitude for any items that it finds a definite match for or can find a probable match for based on the address ranges available within that locale.

Uploading your Address File
- On the Find Batch Address Geographies page go to where it says Choose File, navigate to where you've saved GhostbustersFilmLocations.csv and select it.
- For the options next to Benchmark and Vintage, leave the defaults selected to have it search the most recent Master Address File available. If you knew you were searching for addresses from a much older census and you're worried they may have changed, you could use these dropdowns to select the information from a previous year.
- Click on Get Results. You will see the icon in your browser tab turn into the circling line and when it finishes processing the file GeocodeResults.csv will automatically download
Working with Your Results
- Open GeocodeResults.csv in Excel. Some lines will have Match in column C next to the address and then what looks like coordinates in column F, Some have No_Match in column C and no further information. Addresses that were formerly spread across multiple columns are now only in Column B, and the headers are now towards the bottom of your list in a line by themselves.
- To know what these other numbers are, you'll want to consult the key available from the FCC explaining what each column is

- The main columns that you'll want in order to plot your items on the map are
- A - The ID (filming location)
- B - The Address
- F - Latitude,Longitude.
However, while you are finalizing the sheet to put it in its final form, you'll still want to know which items had matches and which did not, as well as which matches were not exact so for now you'll want to keep
- C - Matching Result
- D - Matching Result - Exact or Not-Exact
- E - Address2: which lists the address that the census has determined is the match. This should be the same as column B if the match is correct, but you'll want to have it handy for those rows that are inexact matches to make sure that it hasn't found a false positive
- Since you aren't looking for anything other than the latitude and longitude for these places, columns G-L can be taken off your sheet. However if you were looking to augment the datapoints with information about the state, county, census tract or census block that contained it, you'd leave these columns. They contain the same code that is used in other census documents for those geographic entities. So if you wanted to look and see if there was anything special about the census tracts that contained the addresses you wanted geocoding for, you'd cross-reference using column 11 (census tract code) to the information about that census tracts on other census documents. For this case, you can delete columns 7-12 (G to L) from your sheet.
- Right-click on the first row and choose Insert Row
- Add in column names as follows: FilmingLocation, Address, Match, Match2, Address2, Longitude,Latitude (that last one, have the comma in the column name)
| FilmingLocation |
Address |
Match |
Match2 |
Address2 |
Longitude,Latitude |
- Highlight Column Longitude,Latitude and click over to Data in the menu options up top in Excel. Click on the icon Text to Columns.
- In the Convert Text to Columns Wizard choose the file-type as Delimited and click on Next.
- In the next window, make sure that Comma is the only delimiter whose box is checked. Click on Next and then Finish
- Your Latitude and Longitude are now in separate columns
- Delete the column towards the bottom of the sheet that contains the headers that originally existed on your sheet.
The amount of addresses that this geocoder will give you will vary, but at least some of them aren't going to have matches depending on the kind of data you are looking for. The site acknowledges that it is better with residential vs. commercial addresses. However in this case there are only about 3 addresses out of 16 that didn't have matches, so it did have the majority. When the number is that low, it will be easy to just use Google Maps to fill in this information manually. You wouldn't want to do this for a large chunk of your data however as it is time-consuming. You could also try running it again, since I have gotten more matches a second time through than the first, but if this few records are missing matches, it will take less time to just use Google Maps.
Using Google Maps to find Coordinates for Addresses
You probably use Google Maps quite a bit and didn't realize you were looking at coordinate data. But in fact, whenever you look up an address in Google Maps, the latitude and longitude will be right there for you in the URL. The first number after the @ is the latitude, and the second is the longitude.

- For each of the addresses that you didn't receive a match, look up the address in Google Maps, and add the latitude and longitude to your GeocodeResults.csv sheet for that address. If there isn't a match for the address, like for Tavern on the Green, do a search for that name and use the coordinates that you find in the URL.
- When you've found the longitude and latitude for each address, delete columns Match, Match2 and Address2, and save the file as GecodedResultsForArcMap.csv to a folder you'll be able to navigate to easily. Make sure you are saving it as a csv file, and that there are no spaces in any of the headers.
You're now set to plot your results in ArcGIS Pro
Plotting Coordinates As X,Y Data in ArcGIS Pro
- Open ArcGIS Pro, at the Welcome window, click on Map under Blank Templates to start a new project with a blank map under it.
- The Create a New Project window will pop up asking what your project should be named and the location it will be saved in. Name it GhostbustersFilmLocations and make sure that you have the box next to Create a new folder for this project checked. Take note of the Location it is being saved to because this is where you will find the folder containing all your project files that you will need to zip at the end of this tutorial.

- Once your project loads up in ArcGIS, navigate to Catalog, by default, ArcGIS opens it in the pane on the right side of your screen. If you don't have it, you can add it from the View menu at the top toolbar.
- In Catalog, right-click on Folders and choose 'Add Folder Connection'. Maneuver to the folder that you have put GecodedResultsForArcGIS.csv in and click OK. It will now appear below the folder that ArcGIS created for your project, GhostbustersFilmLocations
- Right-click on GeocodedResultsForArcGIS.CSV and choose Copy. Then scroll up to the GhostbustersFilmLocations folder, right-click on it and choose Paste. Close the folder you created the connection to.
- This next part is very important for if you plan on taking your project file and re-opening it on different computers. Do not grab the csv file from the folder you saved it originally and drag it directly onto the map, drag the copy that is in the GhostbustersFilmLocations folder. ArcGIS Pro is very picky about file structure and if you do not keep a consistent file structure, then any layers, files, shapefiles, selections, or any other modifications that rely on being able to access those files, layers, shapefiles, tables, etc, then your project file will be defunct and all those layers will need to be added again, and any joins or other modifications will need to be redone.
- Click on GeocodedResultsForArcGIS.csv in the GhostbustersFilmLocations folder and drag it onto your map. It won't appear on your map yet but in the Contents pane, it will appear under Standalone Tables.
In the previous step, you added Longitude and Latitude information to your list of addresses, and this is sufficient information for ArcGIS Pro to add a point at every coordinate spot you provide that information for.
- Right-click on GeocodedResultsForArcMap.csv and choose Display XY Data.
- In the Display XY Data window that appears, go with the suggestions of Longitude as the X Field and Latitude as the Y Field.
- Change the end of the Output Feature Class to be GhostbustersFilmLocations but leave the rest of the path exactly the same.
- Leave the default in for Coordinate System and choose OK.

- After it has processed, you'll see that symbols have been added to the map in several locations around New York City, and that a new layer has been added called GhostbustersFilmLocations.

Saving Your Map
- Click on the Project icon at the top of your menu bar and choose Save. If you are on your own laptop and don't plan on sending yourself a copy of your file to open elsewhere, you're all set. However, if you want to open this project file in another computer, or if you want to send your professor your project because it's finished or because you have a question, this is only part of what you need to do to ensure that you'll be able to access the project later. The other steps will need to occur in Windows Explorer, so exit ArcGIS Pro.
- Navigate in Windows Explorer to the path that your project was saved to at the beginning of this lesson and locate the folder GhostbustersFilmLocations
- Click to open it and make sure that your project file and the csv files for GeocodedResultsForArcGIS are both present in the folder.
- Go back up a level to where your GhostbustersFilmLocations folder is located. Right-click on the GhostbustersFilmLocations folder and choose Send to and select Compressed (zipped) folder.
- Windows will create a zip file of your project folder with your project file in it along with all the other files that it depends on. This zip file is what you will want to save to your Google Drive or flashdrive in order to access this project later if you are not just using ArcGIS Pro on your personal computer.
If you ran into any issues and need to see how I configured my file, the zip file with my project is located below.