{"id":2007,"date":"2022-10-10T00:15:52","date_gmt":"2022-10-10T07:15:52","guid":{"rendered":"https:\/\/murrowcourses.com\/graphics\/?p=2007"},"modified":"2022-10-09T22:32:46","modified_gmt":"2022-10-10T05:32:46","slug":"mapping-point-data","status":"publish","type":"post","link":"https:\/\/murrowcourses.com\/graphics\/mapping-point-data\/","title":{"rendered":"Mapping Point Data"},"content":{"rendered":"<p>Any establishment that sells alcohol in Washington state must have a license from the State Liquor Control Board. In this assignment, we\u2019ll use Google apps to map all the licensed businesses in Whitman County, which is home to WSU&#8217;s Pullman campus.<\/p>\n<p><span class=\"header\">Preparing the Data<\/span><\/p>\n<p>1. We\u2019re going to use data from the <a href=\"http:\/\/www.liq.wa.gov\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Washington State Liquor and Cannabis Board (WSLCB)<\/strong><\/a>. The state agency gets many requests for lists of all issued licenses, so commonly requested files are available to download from their website here: <a href=\"http:\/\/www.liq.wa.gov\/records\/frequently-requested-lists\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.liq.wa.gov\/records\/frequently-requested-lists<\/a><\/p>\n<p>The WSLCB spreadsheets include data for the whole state and many columns of information for each license. For this assignment, you get to use a CSV file with information about licenses for Whitman County businesses. (Whitman County, home to WSU&#8217;s Pullman campus, is a good example for this assignment because it has a manageable number of businesses. But the process works the same way for any other Washington county, and you can complete this assignment with a different county if you are comfortable filtering the state&#8217;s raw data yourself.)<\/p>\n<p>Download and save the CSV file from this folder: <a href=\"https:\/\/drive.google.com\/drive\/folders\/1aPJeLjbbo2oGj8y8XaiFHQdyck54I01L?usp=sharing\" rel=\"noopener noreferrer\" target=\"_blank\"><strong>WSLCB data downloads<\/strong><\/a><\/p>\n<p>2. In Google Sheets, create a new spreadsheet and give it an appropriate name. Go to <strong>File &gt; Import &gt; Upload<\/strong> and add the CSV file.<\/p>\n<a href=\"http:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2018\/05\/FusionTables-1.png\"><img decoding=\"async\" src=\"http:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2018\/05\/FusionTables-1.png\" alt=\"\" class=\"aligncenter size-full wp-image-1603\" \/><\/a>\n<img loading=\"lazy\" decoding=\"async\" width=\"681\" height=\"257\" src=\"https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/1-importcsv.png\" alt=\"\" class=\"aligncenter size-full wp-image-2012\" srcset=\"https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/1-importcsv.png 681w, https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/1-importcsv-300x113.png 300w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/>\n<p>3. Before we can map things, you\u2019ll need to edit the data in a few places to make it appropriate for mapping. First, go through the <strong>License Number<\/strong> column and look for licenses that are listed more than once (in most cases the business name will also be the same). As long as the two rows show the same address, delete extra rows so each license number is listed only once. You should end up with just less than 100 rows. Here is a <a href=\"https:\/\/youtu.be\/Lv4A0tYuegs\" rel=\"noopener\" target=\"_blank\">very short video about how to delete rows<\/a>.<\/p>\n<img loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"134\" src=\"https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/2-deleteduplicates.png\" alt=\"\" class=\"aligncenter size-full wp-image-2013\" srcset=\"https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/2-deleteduplicates.png 699w, https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/2-deleteduplicates-300x58.png 300w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/>\n<p>4. To map the addresses, the full address must be in one cell instead of having the street address, city and zip code in separate cells. At the far right of your spreadsheet, name a column <strong>Geocode Address<\/strong>.<\/p>\n<p>We\u2019re going to fill in that new Geocode Address column with a formula:<\/p>\n<p><code>=CONCATENATE(D2,\", \",F2,\" \",G2,\" \",H2)<\/code><\/p>\n<p>The concatenate function combines text from different cells. In the formula, the commas separate the cells you want to combine, and anything inside quotation marks also gets added as text. (In this case, the quotation marks encase a space, because otherwise the address information would get smushed together. We&#8217;re skipping Column E since it&#8217;s not important for the address.)<\/p>\n<img loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"196\" src=\"https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/3-addressconcatenate.png\" alt=\"\" class=\"aligncenter size-full wp-image-2014\" srcset=\"https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/3-addressconcatenate.png 699w, https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/3-addressconcatenate-300x84.png 300w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/>\n<p>Hit enter to apply the formula, and use the formula bar right above the spreadsheet if you need to edit it.<\/p>\n<p>Once you have the formula working in the first row, double-click the blue square in the bottom corner of that cell down to copy the formula down into the remaining empty cells. (You can also copy the formula down the column by dragging the little blue square.)<\/p>\n<p>5. On the far right end of your spreadsheet, add a new column labeled <strong>Category<\/strong>. This will differentiate the two main types of liquor licenses.<\/p>\n<p>Not all the locations on the list have the same type of WSLCB license. Locations have either an <strong>On Premise<\/strong> or <strong>Off Premise<\/strong> license, which indicates whether they\u2019re allowed to serve alcohol at that location or just sell it for consumption elsewhere. (Bars have on-premise licenses, for example; grocery stores have off-premise licenses.) There are also a variety of more specific license types, such as &#8220;beer\/wine restaurant&#8221; and &#8220;grocery store.&#8221;<\/p>\n<p>In our spreadsheet, the On-Premise locations are listed first alphabetically, then the Off-Premise locations are listed. You can also tell whether a location is on- or off-premise by looking at the &#8220;Privilege&#8221; column.   <\/p>\n<p>In the first cell of this column, type <strong>On-Premise<\/strong> and drag down to copy this to all the other rows. Put &#8220;Off-Premise&#8221; for those locations in the lower half of the spreadsheet.<\/p>\n<p><span class=\"header\">Making the Map<\/span><\/p>\n<p>6. Now it\u2019s time to map the data with Google Maps. In Google Drive, click <strong>New > More > Google My Maps<\/strong>. (If you don&#8217;t see it in your list of apps, click the &#8220;Connect more apps&#8221; button at the bottom of the list.) You can also get to My Maps at <a href=\"https:\/\/google.com\/maps\/d\/\" rel=\"noopener noreferrer\" target=\"_blank\">google.com\/maps\/d\/<\/a><\/p>\n<img loading=\"lazy\" decoding=\"async\" width=\"776\" height=\"496\" src=\"https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/4-mymaps.png\" alt=\"\" class=\"aligncenter size-full wp-image-2016\" srcset=\"https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/4-mymaps.png 776w, https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/4-mymaps-300x192.png 300w, https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/4-mymaps-768x491.png 768w\" sizes=\"auto, (max-width: 776px) 100vw, 776px\" \/>\n<ul>\n<li>Give your map an appropriate name in the box in the top left.<\/li>\n<li>Under &#8220;Untitled layer,&#8221; click the blue &#8220;Import&#8221; link.<\/li>\n<li>Choose the option for Google Drive, then locate the spreadsheet you just edited.<\/li>\n<li>When it asks you to &#8220;Choose columns to positions your placemarks,&#8221; choose the Geocode Address column that contains the full addresses.<\/li>\n<li>When it asks you to &#8220;Choose a column to title your markers,&#8221; choose the Tradename column that has the business names.<\/li>\n<li>Then it should load your placemarkers and zoom to Whitman County!<\/li>\n<\/ul>\n<img loading=\"lazy\" decoding=\"async\" width=\"767\" height=\"310\" src=\"https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/5-importdata.png\" alt=\"\" class=\"aligncenter size-full wp-image-2015\" srcset=\"https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/5-importdata.png 767w, https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/5-importdata-300x121.png 300w\" sizes=\"auto, (max-width: 767px) 100vw, 767px\" \/>\n<p>Sometimes it won&#8217;t be able to locate all the addresses, and will give you an alert that some rows could not be shown on the map. This yellow alert box allows you to click on &#8220;Open data table,&#8221; where you can check the addresses and make adjustments if necessary. For instance, it sometimes gets confused by addresses that include apartment or suite numbers. Here is a <a href=\"https:\/\/youtu.be\/AqqdKKosFb8\" rel=\"noopener\" target=\"_blank\">very short video about how to adjust addresses that Google couldn&#8217;t locate<\/a>.<\/p>\n<img loading=\"lazy\" decoding=\"async\" width=\"801\" height=\"263\" src=\"https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/6-correcterrors.png\" alt=\"\" class=\"aligncenter size-full wp-image-2017\" srcset=\"https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/6-correcterrors.png 801w, https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/6-correcterrors-300x99.png 300w, https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/6-correcterrors-768x252.png 768w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/>\n<p>7. Now you can style your map to adjust the appearance of the markers and the base map underneath. <\/p>\n<ul>\n<li>The default placemarker style is &#8220;Uniform Style.&#8221; Click that blue link and choose &#8220;Style by data column,&#8221; then find the Category column where you differentiated between on-premise and off-premise licenses.<\/li>\n<li>To change the default colors for the two categories, click the paint bucket icon and choose a new color or symbol (or both).<\/li>\n<li>Zoom in to Pullman so you can see how it looks up close. Then click the dropdown arrow by &#8220;Base Map&#8221; and choose which of the nine background styles seems most appealing and useful.<\/li>\n<\/ul>\n<img loading=\"lazy\" decoding=\"async\" width=\"789\" height=\"399\" src=\"https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/7-stylemap.png\" alt=\"\" class=\"aligncenter size-full wp-image-2018\" srcset=\"https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/7-stylemap.png 789w, https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/7-stylemap-300x152.png 300w, https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/7-stylemap-768x388.png 768w\" sizes=\"auto, (max-width: 789px) 100vw, 789px\" \/>\n<p>8. Finally, we&#8217;ll adjust what information shows up if you click on a specific placemarker. <\/p>\n<ul>\n<li>Click any placemarker on the map. At the bottom of the popup box, click the pencil icon to edit what information appears.<\/li>\n<li>Un-check the information that is redundant or irrelevant to most viewers, like the license number. Make sure the full address still appears, and some other columns like &#8220;Privilege&#8221; might interest people.<\/li>\n<\/ul>\n<img loading=\"lazy\" decoding=\"async\" width=\"492\" height=\"172\" src=\"https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/8-changeinfo.png\" alt=\"\" class=\"aligncenter size-full wp-image-2019\" srcset=\"https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/8-changeinfo.png 492w, https:\/\/murrowcourses.com\/graphics\/wp-content\/uploads\/2019\/05\/8-changeinfo-300x105.png 300w\" sizes=\"auto, (max-width: 492px) 100vw, 492px\" \/>\n<p>9. Click the &#8220;Share&#8221; icon in the white box, and change the access so anyone with the link can view the map. Save the link to submit later.<\/p>\n<hr \/>\n<p><span class=\"header\">Written questions<\/span><\/p>\n<p>In a separate document, answer a few questions about your map and other map ideas.<\/p>\n<p>1. How did you decide which styles to use for your placemarkers and base map?<\/p>\n<p>2. What is one example for a specific use of this map, and how could you improve the map for that particular audience or purpose? (For instance, this map could have very different purposes if it were used by a food inspector vs. shared by the chamber of commerce.)<\/p>\n<p>3. What are two other ideas for <strong>point<\/strong> data related to your personal or career interests that might be interesting to map using this process? <\/p>\n<p>4. This data is available for all counties in Washington state. What do you think the state map would look like if all liquor licenses were mapped as point data?<\/p>\n<p><span class=\"header\">Submitting Your Work<\/span><\/p>\n<p>Complete your assignment by submitting the following materials to Blackboard:<\/p>\n<ul>\n<li>Your map link (make sure to test it when you&#8217;re not signed in)<\/li>\n<li>Text document with written responses<\/li>\n<\/ul>\n<p><!--\n\n<div>\n\n<hr>\n\n\n\n<span class=\"subhead\">Answers &amp; Feedback<\/span>\n\n<strong>Part 1: Mapping Point Data<\/strong>\n\nMost of you successfully completed the spreadsheet and made the map showing each location. Here's a link to a completed Fusion Tables spreadsheet and map: <a href=\"https:\/\/fusiontables.google.com\/DataSource?docid=1NzOSpXH4sPmVe6fefAa1RrWLp0VLqUwxm2j-aAzs#map:id=4\" rel=\"noopener noreferrer\" target=\"_blank\">Liquor Licenses in Whitman County<\/a>\n\nThe most common issue was if the locations are mapped by city rather than by the full geocoded address. Fusion Tables will often try to generate your map using the city data unless you specifically change it to the Geocode Address column, but that's most likely what happened if you had locations appearing in states outside Washington.\n\n<strong>Part 2: Written Questions<\/strong>\n\n<em>1. Even with the correct addresses, not all geocoded locations will show up exactly in the right location. Zoom in and find a location that is incorrect. What is the establishment and why do you think its location may be wrong? (You\u2019ll be able to find a handful in Pullman.)<\/em>\n\nThere are a number of locations that aren't quite right. An incomplete list:\n\n\n<ul>\n\n\n<li><strong>Martin Stadium<\/strong> appears on Stadium Way, but down by Monroe Street and the Starbucks rather than the actual stadium location. A more accurate address for the stadium is 1775 NE Stadium Way.<\/li>\n\n\n\n\n<li><strong>WSU Vistor Center<\/strong> is showing up down the street at the armory (where Sanctuary Yoga is located).<\/li>\n\n\n\n\n<li><strong>Banyan's<\/strong>, the restaurant at WSU's golf course, has its location show up at a random building on the golf course rather than the restaurant.<\/li>\n\n\n\n\n<li><strong>Cafe Moro<\/strong> in downtown Pullman has its location show up a mile away near Sella's, possibly because its address includes a suite number that confuses the geocoding (though I don't know for sure).<\/li>\n\n\n\n\n<li>There are also a number of licenses that don't show up on the map because they share an address with another business (such as The Black Cypress and Etsi Bravo), and there's no way to tell that two markers are stacked on top of each other.<\/li>\n\n\n<\/ul>\n\n\n\nSome of these are issues with the addresses being incomplete or listed multiple ways. Some of them are legitimate geocoding errors within Google's system, though, and people can help correct wrong locations. The address for The Coug used to show up a block away, but it's now in the right spot.\n\n<em>2. What are two ideas for improving this map?<\/em>\n\nThere were quite a few good ideas, from labeling and sorting features to incorporating Google Earth or some way to see a ground-level view of each location. Many of you mentioned ways to categorize the locations beyond on- and off-premise, since this provides a minimal amount of information from a consumer standpoint. \n\n<em>3. This data is available for all counties in Washington state. What do you think the state map would look like if all liquor licenses were mapped as point data?<\/em>\n\nZoomed out, it would look like a population map if you did this for the whole state since there are more stores in places with more people. The Seattle area would look like one big crazy cluster of symbols, with smaller clusters for each city area.\n\n<\/div>\n\n--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this assignment, we\u2019ll use Google apps to map all the businesses with liquor licenses in Whitman County, which is home to WSU&#8217;s Pullman campus.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-2007","post","type-post","status-publish","format-standard","hentry","category-assignments"],"_links":{"self":[{"href":"https:\/\/murrowcourses.com\/graphics\/wp-json\/wp\/v2\/posts\/2007","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/murrowcourses.com\/graphics\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/murrowcourses.com\/graphics\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/murrowcourses.com\/graphics\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/murrowcourses.com\/graphics\/wp-json\/wp\/v2\/comments?post=2007"}],"version-history":[{"count":5,"href":"https:\/\/murrowcourses.com\/graphics\/wp-json\/wp\/v2\/posts\/2007\/revisions"}],"predecessor-version":[{"id":3313,"href":"https:\/\/murrowcourses.com\/graphics\/wp-json\/wp\/v2\/posts\/2007\/revisions\/3313"}],"wp:attachment":[{"href":"https:\/\/murrowcourses.com\/graphics\/wp-json\/wp\/v2\/media?parent=2007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/murrowcourses.com\/graphics\/wp-json\/wp\/v2\/categories?post=2007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/murrowcourses.com\/graphics\/wp-json\/wp\/v2\/tags?post=2007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}