View source: R/location_getSingleElevation_USGS.R
location_getSingleElevation_USGS | R Documentation |
USGS APIs are used to determine the elevation in meters
associated with the longitude
and latitude
.
Note: The conversion factor for meters to feet is 3.28084.
location_getSingleElevation_USGS( longitude = NULL, latitude = NULL, verbose = TRUE )
longitude |
Single longitude in decimal degrees E. |
latitude |
Single latitude in decimal degrees N. |
verbose |
Logical controlling the generation of progress messages. |
Numeric elevation value.
library(MazamaLocationUtils) # Fail gracefully if any resources are not available try({ # Wenatchee lon <- -120.325278 lat <- 47.423333 location_getSingleElevation_USGS(lon, lat) }, silent = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.