Description Usage Arguments Value Examples
View source: R/get_bounding_box.R
Get bounding box for set of coordinate points
1 | get_coord_bounding_box(lat, lng)
|
lat |
A vector of latitudes |
lng |
A vector of longitudes |
A list of length 2, containing the bottom-left (named "bl") and top-right (named "tr") coordinates of the bounding box.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.