Currently, my code is utilizing the ipinfo.io library to retrieve the user's country information successfully.
This is the snippet of code I am using to fetch the data:
$.get("https://ipinfo.io?token=0000000000", function(response) {
console.log(response.ip, response.country);
}, "jsonp")
In my research on https://ipinfo.io/developers/full-country-names, I discovered that there is a full country names JSON file available. However, I am unsure how to integrate it into my current setup or even where to begin with mapping the data together. Any guidance on this matter would be greatly appreciated!
Thank you!