How about using the maxmind files directly, instead of freegeoip.net? Example: https://maxmind.github.io/MaxMind-DB/