Description Usage Arguments See Also Examples
Geohashes are calculated using a fixed-sized box, which means it's easy to take a geohash and extract the neighbouring boxes around it, in each direction. These functions either extract all neighbours, or individual neighbours, depending on your preference.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
hashes |
a vector of geohashes, which can be computed with |
gh_encode
for generating hashes and gh_decode
for resolving
them into latitude and longitude pairs.
1 2 3 4 5 | #Get a single neighbours
north("ezs42")
#Get all neighbours!
gh_neighbours("ezs42")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.