TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: An API to encode and decode coordinates using Geohash

40 点作者 tpaschalis超过 5 年前

6 条评论

deathanatos超过 5 年前
I&#x27;ve implemented geohashes before. The algorithm is not difficult, and pretty straight-forward to understand… and not the sort of thing I&#x27;d call out to a separate service over the network for. It&#x27;s a pure computation that will take <i>nanoseconds</i>; is that worth involving the Internet and a third-party API?<p>Edit: well, some of <a href="http:&#x2F;&#x2F;geohash.world&#x2F;about.html" rel="nofollow">http:&#x2F;&#x2F;geohash.world&#x2F;about.html</a> makes it sound like a pet project for learning purposes. In which case, anything goes, I guess? But I&#x27;m still not sure if it&#x27;s only a pet project?
评论 #21228318 未加载
评论 #21227264 未加载
ltbarcly3超过 5 年前
I honestly don&#x27;t understand why anyone would use Geohash? Because it&#x27;s one number instead of 2?<p>The short definition is &quot;A geohash is a convenient way of expressing a location (anywhere in the world) using a short alphanumeric string, with greater precision obtained with longer strings.&quot;<p>Here&#x27;s another way to &quot;use a short alphanumeric string&quot; and &quot;get greater precision with longer strings&quot;: &quot;37,122&quot;, &quot;37.7,122.4&quot;, &quot;37.77,122.41&quot;, &quot;37.774,122.419&quot;<p>That seems so simple and universal and has been a standard since before our great grandparents were born, time to disrupt it to save a couple of bytes?
评论 #21227528 未加载
jermaustin1超过 5 年前
Did you reimplement the algorithm, or are you just redirecting the result from the geohash.org api?
评论 #21228359 未加载
jbuild超过 5 年前
FYI, <a href="https:&#x2F;&#x2F;geohash.world&#x2F;" rel="nofollow">https:&#x2F;&#x2F;geohash.world&#x2F;</a> doesn&#x27;t go anywhere (for example, clicking in the logo on the top left of the linked page)
评论 #21229326 未加载
raimille1超过 5 年前
When I see services like this or W3W, I cannot understand what is the goal? What&#x27;s wrong with coordinates themselves?
评论 #21227537 未加载
评论 #21226395 未加载
zackkitzmiller超过 5 年前
Why hop the network for this?
评论 #21226807 未加载