nowfound

Life & fun · May 26, 2024

GA

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 · ▲171

    Long-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…

  • GeoKone2017 · ▲77

    A web application for drawing awesome geometric shapes

  • AA
  • GI
    Geo-Info – A Simple Geocoding API2019 · geo-info.co · ▲8
  • The Changelog - #189: JSON API with Yehuda Katz2016 · changelog.com · ▲66

    Yehuda's start as a programmer and the spec for building API

  • Mapsense2015 · ▲61

    The API for data-driven mapping

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, May 2024

the whole month →
  • Voicenotes▲1,485

    AI note-taker that's truly intelligent

    AI · 2024 · voicenotes.com

  • Wegic▲1,179

    The first AI web designer & developer by your side

    Dev tools · 2024 · wegic.ai

  • Insighto▲1,108

    Ship features users want

    Growth · 2024 · insigh.to

  • Ivee▲1,087

    The B2B influencer marketing platform

    Growth · 2024

  • Waxwing▲1,035

    AI copilot for every marketing task

    AI · 2024

  • AI powered zero-waste meal planner

    AI · 2024 · ohapotato.app