Slideshow with the Google Places API photos
In the previous chapter, we used the Google Places API in order to populate the place markers around the map with a radar search. Now, as we have the player interacting with a marker, we want them to be able to visualize information about the location. We can do that by executing a detail query about the place, which will return additional information as well as the attached photos. Those photos will be used to create a slideshow for the player while visiting the place.
Along with the slideshow, we will also add text about the place name and the current rating. Later, we will use the rating to determine what cooking monsters a place will want to purchase and for how much.
You will need the Google Places ...
Get Augmented Reality Game Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.