Big Burgers wants to answer this key question: where should the new restaurant be? By visualizing the 223 data points, they've learned new information about their customers.
average block you built in Unit 3 into your current project:
average block, then click OK. This will generate an XML file.average block should now be usable in your current project.average block to compute the average latitude and average longitude of the GPS data.Here's a visualization of the GPS data, along with some latitude lines for reference. The GPS data breaks into three clear zones:
Based on the visualization, Big Burgers will place their restaurant in the zone with the largest number of customers. But, which one is it?
zone block. The input is a pair of GPS coordinates, and the output indicates which zone the coordinates are in.zone block and the full set of GPS data to determine which of the three zones has the most customers.Now that Big Burgers knows the general area to place the restaurant, they still need to determine where within that zone to place it. To do this, they need a new list of the GPS coordinates of those customers within that zone.
average block to compute the average of all the longitudes and latitudes of the GPS data within the most popular zone.