News for hackers. Stuff that matters.
Re:Show HN: The simplest geohash implementation under the sun by Beltiras on Monday June 14, 2021 @07:12AM (#27501281)
I can't figure out how to generate a hash. There's no right-click functionality and I'm not about to input coordinates when I should be able to just click the map. What am I not understanding here?
Re:Show HN: The simplest geohash implementation under the sun by wafer-bw on Monday June 14, 2021 @04:20PM (#27507772)
Something is even wrong with going to coordinates... I entered 53,40 and it took me to 53.437500,39.375000.

I'm guessing the hash is what ends up in the URL which is https://mro.name/g/uc

Re:Show HN: The simplest geohash implementation under the sun by mro_name on Tuesday June 15, 2021 @03:05AM (#27512214)
the less digits you give, the less precise your input looks, the bigger the geohash tile you're in and the bigger the difference between your input and the tile's center.

Add more digits to the input.

Re:Show HN: The simplest geohash implementation under the sun by mro_name on Tuesday June 15, 2021 @03:06AM (#27512222)
… and a 2 character geohash is reeeeeeally coarse. As is 0 fractional digits to lat/lon.
Re:Show HN: The simplest geohash implementation under the sun by mro_name on Tuesday June 15, 2021 @03:04AM (#27512209)
enter the coordinates and press enter. You are not able to click the map.
Re:Show HN: The simplest geohash implementation under the sun by mro_name on Tuesday June 15, 2021 @03:41AM (#27512405)
the UX focus isn't casual use but operations – showcasing mere mortals can host a webservice as a tool for themselves and others.

But feel free to add any other HTML presentation layer by modifying the XSLT and serving it from your webserver instead.

Re:Show HN: The simplest geohash implementation under the sun by eps on Monday June 14, 2021 @05:55AM (#27500893)
This appears to be an implementation of https://en.wikipedia.org/wiki/Geohash
Re:Show HN: The simplest geohash implementation under the sun by loloquwowndueo on Monday June 14, 2021 @09:07PM (#27510271)
“ Apparently, in the late 2000s, G. Niemeyer still didn't know about Morton's work, and reinvented it” :)
Re:Show HN: The simplest geohash implementation under the sun by jandrewrogers on Monday June 14, 2021 @10:18PM (#27510594)
It was also implemented in relational databases 30+ years ago and variants were patented by companies like Oracle and IBM. Geohashing was abandoned due to its several deficiencies as an indexing method, which still hold true today, in favor of other algorithms.

Ironically, geohashing seemed novel at the time because it was so obsolete that no modern system uses it. It is sort of like someone claiming to invent punch cards for programming.

Re:Show HN: The simplest geohash implementation under the sun by mro_name on Tuesday June 15, 2021 @03:10AM (#27512235)
indeed, history repeating. There's a nice talk by Jonathan Blow how technology declines and has to be re-invented over and over again: https://youtu.be/pW-SOdj4Kkk
Re:Show HN: The simplest geohash implementation under the sun by mro_name on Tuesday June 15, 2021 @03:08AM (#27512226)
yes, 'Powered by' https://mro.name/g/about explains the details.
Re:Show HN: The simplest geohash implementation under the sun by vinsci on Monday June 14, 2021 @07:01PM (#27509445)
An Evaluation of Location Encoding Systems https://github.com/google/open-location-code/wiki/Evaluation...
Re:Show HN: The simplest geohash implementation under the sun by mro_name on Tuesday June 15, 2021 @03:51AM (#27512467)
I'd go so far as to say that any code based on discrete numbers has rounding induced discontinuities, naturally. And with variable precision those can be arbitrarily large.

Take decimal integer representations like 999 and 1000 – they 'look' very different unless you decode them (what we all are use to on the fly). The distance is just 1 but they're in two different buckets in terms of 1e3.

Re:Show HN: The simplest geohash implementation under the sun by villgax on Monday June 14, 2021 @07:51AM (#27501490)
Under the sun sounds so weird, should be something like - stopping the sun
Re:Show HN: The simplest geohash implementation under the sun by quickthrower2 on Wednesday June 16, 2021 @07:15AM (#27527181)
It's an old idiom
Re:Show HN: The simplest geohash implementation under the sun by mro_name on Tuesday June 15, 2021 @03:11AM (#27512241)
lol, how so?