How to get the current city by jQuery

Add the following code to your code file: How to get the current city by jQuery How to get the current city by jQueryexpoundsofttechsolution How to get the current city by jQuery
 jQuery.get("https://ipinfo.io", function(response) {
                            console.log(response.city);
                        }, "jsonp");