Getting More Location Data
To actually plot your image on this map, you need to know where it is. Add an additional “extra” parameter to your Flickr API query to fetch a lat-lon pair back for your GalleryItem.
Listing 32.7 Adding lat-lon to query (FlickrFetchr.java
)
private static final String API_KEY = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; private static final String FETCH_RECENTS_METHOD = "flickr.photos.getRecent"; private static final String SEARCH_METHOD = "flickr.photos.search"; private static final ...
Get Android Programming: The Big Nerd Ranch Guide, 2nd Edition 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.