3 ms·
Show HN: J6 a Geohash
- shakna 7y agoPluscodes, WhatThreeWords and other encoding schemes are all competing standards that are being actively looked at. Some of them have some serious problems that can make them difficult to use, or confusing to use. This little project was done to see just how easy a less ambiguous format might be. Turned out fairly well. Contrived Example: Longitude to 6 Decimal Places: 178.000000 Lattitude to 6 Decimal Places: 68.000000 > violator-enrich-disband-handed-turkey-lure 6 decimal places is enough to get a 10cm resolution, in most of the world.
- kseistrup 7y agoLatitude is spelt with one T after A, only, so you get an error if you spell --latitude correctly.
- kseistrup 7y agoAnd if I feed J6 with my geolocation down to 6 or 7 decimals, I am offered 5 words only. Feeding them back into J6 tells me I don't have enough tokens.
- kseistrup 7y agoSome coordinates (e.g.: 55.555555; 14.444444) yields only 4 words (in the example given: pucker-ergonomic-rethink-shun).
- shakna 7y agoLooks like the way I generated the original dictionary left some holes. I'm in the process of filling them. (And I've added an error when this crops up.)
- shakna 7y agoI believe I've regenerated the database correctly this time. > python3 j6.py --longitude 55.555555 --latitude 14.444444 > exemption-stifling-wrist-deface-excavate-stimuli
- kseistrup 7y agoThe argument parser doesn't accept coordinates 0.0;0.0
- shakna 7y agoThat should be working. > python3 j6.py --longitude 0.0 --latitude 0.0 > sliceable-ensure-disband-handed-turkey-lure
- kseistrup 7y agoWhen I feed it 0.0; 0.0, it responds with the usage message. Python 3.7.4 here.
- kseistrup 7y agoAnd how does it distinguish between lat=-1, lon=-1 and lat=89, lon=179 Both seems to yield recopy-handset-disband-handed-turkey-lure Shouldn't the longitude be modulused 360 and the latitude modulused 180 (rather than 180 and 90, repectively)?
- shakna 7y agoYep. Missed abs. Fixed. [0] [0] https://git.sr.ht/~shakna/j6/commit/107c4a5913606d93ac79db1ccc89714e1bbb5a94 https://git.sr.ht/~shakna/j6/commit/107c4a5913606d93ac79db1c...
- shakna 7y agoThat should be fixed.