From 3aa50086d2f5a1b5b46884ae02f7cdbbbf507b32 Mon Sep 17 00:00:00 2001 From: edzer Date: Sun, 12 May 2024 00:32:21 +0200 Subject: [PATCH] docs --- R/geohash.R | 3 ++- man/st_geohash.Rd | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/R/geohash.R b/R/geohash.R index 5c98652..22719ce 100644 --- a/R/geohash.R +++ b/R/geohash.R @@ -21,7 +21,8 @@ st_geohash = function(x, precision = 0) { #' @param raw logical; if `TRUE`, return a matrix with bounding box coordinates on each row #' @param crs object of class `crs` #' @examples -#' o = options(digits = 20) +#' st_geom_from_geohash(c('9qqj7nmxncgyy4d0dbxqz0', 'up'), raw = TRUE) +#' o = options(digits = 20) # for printing purposes #' st_geom_from_geohash(c('9qqj7nmxncgyy4d0dbxqz0', 'u1hzz631zyd63zwsd7zt')) #' st_geom_from_geohash('9qqj7nmxncgyy4d0dbxqz0', 4) #' st_geom_from_geohash('9qqj7nmxncgyy4d0dbxqz0', 10) diff --git a/man/st_geohash.Rd b/man/st_geohash.Rd index 959642c..d101740 100644 --- a/man/st_geohash.Rd +++ b/man/st_geohash.Rd @@ -40,7 +40,8 @@ see \url{http://geohash.org/} or \url{https://en.wikipedia.org/wiki/Geohash}. library(sf) lwgeom::st_geohash(st_sfc(st_point(c(1.5,3.5)), st_point(c(0,90))), 2) lwgeom::st_geohash(st_sfc(st_point(c(1.5,3.5)), st_point(c(0,90))), 10) -o = options(digits = 20) +st_geom_from_geohash(c('9qqj7nmxncgyy4d0dbxqz0', 'up'), raw = TRUE) +o = options(digits = 20) # for printing purposes st_geom_from_geohash(c('9qqj7nmxncgyy4d0dbxqz0', 'u1hzz631zyd63zwsd7zt')) st_geom_from_geohash('9qqj7nmxncgyy4d0dbxqz0', 4) st_geom_from_geohash('9qqj7nmxncgyy4d0dbxqz0', 10)