Description Usage Arguments Value Examples
Slick function to geolocate via the Google Maps API
1 | gl_geocode(str, region, key)
|
str |
vector of strings |
region |
bias results towards a region |
key |
API key |
A list of tibbles
with list columns.
1 2 3 4 5 6 7 8 9 10 | library(tidyverse)
gl_geocode(c("Konstanz", "Mannheim", "Köln"), key=your_api_key, region='DE')
# tidyr
tibble(str=c("Konstanz", "Mannheim", "Köln")) %>%
mutate(geo=gl_geocode(str,
region='DE', key=api_key)) %>%
unnest(col='geo')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.