snowplow / scala-maxmind-iplookups

Scala client for MaxMind Geo-IP
https://snowplow.github.io/scala-maxmind-iplookups/
86 stars 52 forks source link

Update to GeoLite2 #31

Closed bernardosrulzon closed 6 years ago

bernardosrulzon commented 8 years ago

For some IP's (e.g. in São Paulo, Brazil), MaxMind's GeoLite correctly identifies the lat/lon coordinates, but fails to provide the city name. I've run some tests with GeoLite2 and that problem seems to be solved.

There is a Scala wrapper based on Snowplow's implementation at https://github.com/Sanoma-CDA/maxmind-geoip2-scala. Implementation seems pretty straightforward - do you see any downsides of updating to GeoLite2?

Update: running the following query returns 95% of results from São Paulo's coordinates - but city name is null

SELECT geo_latitude, geo_longitude, count(*) FROM atomic.events WHERE geo_city IS NULL GROUP BY 1,2 ORDER BY 3 DESC

alexanderdean commented 8 years ago

Hi @bernardosrulzon - thanks for the suggestion! Is there any reason why we couldn't support both the legacy and the new databases alongside each other? If we can support both, great - PR welcome!

BenFradet commented 6 years ago

taken care of in #35