View source: R/google_elevation.R
| google_elevation | R Documentation | 
The Google Maps API is not open-source, therefore check the licensing conditions for usage conditions (https://developers.google.com/maps/terms). Users of this function must use the elevation data to display on a Google Map.
google_elevation(
  latitude,
  longitude,
  key,
  round = NA,
  vector = TRUE,
  progress = "none"
)
latitude | 
 Numeric vector of latitude values.  | 
longitude | 
 Numeric vector of longitude values.  | 
key | 
 Google Maps API key.  | 
round | 
 Number of decimal points to round the elevation variable to. Default is no rounding.  | 
vector | 
 Should the function only return a vector of elevation? Default
is   | 
progress | 
 Type of progress bar to display. Default is   | 
Either a data frame containing latitude and longitude pairs, elevation estimate, and (horizontal) resolution of elevation estimate or a numeric vector containing only elevation estimates.
Stuart K. Grange
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.