Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You want to determine a user’s Internet location when that user’s browser does not support the HTML5 Geolocation API natively.
Perform an IP-to-location lookup as a fallback. It’s certainly not as accurate as latitude and longitude coordinates, but it’s far better than not having any location data at all.
Google offers the google.loader.ClientLocation object in its
Google Maps API v3 library, but it does not work for many
US IP addresses.
The MaxMind GeoIP JavaScript Web Service seems more accurate and up-to-date. Also, it’s free as long as you link back to the http://www.maxmind.com website. Alternatively, MaxMind offers a JavaScript attribution-free license that can be purchased for $250/year.