Lab 5

Geocoding and network analysis

Part I: Geocoding

In this part of the lab, you will be geocoding address of polling locations in Eau Claire. Navigate to the link, and scroll down to the table titled “City of Eau Claire Voting Sites”. You will need to

  • Copy the data into a spreadsheet program
  • Clean the data (fix mispellings, remove duplicates, etc.)
  • Create a new column containing the city and state name (i.e. “Eau Claire, WI”)
  • Save the data in a GIS readable format (preferably .csv)

After cleaning the data, there should be a total of 20 polling locations.

  1. Include a table (not a screenshot) of your cleaned polling location data in your document (2 pts.).

Next, geocode the addresses and name the layer “poll_locations”. Take a look at the resulting attribute table. Some things to note:

  • You will have to be signed in to ArcGIS Online in order for geocoding to work properly.

  • While there are a few different geocoding tools, you should use the “Geocode Addresses” tool.

  1. One (or more) record(s) may not have a perfect score. Discuss differences between the matched addresses locations and the input locations, and use specific examples. Did these discrepancies affect the end result? Why or why not? If no results returned an imperfect score, you can discuss that instead (2 pts.).

  2. Put the original raw data into a generative AI model to clean it and remove duplicates. How does this compare to your manual data cleaning (1 pt.)?

  3. Have the generative AI model find the lng/lat of each polling site. Save the output as a .csv, and add the x,y data to the map. How do the locations compare to the ArcGIS geocoder? Are the results trustworthy? In what situations would a generative AI model be insufficient for geocoding work (1 pt)?

  4. Take a screenshot of the two point datasets in your map document (1 pt.)

Part II: Network Analysis

During the 2018 midterm elections, bowling night coincided with election day in Marathon, La Crosse, Brown, and Sheboygan counties. The second shift poll workers in these counties misjudged how long bowling would take, and thus were late to their shifts. This mistake caused votes to be tallied later than normal, keeping many Wisconsinites unnecessarily awake late into the night across the state. With threats of bowling night being changed to Tuesdays in Eau Claire ahead of the 2024 elections, the city has tasked your consulting firm with developing a third party vote tallying and verification service. Your firm will travel to each polling station on election night, where you will verify and help count (if necessary) votes at each polling location in the city. Since this must be done quickly and efficiently, you will be using network analysis to (1) assess routes between polling locations (2) and evaluate new polling location service areas.

  • From the Geoprocessing menu, navigate to Network Analyst Tools > Analysis and select the “Make Route Analysis Layer” tool. Leave all options as default, and ensure that the Network Data Source is set to https://www.arcgis.com.

  • Next, use the Add Locations tool to add the polling locations to the route.

  • Next, use the Solve tool to solve the routing problem.

  1. What is the length of the route in miles (2 pts.)?

As you inspect the newly created route, you’ll notice that it seems long and inefficient. This is because we did not reorder stops to find the optimal route. Next, we will reorder stops and thus solve a “traveling salesperson problem” (TSP). Note that order does not matter.

  • Next, create a new Route Analysis Layer, but this time reorder stops to the most optimal ordering. Then, solve the new route.
  1. What is the length of this new route in miles (2 pts.)?

  2. Which locations should be the first and last stops (2 pts.)?

  3. Create a map of the optimized route that also includes the poll locations and a basemap (2 pts.).

Currently, it is possible that people may have to travel to a location that is not their closest facility in order to vote. To reconcile this, the city is considering changing citizens’ voting locations. In this part of the lab, you will create mutually exclusive service areas from which the city will assign voters to new polling locations.

  • From the Geoprocessing menu, navigate to Network Analyst Tools > Analysis and select the “Make Service Area Analysis Layer” tool.
    • Set Travel Mode as “Driving Distance” .
    • Ensure that the Network Data Source is set to https://www.arcgis.com.
    • Set Travel Direction as “Toward Facilities”.
    • Remove all cutoffs except for one set to a value of “10”.
    • Answer the question below before clicking “Run”!
  1. Under “Output Geometry”, what should the “Geometry at Overlaps” option be set to?
  • Next, add locations and solve the Service Area.
  1. The default output color scheme will not be sufficient for displaying service area data properly. What type of symbology method should be used? On which field? (2 pts.)

  2. Which facility has the greatest area? (1 pt.)

  3. Include a histogram of the “Shape_Area” variable. (1 pt.)

  4. If you had to suggest a location for an additional polling location, where would that be? Support your answer and take into consideration that the Service Areas that we built touch other municipalities in which citizens are already assigned a polling location not included in this analysis (2 pts.).

  5. Create a map that shows the new service areas, poll locations, and road network. Use unique symbols to represent the service areas and label them (2 pts.).