gh_decode {geohashTools} | R Documentation |
Geohash decoding
Description
Convert geohash-encoded strings into latitude/longitude coordinates
Usage
gh_decode(geohashes, include_delta = FALSE, coord_loc = 'c')
Arguments
geohashes |
|
include_delta |
|
coord_loc |
|
Details
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.
Value
list
with the following entries:
latitude |
|
longitude |
|
delta_latitude |
|
delta_longitude |
|
Author(s)
Michael Chirico
References
http://geohash.org/ ( Gustavo Niemeyer's original geohash service )
Examples
# Riddle me this
gh_decode('stq4s8c')
# Cell half-widths might be convenient to include for downstream analysis
gh_decode('tjmd79', include_delta = TRUE)