[erlang-questions] [ANN] locus: Geolocation and ASN lookup of IP addresses

Guilherme Andrade g@REDACTED
Sun Dec 31 20:56:42 CET 2017


Hello list,

I'm pleased to announce the release of locus 1.0.0, a library that allows
you to pinpoint the country, city or ASN of IPv4 and IPv6 addresses, using
MaxMind's GeoLite2 databases.

The MaxMind databases[1] you choose are downloaded on-demand, cached on the
filesystem and updated automatically.

* Overview: https://github.com/g-andrade/locus/blob/master/doc/README.md
* Hex.pm package: https://hex.pm/packages/locus
* API reference: https://github.com/g-andrade/locus/blob/master/doc/locus.md
* Source code: https://github.com/g-andrade/locus/

The databases are loaded into memory (mostly) as-is; reference counted
binaries are shared with the application callers using ETS tables, and the
original binary search tree is used to lookup addresses. The data for each
entry is decoded on the fly upon successful lookups.

[1]: https://dev.maxmind.com/geoip/geoip2/geolite2/

-- 
Guilherme
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20171231/d7559676/attachment.htm>


More information about the erlang-questions mailing list