Description Usage Arguments Value Examples
View source: R/flickrphotossearch.R
An R implementation of
flickr.photos.search
from the Flickr API. Searches for photos based on
user-defined criteria. Some parameters (bbox
and extras
) allow passing of R objects
that are converted to the text input needed by the API.
1 2 3 |
api_key |
your personal API key from flickr |
bbox |
the spatial bounding box from spatial data; output from
|
extras |
character vector of potential extra fields returned. By default ('geo,tags') returns the geotag information (latitude, longitude, etc) and the photo's tags (keywords). Currently supported fields are: description, license, date_upload, date_taken, owner_name, icon_server, original_format, last_update, geo, tags, machine_tags, o_dims, views, media, path_alias, url_sq, url_t, url_s, url_q, url_m, url_n, url_z, url_c, url_l, url_o |
output |
character string indicating output type. Either "metadata" (default) for geotagged images, or "total" indicating the total number of records |
.allpages |
Pass |
.usecache |
Pass |
... |
Key/value pairs as defined in
the
API documentation. |
A data.frame
of photo information.
1 2 3 4 5 | library(prettymapr)
bb <- searchbbox("halifax, NS")
photos <- flickr.photos.search(bbox=bb, text="water", min_taken_date="2016-01-01")
photos2 <- flickr.photos.search(bbox=bb, text="water", .allpages=TRUE)
photos3 <- flickr.photos.search(bbox=searchbbox("wolfville, NS"), min_taken_date = "2016-01-01")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.