Description Usage Arguments Value Examples
Random position
1 | rg_position(count = 1, bbox = NULL)
|
count |
(integer/numeric) number of positions. Default: 1 |
bbox |
(integer/numeric) lat/long bounding box from which to generate
positions; numeric vector of the form
|
A list, each element is a numeric vector length two of long, lat
1 2 3 4 5 6 7 8 9 10 | rg_position()
rg_position(10)
rg_position(100)
rg_position(bbox = c(50, 50, 60, 60))
# coerce to data.frame
stats::setNames(
do.call("rbind.data.frame", rg_position(10)),
c('lng', 'lat')
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.