gpt4 book ai didi

algorithm - Geohashes - 为什么需要交错索引值?

转载 作者:塔克拉玛干 更新时间:2023-11-03 04:48:01 25 4
gpt4 key购买 nike

我看过this post关于geohashes。根据作者的说法,计算哈希的最后一步是交错 x 和 y 索引值。但这真的有必要吗?只要哈希表是根据更改后的索引规则构建的,是否有适当的理由不只是连接这些值?

最佳答案

来自wiki page

Geohashes offer properties like arbitrary precision and the possibility of gradually removing characters from the end of the code to reduce its size (and gradually lose precision).

如果您简单地连接 x 和 y 坐标,那么用户在尝试降低精度时必须格外小心,方法是小心地从 x 和 y 坐标中准确删除正确数量的字符。

关于algorithm - Geohashes - 为什么需要交错索引值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17488346/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com