Created
February 24, 2011 15:22
-
-
Save toast38coza/842290 to your computer and use it in GitHub Desktop.
Get your location from MaxMinds JavaScript library (requires JQuery)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.getScript("http://j.maxmind.com/app/geoip.js",function(){ | |
console.log(geoip_country_code()); | |
console.log(geoip_country_name()); | |
console.log(geoip_city()); | |
console.log(geoip_region()); | |
console.log(geoip_region_name()); | |
console.log(geoip_latitude()); | |
console.log(geoip_longitude()); | |
console.log(geoip_postal_code()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment