Last active
May 9, 2018 07:27
-
-
Save J0s3f/6fba3168b9af65d7528e to your computer and use it in GitHub Desktop.
extreme-ip-lookup.com as alternative to geoplugin
This file contains hidden or 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
<script type="text/javascript">function setupGeo(o) { | |
window.geoplugin_request = function() { return o.query; }; | |
window.geoplugin_status = function() { return o.status == 'success' ? '200' : '500'; }; | |
window.geoplugin_city = function() { return o.city; }; | |
window.geoplugin_region = function() {return o.region; }; | |
window.geoplugin_countryCode = function() { return o.countryCode; }; | |
window.geoplugin_countryName = function() { return o.country; }; | |
window.geoplugin_latitude = function() { return o.lat; }; | |
window.geoplugin_longitude = function() { return o.lon; }; | |
}</script> | |
<script type="text/javascript" src="//extreme-ip-lookup.com/json/?callback=setupGeo" async></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment