View source: R/google_timezone.R
google_timezone | R Documentation |
The Google Maps Time Zone API provides time offset data for locations on the surface of the earth. You request the time zone information for a specific latitude/longitude pair and date.
google_timezone(
location,
timestamp = Sys.time(),
language = NULL,
simplify = TRUE,
curl_proxy = NULL,
key = get_api_key("timezone")
)
location |
|
timestamp |
|
language |
|
simplify |
|
curl_proxy |
a curl proxy object |
key |
|
Either list or JSON string of the timezone
The amount of queries you can make to Google's APIs is dependent on both the service and the API you are using.
Each API has specific quotas and limits. Check Google's API documentation for details.
View your usage at the Google Cloud Console https://console.cloud.google.com/
Each API can only accept and return one request at a time. If you write a loop to make multiple API calls you should ensure you don't go over your quota / limits during the loop.
## Not run:
google_timezone(location = c(-37.81659, 144.9841),
timestamp = as.POSIXct("2016-06-05"),
key = "<your valid api key>")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.