geo_point: Random GeoJSON point

View source: R/geo_point.R

geo_pointR Documentation

Random GeoJSON point

Description

Random GeoJSON point

Usage

geo_point(count = 1, bbox = NULL)

Arguments

count

(integer/numeric) number of points. Default: 1

bbox

(integer/numeric) lat/long bounding box from which to generate positions; numeric vector of the form west (long), south (lat), east (long), north (lat). optional

Value

GeoJSON; a list with one ore more Points in a FeatureCollection, with class geo_list - simple unclass() to remove the class

Examples

geo_point()
geo_point(10)
geo_point(bbox = c(50, 50, 60, 60))

ropensci/randgeo documentation built on Sept. 12, 2022, 2:01 p.m.