powered by
Get bounding box for set of coordinate points
get_coord_bounding_box(lat, lng)
A vector of latitudes
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.
# NOT RUN { df <- data.frame( lat = c(44.05771, 44.18475), lng = c(-73.99212, -73.81515) ) get_coord_bounding_box(df$lat, df$lng) # }
Run the code above in your browser using DataLab