Description Usage Arguments Value Examples
View source: R/pull_geo_data.R
This function, primarily, is a helper for drive_time
and geocode_url
.
It attempts to pull Google Maps data for a complete URL, recording http errors/connection failures
within the status
and error_message
paramaters.
To debug invalid signature requests, refer to the Google Developer documention.
1 | pull_geo_data(urls_out, tmout = 10, messages = TRUE)
|
urls_out |
character string; a complete URL with valid character encoding. |
tmout |
number; the length of time, in seconds, to wait for a valid server response before triggering a connection timeout error (defaults to 10 seconds). |
messages |
logical; when |
A list with validly formatted JSON objects whose length equals urls_out
1 2 3 4 5 6 | ## Not run:
# Fetch URLs contained within character vector "togoogle", waiting 20 seconds
# before triggering a server timeout error.
output <- pull_geo_data(togoogle, tmout=20)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.