| gh_neighbors | R Documentation |
Return the geohashes adjacent to input geohashes
gh_neighbors(geohashes, self = TRUE)
gh_neighbours(geohashes, self = TRUE)
geohashes |
|
self |
Should the input also be returned as a list element? Convenient for one-line usage / piping |
North/south-pole adjacent geohashes are missing three of their neighbors; these will be returned as NA_character_.
list with character vector entries in the direction relative to the input geohashes indicated by their name (e.g. value$south gives all of the southern neighbors of the input geohashes).
The order is self (if self = TRUE), southwest, south, southeast, west, east, northwest, north, northeast (reflecting an easterly, then northerly traversal of the neighborhod).
Michael Chirico
http://geohash.org/ ( Gustavo Niemeyer's original geohash service )
gh_neighbors('d7q8u4')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.