gh_decode {geohashTools} | 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.
list
with the following entries:
latitude |
|
longitude |
|
delta_latitude |
|
delta_longitude |
|
Michael Chirico
http://geohash.org/ ( Gustavo Niemeyer's original geohash service )
https://github.com/hkwi/python-geohash ( Hiroaki Kawai's original Python implementation )
# Riddle me this gh_decode('stq4s8c') # Cell half-widths might be convenient to include for downstream analysis gh_decode('tjmd79', include_delta = TRUE)