Comment on Ask YC: Geolocation by IP Address API/Service?parentComments−nextmoveone18yYeah I was at work and I needed to dig into some old files to find it, here we go:<script type="text/javascript" src="http://j.maxmind.com/app/geoip.js"></script><script type="text/javascript"> var country = geoip_country_name(); var state = geoip_region(); alert("State: "+state); </script>
Comments
Yeah I was at work and I needed to dig into some old files to find it, here we go:
<script type="text/javascript" src="http://j.maxmind.com/app/geoip.js"></script>
<script type="text/javascript"> var country = geoip_country_name(); var state = geoip_region(); alert("State: "+state); </script>