Adding locations and maps to Where it's Snap
We want to add a feature to our app where the user can click on the SHOW MAP button while viewing a photo, and the app will then show a map with the location of where the photo was taken in the world.
We have a good insight into this already from the previous chapter, when we viewed a specific GPS location on Google Maps.
The functionality we need to add and the issues we need to overcome are as follows:
- To capture and store the location each time a photo is taken
- When the SHOW MAP button is clicked on, we launch a map screen of that location
- Change the
Photo
class and database structures to store GPS locations - Modify
DataManager
and helper methods to store and retrieve the extra bit of data - Add the Google Maps functionality to the SHOW MAP button
Initially, in the context of simply developing an app, this might seem straightforward. Now, imagine that our app is already published. We have a million users with lots of photos already stored in their...