geohashTools
geohashTools copied to clipboard
gh_covering should provide geohash name as a variable
Right now using gh_covering
only stores geohash names as the rownames attribute. In practice, I find that everytime I use gh_covering
, I follow it up like this:
gh_covering(spatial_object, precision = 4) %>%
mutate(gh = rownames(.))
Three possible solutions:
- Currently the
ID
variable returns a numeric index. Can replace this with the geohash name as ID as default behaviour - Keep the
ID
variable and add agh
variable with the name as default behaviour - Do 1/2 if specified with an argument, e.g.
labelled = TRUE
in the function call
Just came here to open this exact same issue 🤦