Content of the page

How to get city data by IP from maxmind GEO-IP service

Content of the article

If its necessary to get GEO-IP data using maxmind service - next function will do the job:

  • __YOUR_ID__ - your ID on maxmind service
  • __YOUR_KEY__ - your secret key on maxmind service

Be sure that CURL is enabled on your hosting.