Description Usage Arguments Details Value Examples
Download Street View image at given latitude, longitude location.
1 2 | get_img(lat, lon, dir, api_key = maps_api_key(), size = "100x100",
suffix = "", ...)
|
lat |
latitude |
lon |
longitude |
dir |
path to directory image should be downloaded to |
api_key |
Character string of your API key. By default, looks for
|
size |
dimensions in pixels of file to download as a string, e.g. "100x100" |
suffix |
string to be appended to the end of the file name |
... |
other parameters passed along to the Google Street View Static API, e.g. heading, pitch. |
See the Google Street View Static API Docs for more info on available parameters.
file path of downloaded file, invisibly.
1 2 3 4 5 | ## Not run:
img <- get_img(lat = 37.2341762, lon = -112.8726299, dir = tempdir())
display_jpeg(img)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.