frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The offline geocoder we wanted

4•gipsyjaeger•2h ago
What is this?

This is an offline reverse geocoder written in Python. Given a latitude–longitude pair, it returns the correct administrative region such as country, state, or district without calling any external APIs. This avoids API costs, rate limits, and network dependency.

Why build another reverse geocoder?

Most offline reverse geocoders rely on nearest-neighbor lookups. While fast, this approach often fails near borders because the closest location is not always the correct administrative region. This project focuses on correctness over proximity by verifying which boundary a coordinate actually falls inside.

How does it work?

A KD-Tree is used to quickly shortlist nearby administrative boundaries. For those candidates, the system performs polygon containment checks to confirm the true region. It supports both single-process execution for small workloads and multiprocessing for large batch processing.

Performance

The system processes 10,000 coordinates in under 2 seconds, with an average polygon validation time below 0.4 milliseconds per coordinate.

Who is this for?

Anyone who needs reverse geocoding, predictable costs, large-scale batch processing.

Implementation notes

This started as a toy implementation to explore boundary-aware reverse geocoding, but it turned out to be reliable enough for real production use. The dataset covers more than 210 countries with over 145,000 administrative boundaries.

Links

Source code: https://github.com/SOORAJTS2001/gazetteer

Documentation: https://gazetteer.readthedocs.io/en/stable

Feedback is welcome, especially around the approach, performance trade-offs, and edge cases.

Comments

sixtyj•1h ago
Well done.

> it returns the correct administrative region such as country, state, or district

Do you have any plans to add some street level geocoding?

I know that database would really heavy… but as there could be a huge dataset with buildings - Global Building Atlas…

gipsyjaeger•38m ago
Hi, For the given location, the library would return it's corresponding ADM2/ADM3, ADM1, ADM0. Which are essentially county/city, state and country

As of now, I am planning to add more meta data to the location like pincode, population etc

Thanks!

Brass Crosby

https://en.wikipedia.org/wiki/Brass_Crosby
1•zeristor•3m ago•1 comments

The Great Giana Sisters

https://en.wikipedia.org/wiki/The_Great_Giana_Sisters
1•laktak•5m ago•1 comments

Show HN: CodinIT, local open-source Lovable alternative (Electron desktop app)

https://github.com/codinit-dev/codinit-dev
1•Gerome24•11m ago•0 comments

Blackstone leads investment in data-security firm Cyera at $9B valuation

https://www.reuters.com/business/blackstone-leads-investment-data-security-firm-cyera-9-billion-v...
1•nsoonhui•11m ago•0 comments

Show HN: Minish – A small property-based testing framework for Zig

1•habedi0•13m ago•0 comments

Ask HN: Serverless Internal APIs and Orchestration

1•kinj28•14m ago•0 comments

Show HN: Logic-Gate Protocols for LLMs – A System Engineering Approach [pdf]

https://docs.google.com/document/d/18aIWCQuPluRqkQYrsRxTL00F-vbqEh_in8dtBenPWhk/edit?usp=drivesdk
1•the_sage_light•17m ago•1 comments

Self Evolving Live SWE Agent

https://github.com/OpenAutoCoder/live-swe-agent
1•dbgrman•17m ago•0 comments

"We need to start protesting " AI expert Tristan Harris [video]

https://www.youtube.com/watch?v=BFU1OCkhBwo
1•nothrowaways•19m ago•1 comments

Thing, Creature, or Mirror? The Standards We Set for AI

https://www.msthgn.com/articles/thing-creature-or-mirror-the-standards-we-set-for-ai
1•msthgn•21m ago•1 comments

Open Source Historical LLM trained exclusively on 19th century text

https://github.com/haykgrigo3/TimeCapsuleLLM
1•mhjkl•21m ago•0 comments

The ancient Trial of the Pyx is moving to Mansion House in 2026

https://www.ianvisits.co.uk/articles/the-ancient-trial-of-the-pyx-is-moving-to-mansion-house-in-2...
2•zeristor•24m ago•0 comments

Code Orange: Fail Small – our resilience plan following recent incidents

https://blog.cloudflare.com/fail-small-resilience-plan/
1•cloudflare728•28m ago•0 comments

Fourteen numbers every developer should know (2013)

https://www.infoarena.ro/blog/numbers-everyone-should-know
1•vismit2000•28m ago•0 comments

Airbus to migrate critical apps to a sovereign Euro cloud

https://www.theregister.com/2025/12/19/airbus_sovereign_cloud/
8•saubeidl•29m ago•0 comments

The Great Decentralization Swindle: Every Protocol but One Betrays Its Promise

https://habla.news/a/naddr1qqgrqvf4v5enxcenvg6kzep4xverzqghwaehxw309aex2mrp0yh8qunfd4skctnwv46z7q...
1•nout•31m ago•0 comments

SA Surgeon Performs Successful Middle Ear Transplant Using 3D Printing (2019)

https://3dprint.com/245318/south-african-surgeons-perform-a-successful-middle-ear-transplant-usin...
2•thunderbong•33m ago•0 comments

Show HN: Got tired of searching for AI news daily so I built my own AI news page

https://dreyx.com/
1•lilsquid•36m ago•2 comments

Breaking LZW: Interactive Exploration of a PDF Decompression DoS

https://aydinnyunus.github.io/2025/12/20/cve-2025-66019-pypdf-lzw-dos/
1•runtimepanic•37m ago•1 comments

A train-sized tunnel is now carrying electricity under South London

https://www.ianvisits.co.uk/articles/a-train-sized-tunnel-is-now-carrying-electricity-under-south...
9•zeristor•39m ago•2 comments

Skills Officially Comes to Codex

https://developers.openai.com/codex/skills/
2•rochansinha•57m ago•1 comments

Something Big Happened in 1998

https://openpath.quest/2025/something-big-happened-in-1998/
2•Tomte•1h ago•0 comments

AI Bathroom Monitors? Welcome to America's New Surveillance High Schools

https://www.forbes.com/sites/thomasbrewster/2025/12/16/ai-bathroom-monitors-welcome-to-americas-n...
1•harambae•1h ago•0 comments

Understanding Conversational AI: Philosophy, Ethics, and Social Impact of LLMs

https://www.ubiquitypress.com/books/m/10.5334/bde
1•spidersouris•1h ago•0 comments

The night everything at DCA went wrong

https://theaircurrent.com/aviation-safety/dca-crash-jan-29-special-report/
2•worik•1h ago•0 comments

Show HN: ZDS – Zig Data Structures

https://github.com/asheshvidyut/zds
3•absolute7•1h ago•0 comments

Debian adds LoongArch as officially supported architecture

https://lists.debian.org/debian-devel-announce/2025/12/msg00004.html
16•cbmuser•1h ago•1 comments

NTP at NIST Boulder Has Lost Power

https://lists.nanog.org/archives/list/nanog@lists.nanog.org/message/ACADD3NKOG2QRWZ56OSNNG7UIEKKT...
20•lpage•1h ago•1 comments

The Polyglot NixOS

https://x86.lol/generic/2025/12/19/polyglot.html
2•todsacerdoti•1h ago•0 comments

Contrails Map

https://map.contrails.org/
10•schaum•1h ago•1 comments