5 ms·
Maxmind has a free javascript one to detect cities and states...the cities are a little off but the state is always dead on. I can provide it later if you'd li
by nextmoveone 19y ago
Maxmind has a free javascript one to detect cities and states...the cities are a little off but the state is always dead on.
I can provide it later if you'd like?
- sabat 19y agoPaste it in this thread, maybe? ;-D
- nextmoveone 19y agoYeah 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 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>
- randallsquared 19y agoI just tried Maxmind, and it thinks I'm in Roswell, GA. I'm in east Alabama.
- deleted 19y ago[deleted]
- deleted 19y ago[deleted]
- nextmoveone 19y agoHey give the one up there a try. It should get your state right, I've never had any problems with it, although my testing has been limited to 12 trials...