This function provides access to point elevations using either the USGS Elevation Point Query Service (US Only) or by extracting point elevations from the AWS Terrain Tiles. The function accepts a data.frame of x (long) and y (lat) or a sfPOINT or MULTIPOINT object as input. A sfPOINT or MULTIPOINT object is returned with elevation and elevation units as an added data.frame.
locations: Either a data.frame with x (e.g. longitude) as the first column and y (e.g. latitude) as the second column, a SpatialPoints/SpatialPointsDataFrame, or a sfPOINT or MULTIPOINT object. Elevation for these points will be returned in the originally supplied class.
prj: A valid input to st_crs. This argument is required for a data.frame of locations and optional for sf locations.
src: A character indicating which API to use, either "epqs" or "aws" accepted. The "epqs" source is relatively slow for larger numbers of points (e.g. > 500). The "aws" source may be quicker in these cases provided the points are in a similar geographic area. The "aws" source downloads a DEM using get_elev_raster and then extracts the elevation for each point.
overwrite: A logical indicating that existing elevation and elev_units columns should be overwritten. Default is FALSE and get_elev_point will error if these columns already exist.