SyntaxFix
Write A Post
Hire A Developer
Questions
you can't get city location by ip. here you can get country with jquery:
$.get("http://ip-api.com/json", function(response) { console.log(response.country);}, "jsonp");