GeoIP, API changes in the future! [fixed in v1.192]

Hi, I got these lines in my log now and then.

Thu Apr 19 19:44:43 14:03:33.952 0... 0    GEOLOC: 87.49.147.250 sent no geoloc info, trying from here

Thu Apr 19 19:44:43 14:03:33.956 0... 0    GEOLOC: <curl -s --ipv4 "freegeoip.net/json/87.49.147.250" 2>&1>

Thu Apr 19 19:44:43 14:03:34.457 0... 0    GEOLOC: returned <{"__deprecation_message__":"This API endpoint is deprecated and will stop working on July 1st, 2018. For more information please visit: https://github.com/apilayer/freegeoip#readme","ip":"87.49.147.250","country_code":"DK","country_name":"Denmark","region_code":"84","region_name":"Capital Region","city":"Bronshoj","zip_code":"2700","time_zone":"Europe/Copenhagen","latitude":55.7057,"longitude":12.4964,"metro_code":0}


Has something to be changed in the code in the future?

Comments

  • Has something to be changed in the code in the future?

    Yes. Although the code currently has a fallback to another site if the lookup on freegeoip.net fails.

Sign In or Register to comment.