rg_position | R Documentation |
Random position
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
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.