randgeo (version 0.3.0)

geo_point: 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

Run this code
# NOT RUN {
geo_point()
geo_point(10)
geo_point(bbox = c(50, 50, 60, 60))
# }

Run the code above in your browser using DataCamp Workspace