by oalders · 11y ago · 0 comments
As far as formats go, if anyone is thinking of putting together a custom database with information keyed on IP address or IP ranges, I'd encourage you to look into our MaxMind DB format:
http://maxmind.github.io/MaxMind-DB/
There are open source file readers available in many languages: https://github.com/maxmind/?utf8=%E2%9C%93&query=MaxMind-DB
There's also an open source writer https://metacpan.org/pod/MaxMind::DB::Writer
Our officially supported libraries are actively maintained and pull requests are always welcome.
I'm actually about to begin writing a blog post on how you can create your own custom databases. I'll share it on HN once it's ready.
A couple years ago I worked on a project that involved processing the "Internet Census of 2012" data.
The MaxMind DB format was a fast, efficient way to store simple data keyed on IPs and subnets.
https://www.maxmind.com/en/geoip2-city-database-accuracy
To get the actual product comparisons, you'll need to enter a country in the input box. For instance:
https://www.maxmind.com/en/geoip2-city-database-accuracy?cou...
You can try refining the distances to see how the different products compare. If you fiddle with it a bit, you'll see that the results do vary from country to country. So, "good enough" will depend on some combination of your tolerance for error + which countries you care about.