Using MaxMind's GeoIP.js
Posted: Tue Feb 12, 2013 2:51 pm
This one might become useful in your web projects. It calls an external javascript file on MaxMinds geolocation servers and returns your browsers location.
I'm using it in a Dragonfly project to detect the users location and serving current weather condition.
And something cool - it's free if you put a link on your website :-)
http://dev.maxmind.com/geoip/javascript
Free use of the service is allowed with attribution in the following form:
This website uses <a href="http://www.maxmind.com/en/javascript">GeoIP Javascript from MaxMind</a>
I'm using it in a Dragonfly project to detect the users location and serving current weather condition.
Code: Select all
(set 'jsdata (get-url "http://j.maxmind.com/app/geoip.js"))
(set 'location (find-all [text]'(.*)'[/text] jsdata))
(print location)
http://dev.maxmind.com/geoip/javascript
Free use of the service is allowed with attribution in the following form:
This website uses <a href="http://www.maxmind.com/en/javascript">GeoIP Javascript from MaxMind</a>