Home
PHP
Tech Tube
MySQL
Linux
CSS&HTML
JavaScript

Get geolocation from freegeoip.net

A quick and easy way to use freegeoip.net go get geo location data:
jQuery.ajax({
    url: "https://freegeoip.net/json/",
    type: 'GET',
    success: function (json_response)
    {
	console.log(json_response);
    }
});
The API allows a background implementation also. Here's the documentation: https://freegeoip.net/