elevation: calculate elevation

Description Usage Arguments Details Value

View source: R/elevation.R

Description

given a matrix of points, figure out the min and max elevations of the points using the google elevation API

Usage

1
elevation(pts)

Arguments

points

a 2 x n matrix or dataframe of lat/lon coordinates in decimal degrees

Details

Given the limited number of points that can be sent to the elevation API. However too many points may cause the api to bork.

Value

a vector that gives the minimum and maximum elevation in meters


ropensci/mdextract documentation built on May 27, 2019, 4:34 p.m.