st_geohash | R Documentation |
compute geohash from (average) coordinates
st_geohash(x, precision = 0)
x |
object of class |
precision |
integer; precision (length) of geohash returned. From the liblwgeom source: “where the precision is non-positive, a precision based on the bounds of the feature. Big features have loose precision. Small features have tight precision.” |
see http://geohash.org/ or https://en.wikipedia.org/wiki/Geohash.
character vector with geohashes
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.