Is there any specific format for a geohash value? Can I use Geohash.encode(latitude,longitude,precision="8") in ruby script? What is the maximum value that precis开发者_Go百科ion attribute can take? Thanks in advance for any help.
Look at this library and the documentation related to it. It's based on C and it says :
You can encode or decode to an arbitrary level of precision:
Encode latitude and longitude to a geohash with precision digits encode(lat, lon, precision=10)
Decode a geohash to a latitude and longitude with decimals digits decode(geohash, decimals=5)
精彩评论