Make GET calls directly to geoip.php to get GeoIP info like this:
PHP v5.6.40
Cambridge, Massachusetts, United States
Passing a format string can give you different output:
http://geoip.gotmls.net/geoip.php?format=Your IP: geo(ip)<br />IP Location: geo(city), geo(region_name), geo(country_name) would give you:
Your IP: 18.97.14.84<br />IP Location: Cambridge, Massachusetts, United States
or just include this JavaScript on your page:
and get this output: