get_coord_bounding_box: Get bounding box for set of coordinate points

Description Usage Arguments Value Examples

View source: R/get_bounding_box.R

Description

Get bounding box for set of coordinate points

Usage

1

Arguments

lat

A vector of latitudes

lng

A vector of longitudes

Value

A list of length 2, containing the bottom-left (named "bl") and top-right (named "tr") coordinates of the bounding box.

Examples

1
2
3
4
5
df <- data.frame(
  lat = c(44.05771, 44.18475),
  lng = c(-73.99212, -73.81515)
)
get_coord_bounding_box(df$lat, df$lng)

spacey documentation built on March 15, 2020, 1:07 a.m.