Geometry-aware Hashing of GeoJSON objects
Just a quick little feature I implemented over the weekend. TODO: Assure that polygons can be palindromic as well
Geometry-aware Hashing of GeoJSON objects launched on May 26, 2024 with 7 votes, #1,618 of 4,539 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 2 years on.
What it does
Whenever you want to compare two (or more) huge lists with each other, you quickly end up using hashes. You can associate your objects to an hash, put them in a hash map, and lookup values (in this case, duplicates) in O(1) time, resulting in far less computationally expensive operations. In GeoJSON each FeatureCollection (you see this a map, with added Points, Lines, and Areas) contains Features , which contain Geometry , which in the case of LineString and Polygon are a set of coordinates. Hashing produces a (expected) unique value for one object. But the underlying information that a Geometry encodes is not a fixed-set of coordinates, but rather an area ( Polygon ) or a line ( Line…from altayakkus.dev
Does a similar job
all alternatives →
A hash array-mapped trie implementation in C2023 · github.com · ▲171Long-simmering side project that is finally ready to see the light. HAMTs are a cool persistent data structure and implementing one has been a lot of fun. Beyond the code, there is likely some value in the extensive and largely complete implementation docs; basic benchmarks are linked in the README, too. Kind of aiming to be "the libavl for HAMTs". That is obviously a high and aspirational bar but a distinct possibility if it stirs up a little interest and/or contribution. Anyways, it's time for this to go out, collect feedback and maybe even some use outside of toy projects. Let me…

- AAAn API to encode and decode coordinates using Geohash2019 · geohash.world · ▲40
- GIGeo-Info – A Simple Geocoding API2019 · geo-info.co · ▲8
The Changelog - #189: JSON API with Yehuda Katz2016 · changelog.com · ▲66Yehuda's start as a programmer and the spec for building API

More life & fun this month
the category →
A free city-building game in your browser. You are the mayor. You know what the city needs. Now get it past the zoning board, the neighbors, the appeals court and the next election.
Life & fun · 2d ago · permit.petercai.com
- IV
Life & fun · 14d ago · tanzaniaeducationproject.org

Turn a phone, tablet or TV into a sign. Type a message and it fills the screen: welcome signs, timers, Wi-Fi passwords and more. No app, no account, free.
Life & fun · 15d ago · bigwords.page

Play a free virtual guitar online with your keyboard or by touch. Slow songs down and see every chord, string and strum. Acoustic, classic, electric and bass.
Life & fun · 9d ago · guitoro.com

Carrier settings from iPhone, Pixel and Galaxy firmware, decoded and compared: APNs, VoLTE, 5G and Wi-Fi Calling per carrier, and what each build changed.
Life & fun · 13d ago · carrierexplode.com

Life & fun · 23d ago · space.bl2.net
Source: Show HN post ↗