expand_geohashes: Expand Geohashes

View source: R/clusters.R

expand_geohashesR Documentation

Expand Geohashes

Description

Expand Geohashes

Usage

expand_geohashes(geohashes)

Arguments

geohashes

(character vector) Geohashes to expand.

Value

Character vector of each geohash in geohashes followed by its parents.

Examples

expand_geohashes("0011")
expand_geohashes(c("0011", "110011"))
xyz <- xy_to_gridcells(lnglat_to_xy(cbind(123.4567, 12.3456)), 20)
geohashes <- gridcells_to_geohashes(xyz)
exyz <- geohashes_to_gridcells(expand_geohashes(geohashes))
lnglat <- xy_to_lnglat(gridcells_to_xy(exyz))
cbind(exyz, lnglat)

falling-fruit/fruitr documentation built on Dec. 21, 2024, 8:32 p.m.