开发者

Geohashing format

开发者 https://www.devze.com 2022-12-21 22:56 出处:网络
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?

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)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号