get_point | R Documentation |
Converts a pair of coordinates, a matrix of coordinates, or an sf POINT object into an sfc object for use in GeoJSON bodies.
get_point(x)
## Default S3 method:
get_point(x)
## S3 method for class 'numeric'
get_point(x)
## S3 method for class 'matrix'
get_point(x)
## S3 method for class 'sf'
get_point(x)
## S3 method for class 'sfc'
get_point(x)
x |
A numeric vector of length 2, a matrix with coordinates, or an sf object of POINT type. |
An sfc object with coordinates in EPSG:4326.
get_point(c(-122.201399,47.608678))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.