R/location_getSingleElevation_USGS.R
location_getSingleElevation_USGS.Rd
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
)
Single longitude in decimal degrees E.
Single latitude in decimal degrees N.
Logical controlling the generation of progress messages.
Numeric elevation value.
# \donttest{
library(MazamaLocationUtils)
# Fail gracefully if any resources are not available
try({
# Wenatchee
longitude <- -120.325278
latitude <- 47.423333
location_getSingleElevation_USGS(longitude, latitude)
}, silent = FALSE)
#> [1] 235.9
# }