TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Host a planet-scale geocoder for $10/mo

127 pointsby ellenhpover 1 year ago
For the uninitiated, a geocoder is maps-tech jargon for a search engine for addresses and points of interest.<p>Geocoders are expensive to run. Like, really expensive. Like, $100+&#x2F;month per instance expensive unless you go for a budget provider. I&#x27;ve been poking at this problem for about a month now and I think I&#x27;ve come up with something kind of cool. I&#x27;m calling it Airmail. Airmail&#x27;s unique feature is that it can query against a remote index, e.g. on object storage or on a static site somewhere. This, along with low memory requirements mean it&#x27;s about 10x cheaper to run an Airmail instance than anything else in this space that I&#x27;m aware of. It does great on 512MB of RAM and doesn&#x27;t require any storage other than the root disk and remote index. So storage costs stay fixed as you scale horizontally. Pretty neat.<p>Demo here: <a href="https:&#x2F;&#x2F;airmail.rs&#x2F;#demo-section" rel="nofollow">https:&#x2F;&#x2F;airmail.rs&#x2F;#demo-section</a><p>Writeup: <a href="https:&#x2F;&#x2F;blog.ellenhp.me&#x2F;host-a-planet-scale-geocoder-for-10-month" rel="nofollow">https:&#x2F;&#x2F;blog.ellenhp.me&#x2F;host-a-planet-scale-geocoder-for-10-...</a><p>Repository: <a href="https:&#x2F;&#x2F;github.com&#x2F;ellenhp&#x2F;airmail">https:&#x2F;&#x2F;github.com&#x2F;ellenhp&#x2F;airmail</a>

13 comments

lormaynaover 1 year ago
I don&#x27;t know if it&#x27;s fit your specific use case, but for pure search take a look to sonic (<a href="https:&#x2F;&#x2F;github.com&#x2F;valeriansaliou&#x2F;sonic">https:&#x2F;&#x2F;github.com&#x2F;valeriansaliou&#x2F;sonic</a>). It&#x27;s blazing fast and require very few resources
评论 #39410135 未加载
评论 #39410323 未加载
hampelmover 1 year ago
This is super cool to read about!<p>Geocoding is one of those _hard_ problems and this really seems like a great step forward.
mmaiaover 1 year ago
Congrats on the achievement.<p>One trick part when working on &quot;planet-scale&quot; is parsing and matching the results for multiple countries. I tried some addresses in Brazil without success. Queries like &quot;Starbucks Sao Paulo&quot; return some results but addresses like &quot;Avenida Paulista 100&quot; (or its variations) don&#x27;t.<p>Last time I looked (~2018) pelias-parser used some ML training and the results weren&#x27;t very good for Brazil. I&#x27;m guessing in 2024, an open-source fine tuned LLM would do a good job?
killingtime74over 1 year ago
Amazing, thanks for the writeup and sharing
nodesocketover 1 year ago
Can it reverse geocode as well? lat&#x2F;long to address
macintuxover 1 year ago
Is there any way to zoom on the demo map in mobile?<p>I’ve enjoyed my brief dalliances with digital cartography. I’m grateful for a stack like this that I can explore.
mlhpdxover 1 year ago
I’m a Range request fan-boy, so thanks for sharing. Byte-indexing static objects is basically a brilliant point of light in the dark universe of code. I have fixed dozens of systems that read entire zip files over the network and into memory just to get the list of files inside (totally unnecessary if the host supports Range headers).
binarymaxover 1 year ago
Which geocoder is $100&#x2F;mo? Nominatim? Which cloud?<p>Either way this looks really cool and I’ll give it a try!
评论 #39406254 未加载
renewiltordover 1 year ago
Woah this is ridiculously good. You&#x27;ve done a good job here working off Pelias. I did find managing the Elasticsearch cluster for a production instance of Pelias hopelessly annoying.<p>Remarkable.
Gigachadover 1 year ago
Very cool. I went and had a look at the cost of using the Google maps api and this project seems like it would be pretty competitive with it.
评论 #39406656 未加载
christiangencoover 1 year ago
geocod.io is a hosted way of geocoding run by good friends of mine. It looks like they charge $0.50 per thousand lookups.
clementmasover 1 year ago
I&#x27;m hosting Photon geocoder from Komoot. I find it decently accurate and not too expensive to run
评论 #39406324 未加载
CyberDildonicsover 1 year ago
<i>Geocoders are expensive to run. Like, really expensive. Like, $100+&#x2F;month per instance expensive unless you go for a budget provider.</i><p>When you write like this it sounds very unprofessional. Also you are basically saying &quot;this is really expensive, unless it isn&#x27;t&quot;.<p>Why is there any difficulty in this at all? Why would this even need to be something someone subscribes to? It is basically a nearest neighbor search.
评论 #39406300 未加载