geocoder icon indicating copy to clipboard operation
geocoder copied to clipboard

[BREAKING] Significant Changes to Accessing and Using GeoLite2 Databases

Open sergey-alekseev opened this issue 5 years ago • 7 comments

Copy-pasting key points from https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/:

Starting December 30, 2019, we will be requiring users of our GeoLite2 databases to register for a MaxMind account and obtain a license key in order to download GeoLite2 databases.

Starting December 30, 2019, downloads will no longer be served from our public GeoLite2 page, from geolite.maxmind.com/download/geoip/database/*, or from any other public URL.

See Steps for Migration:

  1. Sign up for a MaxMind account (no purchase required)
  2. Set your password and create a license key
  3. Setup your download mechanism by using our GeoIP Update program or creating a direct download script

So Geocoder:: MaxmindDatabase.base_url is no longer valid.


P.S.: Sorry, I'm not going to submit a PR as I'm not a user of rake geocoder:maxmind:geolite:*. Otherwise I'd probably contribute.

sergey-alekseev avatar Dec 31 '19 08:12 sergey-alekseev

Thanks for reporting this!

alexreisner avatar Dec 31 '19 17:12 alexreisner

Hey 👋 We don't use geocoder (yet!) but I've just fixed this in https://github.com/mysociety/alaveteli/pull/5524/ for our homebrew downloader. Quite an easy fix, but thought it worth noting to give someone a leg up in fixing it here.

garethrees avatar Jan 02 '20 10:01 garethrees

Code looks so similar to what I did in my project 😄

sergey-alekseev avatar Jan 02 '20 11:01 sergey-alekseev

Thanks @garethrees! Also, I hadn't heard of Alaveteli but looks like a very cool project.

alexreisner avatar Jan 02 '20 19:01 alexreisner

Thanks, and no problem. I did just have a go at installing geocoder locally to have a stab at contributing a fix, but bundle just seems to take forever at the "Resolving dependencies" step. Currently using ruby 2.6.5p114 via brew on macOS Mojave. Seems to be similar issue to https://github.com/bundler/bundler/issues/2125 🤷‍♀

garethrees avatar Jan 02 '20 20:01 garethrees

@garethrees that's odd since Geocoder has no dependencies. Is it possible it's something else in your Gemfile?

alexreisner avatar Jan 02 '20 20:01 alexreisner

@garethrees Sorry, I see what you mean--development dependencies. Thanks for posting in a separate issue.

alexreisner avatar Jan 03 '20 17:01 alexreisner