gridcells_to_geohashes | R Documentation |
Converts between Web Mercator (EPSG:3857) quadtree grid cell indices and binary geohashes.
gridcells_to_geohashes(xyz)
geohashes_to_gridcells(geohashes)
xyz |
Rows of Web Mercator grid cell indices (x, y, zoom). |
geohashes |
A character vector of geohashes. |
xi <- c(0, 0, 1, 0)
yi <- c(0, 1, 1, 0)
zoom <- c(0, 1, 1, 2)
xyz <- cbind(xi, yi, zoom)
geohashes <- gridcells_to_geohashes(xyz)
xyz <- geohashes_to_gridcells(geohashes)
geohashes == gridcells_to_geohashes(xyz)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.