com.snowplowanalytics.maxmind.iplookups
Geographic lookup database file
ISP lookup database file
Domain lookup database file
Connection type lookup database file
Whether to use MaxMind's CHMCache
Maximum size of SynchronizedLruMap cache
Returns the MaxMind location for this IP address as an IpLocation, or None if MaxMind cannot find the location.
IpLookups is a Scala wrapper around MaxMind's own DatabaseReader Java class.
Two main differences:
1. getLocation(ipS: String) now returns an IpLocation case class, not a raw MaxMind Location 2. IpLookups introduces an LRU cache to improve lookup performance
Inspired by: https://github.com/jt6211/hadoop-dns-mining/blob/master/src/main/java/io/covert/dns/geo/IpLookups.java