Get elevations of given coordinates using the Mapbox tilequery API.

get_mapbox_elevations(
  lat,
  lon,
  limit = 50L,
  mapbox_token = Sys.getenv("MAPBOX_TOKEN")
)

Arguments

lat

Center coordinates of map.

lon

Center coordinates of map.

limit

Maximum number of elevations to return.

mapbox_token

Mapbox API token.

Value

A vector of elevations.

Examples

# NOT RUN {
get_elevations(39.75953, -105.01109)
# }