| gh_decode | R Documentation |
Convert geohash-encoded strings into latitude/longitude coordinates
gh_decode(geohashes, include_delta = FALSE, coord_loc = 'c')
geohashes |
|
include_delta |
|
coord_loc |
|
coord_loc can be the cell's center ('c' or 'centroid'), or it can be any of the 8 corners (e.g. 's'/'south' for the midpoint of the southern boundary of the cell, or 'ne'/'northeast' for the upper-right corner.
For factor input, decoding will be done on the levels for efficiency.
list with the following entries:
latitude |
|
longitude |
|
delta_latitude |
|
delta_longitude |
|
Michael Chirico
http://geohash.org/ ( Gustavo Niemeyer's original geohash service )
# Riddle me this
gh_decode('stq4s8c')
# Cell half-widths might be convenient to include for downstream analysis
gh_decode('tjmd79', include_delta = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.