ropensci / photosearcher

Searches Flickr for photographs and metadata
https://docs.ropensci.org/photosearcher
15 stars 13 forks source link

Shapefile input for study area #4

Closed laurajanegraham closed 4 years ago

laurajanegraham commented 5 years ago

I would recommend having one input parameter region search_region or some such, which then checks the class of the input (is it bbox, woeid, sp or sf?) and then:

For bbox, set bbox = the character string of the input bbox and woeid = NULL For woeid, set woeid = input and bbox = NULL For sp, sf, calculate the bounding box, convert to character and set it as bbox. woeid = NULL.

For sp/sf, at the end you can crop the points by the input sp, sf and return as an sp/sf object.