findPlaces: Find place location data

Description Usage Arguments Details Value See Also Examples

Description

Find the WoeID and other location data for a given place

Usage

1
find_place(place)

Arguments

place

character. The place for the query

Details

Takes user defined location and returns location data for the search. Uses the flickr.places.find API method from the Flickr API. See https://www.flickr.com/services/api/flickr.places.find.html for more information on the API method.

When running the function you need an API key saved as photosearcher_key.sysdata in your working directory. If this is the first function you run you will be prompted to create and enter your API key. The API key will then be saved as photosearcher_key.sysdata in your working directory and is used for all function.

Value

data.frame. Information on locations that share the name with the search location. Nine variables are returned: place_id, woe_id, latitude, longitude, place_url, place_type, place_type_id, timezone, woe_name.

See Also

Other Information about places: location_tags

Examples

1
2
3
4
5
6
## Not run: 
find_place(place = "New York")

find_place(place = "England")

## End(Not run)

nfox29/photosearcher documentation built on April 27, 2020, 10:34 p.m.