开发者

Geohashing format

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜