View source: R/geocode_google.R
geocode_google | R Documentation |
Geocodes one location through the Google API
geocode_google(stringlocation, info = c("lat", "lng"))
stringlocation |
a location string |
info |
the variables to inform: by default, c("lat","lng"). Information can be e.g. "locality","country","country_code","formatted_address". It can also be any type supported by the Google Map geocoding API: see Address types. |
tibble with additional columns corresponding to the info required
geocode_google("Grande Rue de la Guillotière, Lyon",
info=c("lat",
"lng",
"country_code",
"locality",
"administrative_area_level_1"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.