1. How are lists used in this app? Why is a list a useful data abstraction or an abstract data type (ADT) in programming? Is it easy to add new destinations to the tour?
Lists are used in this app to create a list of destinations and map types. The app uses indexing to determine which elements of the list that you are referring to. Lists are useful because it is easy to add to the list without changing the procedure of the program. I could add many different locations in the list and the code would still work the same way.
2. How do APIs simplify complex programming tasks? Pick an app that you use on your device (e.g. Twitter, Google Maps) and see whether it provides an API and some of the functions you can control with it. Describe your results below.
When you click on a location in Google Maps, like the name of a store or a landmark, a bit of information pops up in a side window. This information is taken from online. The API is used to act as a go-between for the map and another website.
3. How is GPS used in this app? Do some research to find out how GPS works and describe it here in a couple sentences.
GPS, or Global Positioning System, uses satellites to determine location. In this app, GPS is used to determine the location of the user. When you click the "My Location" button, the app uses this information to center the map on your current location.
4. Insert screenshots of the enhancements that you made below and describe how they work.
The first enhancement is for creating a list to choose what variety of map is desired. There are three options: Roads, Aerial, and Terrain. Each of these has a number corresponding to it that the code associates with that type of map. Users can pick from the list of map types and the map is changed to that type. The second enhancement creates a slider that zooms the map in or out. It has a minimum zoom of 1 and a maximum zoom of 20. The third enhancement uses the internal location sensor of the app to pinpoint the latitude and longitude of the user and moves the map area to that point, when the Location Button is clicked.