View source: R/get_locations.R
get_locations | R Documentation |
A function to retreive a list of all locations
and their attributes, across all outbreaks on
the instance (since this is a system-level API
endpoint). This function relies on the \locations
API endpoint.
get_locations(url, username, password)
url |
Insert the base URL for your instance of Go.Data here. Don't forget the forward slash "/" at end! |
username |
The email address for your Go.Data login. |
password |
The password for your Go.Data login |
Returns a data frame of locations associated with Go.Data instance.
## Not run:
url <- "https://MyGoDataServer.com/"
username <- "myemail@email.com"
password <- "mypassword"
locations <- get_locations(
url = url,
username = username,
password = password
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.