Learn R Programming

MazamaLocationUtils (version 0.2.0)

location_getSingleElevation_USGS: Get elevation data from a USGS web service

Description

USGS APIs are used to determine the elevation associated with the longitude and latitude.

Usage

location_getSingleElevation_USGS(
  longitude = NULL,
  latitude = NULL,
  verbose = TRUE
)

Arguments

longitude

Single longitude in decimal degrees E.

latitude

Single latitude in decimal degrees N.

verbose

Logical controlling the generation of progress messages.

Value

Numeric elevation value.

References

https://nationalmap.gov/epqs/

Examples

Run this code
# NOT RUN {
library(MazamaLocationUtils)

# Wenatchee
lon <- -120.325278
lat <- 47.423333
location_getSingleElevation_USGS(lon, lat)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab