Here is an example of how to implement it in Xojo…
Dim socket As new HTTPSocket()
Dim response As String
Dim geoData As JSONItem
response = socket.Get("http://www.geoplugin.net/json.gp?ip=216.58.223.4", 15)
geoData = new JSONItem(response)
msgbox geoData.Value("geoplugin_countryName")
The geoData object contains all the data returned by GeoPlugin for IP address 216.58.223.4.
Simply change the IP address in the above code to the IP address you want to look up.
Has anyone implemented a way to directly access the GeoLite database directly from a Xojo app via one of their local API libraries (ie not via a web service since they are usually rate limited or only temporarily available)
MaxMind has their API available in lots of languages but unfortunately not yet Xojo.