powered by
Get bounding box for set of coordinate points
get_centroid_bounding_box( centroid, distance, lat = NULL, lng = NULL, dist.unit = c("km", "miles", "m", "ft"), coord.unit = c("degrees", "radians") )
A vector of length 2 containing latitude and longitude values.
The distance from the centroid to extend the bounding box.
A quoted string indicating what named value in the centroid represents latitude. If NULL, will be inferred from centroid names.
A quoted string indicating what named value in the centroid represents longitude. If NULL, will be inferred from centroid names.
A single value representing the units the distance value is in.
A single value representing the units the coordinates are in.
A list of length 2, containing the bottom-left (named "bl") and top-right (named "tr") coordinates of the bounding box.
# NOT RUN { get_centroid_bounding_box(c( "lat" = 44.121268, "lng" = -73.903734 ), distance = 10 ) # }
Run the code above in your browser using DataLab