get_location_coords {rsocialwatcher} | R Documentation |
Get Coordinates/Geometries for Valid Location Keys
Description
Get Coordinates/Geometries for Valid Location Keys
Usage
get_location_coords(
location_unit_type,
location_keys,
version,
token,
large_query_chunk_size = 10,
large_query_pause = 0,
limit = NULL,
verbose = TRUE
)
Arguments
location_unit_type |
Either |
location_keys |
Key associated with location. Use the |
version |
API version. e.g., "v19.0" |
token |
Facebook API token |
large_query_chunk_size |
The function will first try to query all locations using one API call. If too many locations are requested, the function will query in chunks. By default, the function will query 10 locations at a time. (Default: 10). |
large_query_pause |
The function will first try to query all locations using one API call. If too many locations are requested, the function will query in chunks. After each query, the |
limit |
Number of parameter IDs to search for. |
verbose |
If the function needs to make multiple queries to obtain location information for all location keys, print progress. (Default: |
Value
Spatial features dataframe
Examples
## Not run:
#### Define version, creation act, and token
VERSION = "enter-version"
TOKEN = "enter-token"
#### Grab locations
loc_sf <- get_location_coords(location_type = "countries",
location_keys = c("US", "MX", "CA"),
version = VERSION,
token = TOKEN)
## End(Not run)